Table of Contents

TTMSFNCUtils.GetDPIScale Method

Returns the DPI scale factor for the screen or form that owns AOwner.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function GetDPIScale(AOwner: TComponent = nil; ADefaultDPI: Integer = -1): Single;

Parameters

Name Description
AOwner Optional component used to determine the monitor or form DPI context.
ADefaultDPI Baseline DPI used as the divisor; -1 uses the system default (96).

Returns

Scale factor as a ratio, e.g. 1.5 for 144 DPI on a 96 DPI baseline.