ImageEn, unit iexBitmaps

TIEBitmap.WicFastLoading

TIEBitmap.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.

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


Example


// Fast load a JPEG
var
  bmp: TIEBitmap;
begin
  bmp := TIEBitmap.Create;
  bmp.WicFastLoading := True;
  bmp.Read('C:\input.jpg');
  // Do something with bmp
  bmp.Free;
end;


Demo


  Demos\InputOutput\IEViewPerformance\Performance.dpr



See Also


- Read
- WicFastLoading
- WicFastLoading
- OptimizeLoadingParams