[]
        
(Showing Draft Content)

C1.Win.Util.DpiHelper.ScaleToDPI

ScaleToDPI Method

ScaleToDPI(int, int)

Scales a int value to the dpi.

Declaration
public static int ScaleToDPI(int value, int dpi)
Parameters
Type Name Description
int value

The value for scaling.

int dpi

The DPI value for the current display device.

Returns
Type Description
int

The scaled value.

ScaleToDPI(Size, int)

Scales a Size value to the dpi.

Declaration
public static Size ScaleToDPI(Size value, int dpi)
Parameters
Type Name Description
Size value

The value for scaling.

int dpi

The DPI value for the current display device.

Returns
Type Description
Size

The scaled value.

ScaleToDPI(Thickness, int)

Scales a Thickness value to the dpi.

Declaration
public static Thickness ScaleToDPI(Thickness value, int dpi)
Parameters
Type Name Description
Thickness value

The value for scaling.

int dpi

The DPI value for the current display device.

Returns
Type Description
Thickness

The scaled value.

ScaleToDPI(Style, int)

Scales the Style instance to the dpi.

Declaration
public static void ScaleToDPI(Style value, int dpi)
Parameters
Type Name Description
Style value

The style for scaling.

int dpi

The DPI value for the current display device.

Remarks

This method doen't scale the Font property.