ImageEn, unit iemio

TImageEnMIO.Params

TImageEnMIO.Params


Declaration


property Params[idx: integer]: TIOParams;


Description


Provides access to the TIOParams object for the image idx to modify image parameters (e.g. bits per sample, compression, etc).
The parameters are updated when you load from files or streams. You can modify these parameters before saving images.

Note: If this TImageEnMIO is connected to a TImageEnMView which is being filled "on demand", then <fc>Params will not be valid until the image is loaded. Either use the OnImageLoaded to delay until the image/params are ready, or force loading by using EnsureImageLoaded


Example


// Change the compression type of a TIFF and save it
for I := 0 to ImageEnMView1.MIO.ParamsCount - 1 do
  ImageEnMView1.MIO.Params[ I ].TIFF_Compression := ioTIFF_G4FAX;
ImageEnMView1.MIO.SaveToFileTIFF( ... );

// Change the DPI of all images
for I := 0 to ImageEnMView1.MIO.ParamsCount - 1 do
begin
  ImageEnMView1.MIO.Params[ I ].DpiX := 72;
  ImageEnMView1.MIO.Params[ I ].DpiY := 72;
end;


See Also


- OnCreateParams