DpiHelperDipToPx Method (Double, Boolean) |
LightningChart .NET Help
Converts given DIP (Device Independent Pixels) values to PX (Screen pixels) 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 double DipToPx(
double DIP,
bool UseXDirection = true
)
Public Shared Function DipToPx (
DIP As Double,
Optional UseXDirection As Boolean = true
) As Double
public:
static double DipToPx(
double DIP,
bool UseXDirection = true
)
Parameters
- DIP
- Type: SystemDouble
Value to convert in DIPs - UseXDirection (Optional)
- Type: SystemBoolean
If true, the screen width direction DPI factor is used. Height direction otherwise
Return Value
Type:
DoubleConverted value in PX.
See Also