ImageEn, unit iemview

TImageEnMView.ThumbnailResampleFilter

TImageEnMView.ThumbnailResampleFilter


Declaration

property ThumbnailResampleFilter: TResampleFilter;


Description

Specifies the filter to use when thumbnails are generated (when assigning images to a TImageEnMView and StoreType = ietThumb). Filters improve the quality of the thumbnail, but can slow down the application.
A value of rfNone provides no quality enhancement. Filters such as rfLanczos3 provide excellent quality, but are slower. rfFastLinear provides a good balance of quality and speed.

Default: rfFastLinear (improve quality with negligible speed impact)

Note:
Unlike ThumbnailDisplayFilter, ThumbnailResampleFilter is only used once for each image (when it first assigned/loaded)
Only used when StoreType = ietThumb


Example

// insert image 1.jpg and 2.jpg. Only 1.jpg will be filtered.
ImageEnMView1.ThumbnailResampleFilter := rfBSpline;
Idx := ImageEnMView1.AppendImage;
ImageEnMView1.SetImageFromFile('1.jpg');

ImageEnMView1.ThumbnailResampleFilter := rfNone;
Idx := ImageEnMView1.AppendImage;
ImageEnMView1.SetImageFromFile('2.jpg');