ExtensionsDipToPx Method (Int32, Boolean) |
LightningChart .NET Help
Converts given DIP (Device Independent Pixels) values to PX (Screen pixels) 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 float DipToPx(
this int DIP,
bool UseXDirection = true
)
<ExtensionAttribute>
Public Shared Function DipToPx (
DIP As Integer,
Optional UseXDirection As Boolean = true
) As Single
public:
[ExtensionAttribute]
static float DipToPx(
int DIP,
bool UseXDirection = true
)
Parameters
- DIP
- Type: SystemInt32
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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. 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