ImageEn, unit iexBitmaps

TIOJPEGScale

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