FMX.ImgList.TCustomImageList.FindInCache

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function FindInCache(const Size: TSize; const Index: Integer): TBitmap;

C++

Fmx::Graphics::TBitmap* __fastcall FindInCache(const System::Types::TSize &Size, const int Index);

Propriétés

Type Visibilité  Source Unité  Parent
function protected
FMX.ImgList.pas
FMX.ImgList.hpp
FMX.ImgList TCustomImageList


Description

Recherche dans le cache interne un bitmap ayant les valeurs Index et Size spécifiées. En cas de réussite, le bitmap trouvé est renvoyé. Dans le cas contraire, nil est renvoyé.

Si Size.cx et Size.cy <= 0, FindInCache recherche dans le cache interne un bitmap ayant la position Index spécifiée dans la collection de destination, puis le renvoie si la recherche aboutit. Sinon, il recherche dans le cache interne un bitmap ayant les valeurs Index et Size spécifiées, puis le renvoie si la recherche aboutit.

Size spécifie la largeur et la hauteur (dans le format TSize) du bitmap à rechercher dans le cache interne.

Index est le numéro ordinal de base zéro de l'image dans la collection de destination.

Voir aussi