ImageEn, unit iexBitmaps

TIOParams.TIFF_StripCount

TIOParams.TIFF_StripCount


Declaration

property TIFF_StripCount: Integer;


Description

Specifies the number of strips to use when creating a TIFF file.
If TIFF_StripCount=0 then the strip count is calculated automatically to give 512KB strips.

Notes:
- TIFF_StripCount is not read when loading a TIFF.
- If you are using a TIEMultiBitmap or TImageEnMView, you can use DuplicateCompressionInfo to propogate the parameter to all frames

Default: 0


Examples

// Save Images with 2MB strips (instead of default 512KB)
const
  TWO_MB = 2 * 1024 * 1024;
ImageEnView1.IO.Params.TIFF_StripCount := imax((ImageEnView1.IEBitmap.Height * ImageEnView1.IEBitmap.RowLen) div TWO_MB, 1);
ImageEnView1.IO.SaveToFileTiff( 'D:\Myimage.tiff' );

// Create a TIFF with a single strip
ImageEnView1.IO.TIFF_StripCount := 1;
ImageEnView1.IO.SaveToFile('D:\out.tiff');