ImageEn, unit imageenio

TImageEnIO.Params

TImageEnIO.Params


Declaration


property Params: TIOParams;


Description


Provides access to the parameters and meta-data of the current image as a TIOParams object. This object contains many format specific properties, such as bits per sample, type of compression, embedded text data, etc. It is filled automatically when loading images or manually using ParamsFromFile. The properties can also be set or modified when saving files.


Example


// Sets color-mapped 256 colors
ImageEnView1.IO.Params.BitsPerSample := 8;
ImageEnView1.IO.Params.SamplesPerPixel := 1;

// Sets JPEG quality of 90%
ImageEnView1.IO.Params.JPEG_Quality := 90;
ImageEnView1.IO.SaveToFile('D:\output.jpg');