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.

Default: ioJPEG_FULLSIZE (Specified by IOParamDefaults)


Example

// This is the fastest way to load a thumbnailed jpeg of about 100x100 pixels
ImageEnView1.IO.Params.Width := 100;
ImageEnView1.IO.Params.Height := 100;
ImageEnView1.IO.Params.JPEG_Scale := ioJPEG_AUTOCALC;
ImageEnView1.IO.LoadFromFile('C:\myimage.jpg');


See Also

- Width
- Height
- JPEG_Scale_Used
- OptimizeLoadingParams