FMX.Styles.Objects.TCustomStyleObject.ScreenScaleToStyleScale

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

__classmethod float __fastcall ScreenScaleToStyleScale(const float ScreenScale);

Propriétés

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


Description

Calcule l'échelle à utiliser pour la sélection d'un bitmap à partir de la collection de bitmaps multi-résolution.

ScreenScaleToStyleScale obtient ScreenScale et calcule l'échelle de style à utiliser comme l'échelle pour sélectionner un lien TBitmapLink approprié à partir d'un tableau de liens de bitmaps TBitmapLinks. Utilisez GetCurrentLink pour récupérer le tableau TBitmapLinks.

Voir aussi