ImageEn, unit imageenio

TImageEnIO.WicFastLoading

TImageEnIO.WicFastLoading


Declaration

property WicFastLoading: boolean;


Description

Enables use of TIEWICReader for loading of JPEG and PNG files. This can greatly improve loading speed compared with native Delphi code.
Although WIC supports BMP, PNG, ICO, JPEG, GIF, TIFF and HDP, WicFastLoading is only used with JPEG (around 3 times faster) and PNG (around 30% faster), because it tends to be slower with TIFF and GIF, and provides no speed benefits with BMP and ICO.
WicFastLoadingis best when you want fastest loading of a full size view of the image.

Note:
 If WicFastLoading is enabled, it will automatically use normal loading for unsupported formats
 WicFastLoading will not be used if JPEG_Scale <> ioJPEG_FullSize


Engine Performance





Example

// Faster loading of a JPEG
ImageEnView1.IO.WicFastLoading := True;
ImageEnView1.IO.LoadFromFile('D:\input.jpg');


Demo

Demo  Demos\InputOutput\IEViewPerformance\Performance.dpr


See Also

 LoadFromFile
 LoadFromStream
 WicFastLoading
 OptimizeLoadingParams
 GetMetaData