FMX.ImgList.TCustomImageList.FindInCache
Delphi
function FindInCache(const Size: TSize; const Index: Integer): TBitmap;
C++
Fmx::Graphics::TBitmap* __fastcall FindInCache(const System::Types::TSize &Size, const int Index);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | FMX.ImgList.pas FMX.ImgList.hpp |
FMX.ImgList | TCustomImageList |
Description
Tries to find, in the internal cache, a bitmap with the specified Index and Size. If successful, then it returns the found bitmap, otherwise nil.
If both specified Size.cx and Size.cy <= 0, then FindInCache tries to find in the internal cache and returns, if it exists, a bitmap with the specified Index position in the Destination collection. Otherwise, tries to find in the internal cache and returns, if it exists, a bitmap with the specified Index and Size.
Size specifies the width and height (in the TSize format) of the bitmap to find in the internal cache.
Index is the zero-based ordinal number of the image in the Destination collection.