DpiHelperDipToPx Method (Single, Boolean) |
LightningChart .NET Help
Converts given DIP (Device Independent Pixels) values to PX (Screen pixels) 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 float DipToPx(
float DIP,
bool UseXDirection = true
)
Public Shared Function DipToPx (
DIP As Single,
Optional UseXDirection As Boolean = true
) As Single
public:
static float DipToPx(
float DIP,
bool UseXDirection = true
)
Parameters
- DIP
- Type: SystemSingle
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:
SingleConverted value in PX.
See Also