ImageEn, unit iexBitmaps

TIEMultiBitmap.ParamsEnabled

TIEMultiBitmap.ParamsEnabled


Declaration

property ParamsEnabled: Boolean;


Description

Specifies whether Params are updated when assigning or appending images.
When loading images Params are always loaded. However if ParamsEnabled is False, the params are not updated when performing TIEBitmaps and multi-bitmap images are added.

Default: True


Examples

// Change the compression method for a TIFF file
MBitmap := TIEMultiBitmap.create;
MBitmap.ParamsEnabled := True;
MBitmap.Read( 'C:\MyImage.tiff' );
MBitmap.Params[ 0 ].TIFF_Compression := ioTIFF_G4FAX;
MBitmap.DuplicateCompressionInfo();
MBitmap.Write( 'C:\OutImage.tiff' );
MBitmap.Free;

// Which is the same as:
MBitmap := TIEMultiBitmap.create;
MParams := TIOMultiParams.create;
MBitmap.Read( 'C:\MyImage.tiff', MParams );
for I := 0 to MBitmap.count do
  MParams[ I ].TIFF_Compression := ioTIFF_G4FAX;
MBitmap.Write( 'C:\OutImage.tiff', MParams );
MParams.free;
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;