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
// Fast load a JPEG
var
bmp: TIEBitmap;
begin
bmp := TIEBitmap.Create();
bmp.WicFastLoading := True;
bmp.LoadFromFile('C:\input.jpg');
// Do something with bmp
bmp.Free;
end;
| Demos\InputOutput\IEViewPerformance\Performance.dpr |
See Also
◼LoadFromFile
◼WicFastLoading
◼WicFastLoading
◼OptimizeLoadingParams
◼GetMetaData