FMX.MultiResBitmap.TCustomBitmapItem.Dormant

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Dormant: Boolean read FDormant write SetDormant;

C++

__property bool Dormant = {read=FDormant, write=SetDormant, nodefault};

Properties

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

Description

Indicates whether the actual image is stored with this bitmap item.

Dormant is used to reduce the memory usage, as any access to Bitmap can lead to considerable increasing of the memory usage. If Dormant is True (the default), then the image data is not stored in a Bitmap, but in the stream. (Bitmap is nil.) When you access the Bitmap property, then Dormant is automatically set to False and an instance of TBitmapOfItem is created.

Avoid using the Bitmap property if your code does not really require this. Try to use properties like IsEmpty, Width, Height instead.

See Also