[]
Scales a int value to the dpi.
public static int ScaleToDPI(int value, int dpi)
Public Shared Function ScaleToDPI(value As Integer, dpi As Integer) As Integer
| 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)
Public Shared Function ScaleToDPI(value As Size, dpi As Integer) As Size
| 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)
Public Shared Function ScaleToDPI(value As Thickness, dpi As Integer) As Thickness
| 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)
Public Shared Sub ScaleToDPI(value As Style, dpi As Integer)
| 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.