Method AutoScale
AutoScale(int)
Automatically scales the specified integer value accordingly to the screen resolution.
public static int AutoScale(int value)
Parameters
value
intValue to scale.
Returns
- int
Scaled value if auto scaling enabled; otherwise original value.
AutoScale(int, float)
Automatically scales the specified integer value.
public static int AutoScale(int value, float scaleFrom)
Parameters
Returns
- int
Scaled value.
AutoScale(float)
Automatically scales the specified float value.
public static float AutoScale(float value)
Parameters
value
floatValue to scale.
Returns
- float
Scaled value if auto scaling enabled; otherwise original value.
AutoScale(double, double)
Automatically scales the specified double value.
public static double AutoScale(double value, double scaleFrom)
Parameters
Returns
- double
Scaled value.
AutoScale(double)
Automatically scales the doluble specified value.
public static double AutoScale(double value)
Parameters
value
doubleValue to scale.
Returns
- double
Scaled value if auto scaling enabled; otherwise original value.
AutoScale(float, float)
Automatically scales the specified float value.
public static float AutoScale(float value, float scaleFrom)
Parameters
Returns
- float
Scaled value.
AutoScale(Size)
Automatically scales the specified Size value.
public static Size AutoScale(Size value)
Parameters
value
SizeValue to scale.
Returns
- Size
Scaled value if auto scaling enabled; otherwise original value.
AutoScale(Size, float)
Automatically scales the specified Size value.
public static Size AutoScale(Size value, float scaleFrom)
Parameters
Returns
- Size
Scaled value.
AutoScale(Padding)
Automatically scales the specified Padding value.
public static Padding AutoScale(Padding value)
Parameters
value
PaddingValue to scale.
Returns
- Padding
Scaled value if auto scaling enabled; otherwise original value.
AutoScale(Padding, float)
Automatically scales the specified Padding value.
public static Padding AutoScale(Padding value, float scaleFrom)
Parameters
Returns
- Padding
Scaled value.