Whether a cached view of every layer is stored in memory.
Layer caching speeds up display (and access to Bitmap), but uses more memory.
Supported values:
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
Note: To reset the cache due to changes made to your images that ImageEn cannot detect (e.g. editing the bitmap cache directly, call LayersCacheReset
Default: 0
Layer Performance Properties
To improve the performance in layer applications, consider the following properties: ◼LayersCaching: Caches the view of each layer. Much faster but uses more memory. ◼LayersFastDrawing: Display quality of layers (and whether the quality view is delayed). ◼LayerFastDrawingEffects specifies which features are disabled while fast drawing. ◼ZoomFilter/DelayZoomFilter: Display quality of images (and whether the quality view is delayed). This option is ignored if LayersFastDrawing is active ◼LayersRotationUseFilterOnPreview: Whether the quality filter (LayersRotationFilter) is previewed without applying the rotation
For example code, see the demo: \Demos\LayerEditing\Layers_AllTypes\Layers.dpr