FMX.MultiResBitmap.TCustomMultiResBitmap.ItemByScale

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function ItemByScale(const AScale: Single; const ExactMatch: Boolean;
const IncludeEmpty: Boolean): TCustomBitmapItem;

C++

TCustomBitmapItem* __fastcall ItemByScale(const float AScale, const bool ExactMatch, const bool IncludeEmpty);

Propriétés

Type Visibilité  Source Unité  Parent
function public
FMX.MultiresBitmap.pas
FMX.MultiResBitmap.hpp
FMX.MultiResBitmap TCustomMultiResBitmap


Description

Renvoie un élément bitmap ayant l'échelle spécifiée depuis le bitmap multi-résolution en cours.

ItemByScale recherche un élément bitmap ayant l'échelle AScale spécifiée dans le bitmap multi-résolution en cours :

  • Si ExactMatch vaut True, ItemByScale renvoie seulement un élément bitmap correspondant exactement à l'échelle AScale spécifiée. Sinon, ItemByScale renvoie un élément bitmap ayant l'échelle la plus appropriée.
  • Si IncludeEmpty vaut True, ScaleArray peut renvoyer un élément bitmap ayant un bitmap vide. Sinon, ScaleArray renvoie seulement un élément bitmap qui n'a pas de bitmap vide.

ItemByScale renvoie l'élément bitmap TCustomBitmapItem récupéré. Si ItemByScale ne trouve pas d'élément bitmap approprié, elle renvoie nil.

Voir aussi