ImageEn, unit iexBitmaps

TIOJPEGScale


Declaration

  TIOJPEGScale = (
    ioJPEG_AUTOCALC,
    ioJPEG_FULLSIZE,
    ioJPEG_HALF,
    ioJPEG_QUARTER,
    ioJPEG_EIGHTH);


Description

Value Description
ioJPEG_AUTOCALC The JPEG Scale is selected automatically to ensure it is larger than your minimum dimensions. You need to specify this using the LoadToWidth and LoadToHeight properties
ioJPEG_FULLSIZE The full image is loaded (default). Slowest loading
ioJPEG_HALF Image is loaded at 1/2 size
ioJPEG_QUARTER Image is loaded at 1/4 size
ioJPEG_EIGHTH Image is loaded at 1/8 size. Very fast loading


Example

// Load JPEG as fast as possible while still being larger than the display size
ImageEnView.IO.Params.LoadToWidth  := ImageEnView1.ClientWidth;
ImageEnView.IO.Params.LoadToHeight := ImageEnView1.ClientHeight;
ImageEnView.IO.Params.JPEG_Scale   := ioJPEG_AUTOCALC;
ImageEnView.IO.LoadFromFile('D:\MyImage.jpeg');