FMX.Platform.IFMXScreenService.GetScreenScale

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetScreenScale: Single;

C++

virtual float __fastcall GetScreenScale() = 0 ;

Properties

Type Visibility Source Unit Parent
function public
FMX.Platform.pas
FMX.Platform.hpp
FMX.Platform IFMXScreenService

Description

In descendants, GetScreenScale implements functionality to get the natural scale factor associated with the screen.

This value reflects the scale factor needed to convert from the default logical units into the physical coordinates of this screen. The default logical units are measured using density-independent pixels. If a device’s screen has a standard pixel density, the scale factor is typically set to 1.0 so that one logical unit maps to one pixel. However, a screen with a significantly different pixel density may set this property to a higher value.

See Also