FMX.ImgList.TCustomImageList.AddToCache
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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.ImgList.pas FMX.ImgList.hpp |
FMX.ImgList | TCustomImageList |
Description
Appends the specified Bitmap
to the end of the internal cache.
Size
specifies the width and height (in the TSize format) of the bitmap to create.
Index
is the zero-based ordinal number of the image in the Destination collection.
Bitmap
is the TBitmap bitmap to be added into cache.
If the current count of images in the internal cache is equal to CacheSize, then the oldest image (the first inserted into the cache) is removed from the cache.
AddToCache is used in Bitmap.