DpiHelperPxToDip Method (Single, Boolean) |
LightningChart .NET Help
Converts given PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Namespace:
Arction.WinForms.Charting
Assembly:
Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic static float PxToDip(
float PX,
bool UseXDirection = true
)
Public Shared Function PxToDip (
PX As Single,
Optional UseXDirection As Boolean = true
) As Single
public:
static float PxToDip(
float PX,
bool UseXDirection = true
)
Parameters
- PX
- Type: SystemSingle
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:
SingleConverted value in DPIs.
See Also