[]
Scales a int value to the dpi.
public static int ScaleToDPI(int value, int dpi)
| Type | Name | Description |
|---|---|---|
| int | value | The value for scaling. |
| int | dpi | The DPI value for the current display device. |
| Type | Description |
|---|---|
| int | The scaled value. |
Scales a Size value to the dpi.
public static Size ScaleToDPI(Size value, int dpi)
| Type | Name | Description |
|---|---|---|
| Size | value | The value for scaling. |
| int | dpi | The DPI value for the current display device. |
| Type | Description |
|---|---|
| Size | The scaled value. |
Scales a Thickness value to the dpi.
public static Thickness ScaleToDPI(Thickness value, int dpi)
| Type | Name | Description |
|---|---|---|
| Thickness | value | The value for scaling. |
| int | dpi | The DPI value for the current display device. |
| Type | Description |
|---|---|
| Thickness | The scaled value. |
Scales the Style instance to the dpi.
public static void ScaleToDPI(Style value, int dpi)
| Type | Name | Description |
|---|---|---|
| Style | value | The style for scaling. |
| int | dpi | The DPI value for the current display device. |
This method doen't scale the Font property.