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.

Default: rfFastLinear (improve quality with negligible speed impact)

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


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');