ImageEn, unit iemview

TImageEnMView.DeprioritizeLargeImages

TImageEnMView.DeprioritizeLargeImages


Declaration

property DeprioritizeLargeImages: Integer;


Description

Delays the loading of large images so that they do not slow the overall loading.
Images that are larger than the value specified (in Bytes) for DeprioritizeLargeImages will be loaded after smaller images have completed loading.
The default value of 0 disables prioritized loading.

Also, you can force thumbnails for large images by setting DeprioritizeLargeImageMethod to ieliThumbnail.

Default: 0


Example

// Delay loading of images larger than 10MB
ImageEnMView1.DeprioritizeLargeImages := 10*1024*1024;
ImageEnMView1.DeprioritizeLargeImageMethod := ieliDelayed;

// Force thumbnails for images larger than 2MB
ImageEnMView1.DeprioritizeLargeImages := 2*1024*1024;
ImageEnMView1.DeprioritizeLargeImageMethod := ieliThumbnail;

// Disable prioritized loading
ImageEnMView1.DeprioritizeLargeImages := 0;