ImageEn, unit iexBitmaps

TIOParams.JPEG_Scale

TIOParams.JPEG_Scale


Declaration

property JPEG_Scale: TIOJPEGScale;


Description

Specifies the size at which to load a JPEG image. It is used to speed up loading when a full size image is not required.

Note:
 To determine what scaling factor was used, see JPEG_Scale_Used
 To get the actual size of the image, use OriginalWidth and OriginalHeight

Default: ioJPEG_FULLSIZE (Specified by IOParamDefaults)


Example

// Load a JPEG as fast as possible, ensuring width is >= 150 and height >= 100 (while maintaining the aspect ratio)
ImageEnView1.IO.Params.LoadToWidth  := 150;
ImageEnView1.IO.Params.LoadToHeight := 100;
ImageEnView1.IO.Params.JPEG_Scale := ioJPEG_AUTOCALC;
ImageEnView1.IO.LoadFromFile('C:\myimage.jpg');


See Also

 Width
 Height
 JPEG_Scale_Used
 OptimizeLoadingParams