DpiHelperPxToDip Method (Double, Boolean) |
LightningChart .NET Help
Converts given PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Namespace:
Arction.Wpf.Charting
Assembly:
Arction.Wpf.Charting.LightningChart (in Arction.Wpf.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic static double PxToDip(
double PX,
bool UseXDirection = true
)
Public Shared Function PxToDip (
PX As Double,
Optional UseXDirection As Boolean = true
) As Double
public:
static double PxToDip(
double PX,
bool UseXDirection = true
)
Parameters
- PX
- Type: SystemDouble
Value to convert in pixels. - UseXDirection (Optional)
- Type: SystemBoolean
If true, the screen width direction DPI factor is used. Height direction otherwise
Return Value
Type:
DoubleConverted value in DPIs.
See Also