ImageEn, unit iemview

TImageEnMView.DiskCache

TImageEnMView.DiskCache


Declaration

property DiskCache: TIEMDiskCache;


Description

Specify the properties of the ImageEnMView disk cache. The disk cache saves a small copy of each viewed image to a folder to speed up the UI. It is a persistent disk cache that is maintained between sessions.

In order to use the disk cache:
EnableImageCaching must be true
StoreType must be ietThumb or ietFastThumb

Note: You should periodically remove older entries from the folder using CleanUp.


Example

CreateDir( 'D:\DiskCache\' );
ImageEnMView1.DiskCache.Folder := 'D:\DiskCache\';
ImageEnMView1.DiskCache.Enabled := True;