TTMSFNCCustomControlBaseCommon.ScalePaintValue Method
Scales an integer value by the current paint DPI factor, returning the scaled integer.
API unit family: TMSFNCCustomControl
Declaring type: TTMSFNCCustomControlBaseCommon
Overloads
Overload 1
Scales an integer value by the current paint DPI factor, returning the scaled integer.
function ScalePaintValue(const Value: Integer): Integer; overload;
Parameters
| Name | Description |
|---|---|
Value |
The source integer value to scale. |
Returns
The value multiplied by PaintScaleFactor, rounded to the nearest integer.
Overload 2
Scales a floating-point value by the current paint DPI factor.
function ScalePaintValue(const Value: Double): Double; overload;
Parameters
| Name | Description |
|---|---|
Value |
The source double value to scale. |
Returns
The value multiplied by PaintScaleFactor.