A helper class for DIP (Device Independent Pixels) conversion and scaling operations.
public sealed class DipHelper
Inheritance System.Object 🡒 DipHelper
Properties | |
---|---|
FontSize_DataGridColumnText | |
FontSize_DefaultText | |
PrimaryScreenResolutionTier |
Methods | |
---|---|
CmToDip(double) | Converts centimeters to DIP (Device Independant Pixels). |
DipToCm(double) | Converts DIP (Device Independant Pixels) to centimeters. |
DipToInch(double) | Converts DIP (Device Independant Pixels) to inches. |
DipToMm(double) | Converts DIP (Device Independant Pixels) to millimeters. |
DpiToScaleFactor(Point) | Converts a DPI into a scale factor (compared to system DPI). |
GetPhysicalDpi(double) | Gets the physical pixel density (DPI) of the screen. |
GetScreenIndependentScaleFactor(double) | Gets the scale factor to apply to a WPF application so that 96 DIP always equals 1 inch on the screen (whatever the system DPI). |
GetSystemDpi() | Gets the system configured DPI. |
InchToDip(double) | Converts inches to DIP (Device Independant Pixels). |
MmToDip(double) | Converts millimeters to DIP (Device Independant Pixels). |
PtToDip(double) | Converts font points to DIP (Device Independant Pixels). |