TIEGlobalSettings.AutoAdjustDPI
Declaration
property AutoAdjustDPI: Boolean;
Description
When set to True and an image is loaded (with
TIEBitmap or
TIEMultiBitmap) with horizontal different from its vertical DPI, ImageEn will scale the image to make them equal.
This property only afffects
TIEBitmap or
TIEMultiBitmap. For
TImageEnView/
TImageEnIO use
AutoAdjustDPI. For
TImageEnMView/
TImageEnMIO use
AutoAdjustDPI.
Note: Quality of scaling is specified by
DefaultResampleFilterDefault: False
// load a TIFF, fix the DPI and save it
IEGlobalSettings().AutoAdjustDPI := True;
mbmp := TIEMultiBitmap.create;
mbmp.LoadFromFile('input.tiff');
mbmp.SaveToFile('output.tiff');
mbmp.free;