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).
// 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' );