Vcl.Graphics.TFont.ScaleForDPI

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ScaleForDPI(const Value: Integer);

C++

void __fastcall ScaleForDPI(const int Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFont


Delphi

procedure ScaleForDPI(const Value: Integer);

C++

void __fastcall ScaleForDPI(const int Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFont

Description

ScaleForDPI method scales font Height to the requested DPI. When IsDPIRelated is True, then the requested DPI becomes the current font PixelsPerInch value.

Note: ScaleForDPI prevents double scaling of the font because it checks the PixelsPerInch property.

See Also