[]
Helper class for scaling coordinates and images according to DPI scaling.
public static class DpiHelper
| Name | Description |
|---|---|
| DEFAULT_DPI | Default DPI value. |
| Name | Description |
|---|---|
| SystemDpi | Gets the DPI value set in Windows for the primary screen. |
| Name | Description |
|---|---|
| GetBorderSize(int) | Gets the default size, in pixels, of the border for a current DPI value. |
| GetHorizontalScrollBarArrowWidth(int) | Gets the width of the horizontal scroll bar arrow bitmap in pixels for a current DPI value. |
| GetHorizontalScrollBarHeight(int) | Gets the default height, in pixels, of the horizontal scroll bar for a current DPI value. |
| GetVerticalScrollBarWidth(int) | Gets the default height, in pixels, of the vertical scroll bar for a current DPI value. |
| ScaleBitmapLogicalToDevice(ref Bitmap, int) | Scales a logical bitmap value to it's equivalent device unit value. |
| ScaleToDPI(Style, int) | Scales the Style instance to the dpi. |
| ScaleToDPI(Thickness, int) | Scales a Thickness value to the dpi. |
| ScaleToDPI(Size, int) | Scales a Size value to the dpi. |
| ScaleToDPI(int, int) | Scales a int value to the dpi. |
| ScaleToSystemDPI(Size) | Scales a Size value to the system dpi. |
| ScaleToSystemDPI(int) | Scales a int value to the system dpi. |