FMX.MultiResBitmap.TCustomBitmapItem.Bitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Bitmap: TBitmapOfItem read GetBitmap write SetBitmap stored False;

C++

__property TBitmapOfItem* Bitmap = {read=GetBitmap, write=SetBitmap, stored=false};

Properties

Type Visibility Source Unit Parent
property public
FMX.MultiresBitmap.pas
FMX.MultiResBitmap.hpp
FMX.MultiResBitmap TCustomBitmapItem

Description

Indicates the actual image used with this bitmap item.

Bitmap is nil, when the property Dormant = True. When you access a Bitmap, the Dormant property is set to False, and an instance of TBitmapOfItem is created.

Avoid using the Bitmap property if your code does not really require this. Usage of Bitmap can lead to considerable increase of the used memory. Try to use properties like IsEmpty, Width, Height instead. They do not cause such considerable increasing of the memory usage.

See Also