FMX.ImgList.TCustomImageList.AddToCache

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure AddToCache(const Size: TSize; const Index: Integer; const Bitmap: TBitmap);

C++

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

Propriétés

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


Description

Ajoute le Bitmap spécifié à la fin du cache interne.

Size spécifie la largeur et la hauteur (dans le format TSize) du bitmap à créer.

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

Bitmap est le TBitmap à ajouter dans le cache.

Si le nombre actuel d'images dans le cache interne est égal à CacheSize, alors l'image la plus ancienne (la première insérée dans le cache) est retirée du cache.

AddToCache est utilisée dans Bitmap.

Voir aussi