Vcl.Graphics.TFont.ChangeScale
Delphi
procedure ChangeScale(M, D: Integer; isDpiChange: Boolean); overload;
procedure ChangeScale(AHeight: Integer; M, D: Integer; isDpiChange: Boolean); overload;
C++
void __fastcall ChangeScale(int M, int D, bool isDpiChange)/* overload */;
void __fastcall ChangeScale(int AHeight, int M, int D, bool isDpiChange)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TFont |
Description
ChangeScale method scales the font Height when a screen DPI is directly changed or by an application request. Internally, the TControl.ChangeScale method automatically calls ChangeScale.
When the isDpiChange argument is False, then only Height is scaled. Otherwise, the font Height is scaled using the PixelsPerInch property. See IsDPIRelated for details.