ExtensionsPxToDip Method (Double, Boolean) |
LightningChart .NET Help
Converts given PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Namespace:
Arction.WinForms.Charting.Extensions
Assembly:
Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic static double PxToDip(
this double PX,
bool UseXDirection = true
)
<ExtensionAttribute>
Public Shared Function PxToDip (
PX As Double,
Optional UseXDirection As Boolean = true
) As Double
public:
[ExtensionAttribute]
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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also