Declarationproperty LayersCaching: Integer;
Whether a cached view of every layer is stored in memory.
Layer caching speeds up display (and access to Bitmap
), but uses more memory.
|Value ||Description |
| -1 ||A cached view is stored for each layers. This provides the best performance, but can use a lot of memory if there are many layers |
| 0 ||No cached views of layers are stored. This uses the least memory |
| >0 ||Specifies a maximum number of cached views to store |
Layer Performance Properties
To improve the performance in layer applications, consider the following properties:
: Caches the view of each layer. Much faster but uses more memory.
: Display quality of layers (and whether the quality view is delayed).
specifies which features are disabled while fast drawing.
: Display quality of images (and whether the quality view is delayed). This option is ignored if LayersFastDrawing is active
: Whether the quality filter (LayersRotationFilter
) is previewed without applying the rotation
Review the Demos\LayerEditing\Layers_AllTypes\ demo for example code.
Example// Cache all layers
ImageEnView1.LayersCaching := -1;
// Cache a maximum of 30 layers
ImageEnView1.LayersCaching := 30;
// Disable all layer caching
ImageEnView1.LayersCaching := 0;