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.

function ScaleResourceValue(const Value: Integer): Integer; 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.

function ScaleResourceValue(const Value: Double): Double; overload;

Parameters

Name Description
Value The source double value to scale.

Returns

The value multiplied by ResourceScaleFactor.