ExtensionsPxToDip Method (RectangleF) |
LightningChart .NET Help
Converts given rectangle size and position defined in PX (Screen pixels) to DIP (Device Independent Pixels) values using system DPI settings.
Namespace:
Arction.Wpf.ChartingMVVM.Extensions
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic static RectangleF PxToDip(
this RectangleF PX
)
<ExtensionAttribute>
Public Shared Function PxToDip (
PX As RectangleF
) As RectangleF
public:
[ExtensionAttribute]
static RectangleF PxToDip(
RectangleF PX
)
Parameters
- PX
- Type: System.DrawingRectangleF
Rectangle to convert, defined in pixels.
Return Value
Type:
RectangleFConverted rectangle in DPIs.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
RectangleF. 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