TTMSFNCPlannerCacheItem.CreateCache Method
Creates a generic pre-rendered bitmap cache tile of the specified kind and optional position.
API unit family: TMSFNCPlannerData
Declaring type: TTMSFNCPlannerCacheItem
Syntax
class function CreateCache(ARect: TRectF; ABitmap: TBitmap; AKind: TTMSFNCPlannerCacheItemKind; APosition: Integer = -1): TTMSFNCPlannerCacheItem;
__classmethod TTMSFNCPlannerCacheItem* __fastcall CreateCache(const System::Types::TRectF &ARect, Fmx::Graphics::TBitmap* ABitmap, TTMSFNCPlannerCacheItemKind AKind, int APosition = 0xffffffff);
Parameters
| Name | Description |
|---|---|
ARect |
Bounding rectangle of the tile in planner canvas coordinates. |
ABitmap |
Pre-rendered bitmap for this tile. |
AKind |
The type of planner element this tile represents. |
APosition |
Zero-based resource position index; pass -1 when not applicable. |
Returns
A cache item initialised for the specified rectangle, bitmap, kind, and position.