ImageEn, unit iexBitmaps

TIOMultiParams.Params

TIOMultiParams.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).


Examples

// 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;

// Change the compression method for a TIFF file
// Note: This is an example. A better method is to use DuplicateCompressionInfo()
MBitmap := TIEMultiBitmap.create;
MBitmap.ParamsEnabled := True;
MBitmap.Read( 'C:\MyImage.tiff' );
for I := 0 to MBitmap.Count - 1 do
  MBitmap.Params[ I ].TIFF_Compression := ioTIFF_G4FAX;
MBitmap.Write( 'C:\OutImage.tiff' );
MBitmap.Free;

// Convert a TIFF to PDF with "US Letter" paper size
mbmp := TIEMultiBitmap.Create;
mbmp.ParamsEnabled := True;
mbmp.Read('D:\Input.tif');
for I := 0 to mbmp.Count-1 do
begin
  mbmp.Params[ I ].PDF_PaperSize := iepLetter;
  mbmp.Params[ I ].PDF_Compression := ioPDF_Jpeg;
end;
mbmp.Write('D:\Output.pdf');
mbmp.Free;