TIOParams.OptimizeLoadingParams
TIOParams.OptimizeLoadingParams
Declaration
procedure OptimizeLoadingParams(DisplayWidth, DisplayHeight: Integer; AllowThumbnails: Boolean = True);
Description
Optimizes the parameters for the loading of an image at the specified display size (i.e. image is guaranteed to be at least DisplayWidth x DisplayHeight pixels).
Pass DisplayWidth as 0 to reset to the default parameters (i.e. full size loading).
Set
AllowThumbnails to false, to prevent the loading of embedded EXIF thumbnails (which can be lower quality).
JPEG properties that will be set:
◼JPEG_Scale◼JPEG_GetExifThumbnailRAW properties that will be set:
◼RAW_GetExifThumbnail◼RAW_GetEmbeddedJpeg◼RAW_EmbeddedJpegLoading◼RAW_EmbeddedJpegMinWidth◼RAW_EmbeddedJpegMinHeight◼RAW_HalfSizeJPEG2000 properties that will be set:
◼J2000_ReduceOther properties that will be set:
◼AutoScaleImport◼LoadToWidth◼LoadToHeight◼IEN_GetThumbnail | Demos\InputOutput\IEViewPerformance\Performance.dpr |
// Fastest loading of an image for display in a TImageEnView
ImageEnView1.IO.Params.OptimizeLoadingParams( ImageEnView1.Width, ImageEnView1.Height );
ImageEnView1.AutoShrink := True;
ImageEnView1.IO.LoadFromFile( 'C:\Image.jpeg' );
// Load at full size
ImageEnView1.IO.Params.OptimizeLoadingParams( 0,0 );
ImageEnView1.AutoShrink := False;
ImageEnView1.Zoom := 100;
ImageEnView1.IO.LoadFromFile( 'C:\Image.jpeg' );
See Also
◼WicFastLoading◼WicFastLoading◼GetMetaData