[]
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 float value to the dpi.
public static float ScaleToDPI(float value, int dpi)
Public Shared Function ScaleToDPI(value As Single, dpi As Integer) As Single
| Type | Name | Description |
|---|---|---|
| float | value | The value for scaling. |
| int | dpi | The DPI value for the current display device. |
| Type | Description |
|---|---|
| float | The scaled value. |
Scales a double value to the dpi.
public static double ScaleToDPI(double value, int dpi)
Public Shared Function ScaleToDPI(value As Double, dpi As Integer) As Double
| Type | Name | Description |
|---|---|---|
| double | value | The value for scaling. |
| int | dpi | The DPI value for the current display device. |
| Type | Description |
|---|---|
| double | 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 a RectangleF value to the dpi.
public static RectangleF ScaleToDPI(RectangleF value, int dpi)
Public Shared Function ScaleToDPI(value As RectangleF, dpi As Integer) As RectangleF
| Type | Name | Description |
|---|---|---|
| RectangleF | value | The value for scaling. |
| int | dpi | The DPI value for the current display device. |
| Type | Description |
|---|---|
| RectangleF | 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.