ImageEn, unit iexBitmaps

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_GetExifThumbnail
- JPEG_DCTMethod
- Width
- Height

RAW properties that will be set:
- RAW_GetExifThumbnail
- RAW_GetEmbeddedJpeg
- RAW_HalfSize

JPEG2000 properties that will be set:
- J2000_Reduce

Other properties that will be set:
- IEN_GetThumbnail


Demo


  Demos\InputOutput\IEViewPerformance\Performance.dpr



Examples


// 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
- MinimumRawEmbeddedJpegWidth
- MinimumRawEmbeddedJpegHeight