Skip to main content
Table of Contents

TTMSFNCCustomControlBase.ScaleResourceValue Method

Scales an integer value by the current resource DPI factor, returning the scaled integer.

API unit family: TMSFNCCustomControl Declaring type: TTMSFNCCustomControlBase Inherited from: TTMSFNCCustomControlBaseCommon

Overloads

Overload 1

Scales an integer value by the current resource DPI factor, returning the scaled integer.

FMX.TMSFNCCustomControl.hppPascalC++
function ScaleResourceValue(const Value: Integer): Integer; overload;
int __fastcall ScaleResourceValue(const int Value)/* overload */;

Parameters

Name Description
Value The source integer value to scale.

Returns

The value multiplied by ResourceScaleFactor, rounded to the nearest integer.

Overload 2

Scales a floating-point value by the current resource DPI factor.

FMX.TMSFNCCustomControl.hppPascalC++
function ScaleResourceValue(const Value: Double): Double; overload;
double __fastcall ScaleResourceValue(const double Value)/* overload */;

Parameters

Name Description
Value The source double value to scale.

Returns

The value multiplied by ResourceScaleFactor.