[]
        
(Showing Draft Content)

C1.Win.Util.DpiHelper

DpiHelper Class

Helper class for scaling coordinates and images according to DPI scaling.

Inheritance
DpiHelper
Namespace: C1.Win.Util
Assembly: C1.Win.8.dll
Syntax
public static class DpiHelper

Fields

Name Description
DEFAULT_DPI

Default DPI value.

Properties

Name Description
SystemDpi

Gets the DPI value set in Windows for the primary screen.

Methods

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.