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.LoadFromFile( 'C:\MyImage.tiff' );
MBitmap.Params[ 0 ].TIFF_Compression := ioTIFF_G4FAX;
MBitmap.DuplicateCompressionInfo();
MBitmap.SaveToFile( 'C:\OutImage.tiff' );
MBitmap.Free;

// Which is the same as:
MBitmap := TIEMultiBitmap.Create();
MParams := TIOMultiParams.Create();
MBitmap.LoadFromFile( 'C:\MyImage.tiff', MParams );
for i := 0 to MBitmap.count do
  MParams[i].TIFF_Compression := ioTIFF_G4FAX;
MBitmap.SaveToFile( '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.LoadFromFile('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;
  mbmp.Params[i].JPEG_Quality    := 90;
end;
mbmp.SaveToFile('D:\Output.pdf');
mbmp.Free;