FMX.Styles.Objects.TCustomStyleObject.ScreenScaleToStyleScale

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function ScreenScaleToStyleScale(const ScreenScale: Single): Single;

C++

__classmethod float __fastcall ScreenScaleToStyleScale(const float ScreenScale);

Properties

Type Visibility Source Unit Parent
function public
FMX.Styles.Objects.pas
FMX.Styles.Objects.hpp
FMX.Styles.Objects TCustomStyleObject

Description

Calculates the scale to use for selection of a bitmap from the multi-resolution bitmap collection.

ScreenScaleToStyleScale gets ScreenScale and calculates the style scale that should be used as the scale to select an appropriate TBitmapLink link from a TBitmapLinks array of bitmap links. Use GetCurrentLink to retrieve the TBitmapLinks array.

See Also