ImageEn, unit iexBitmaps

TIOParams.TIFF_Compression

TIOParams.TIFF_Compression


Declaration


property TIFF_Compression: TIOTIFFCompression;


Description


Specifies the compression type for TIFF images.

Default: ioTIFF_UNCOMPRESSED


Examples


// Save monochrome TIFF in G4 Fax format
ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_G4FAX;
ImageEnView1.IO.Params.BitsPerSample := 1;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.SaveToFile('D:\output.tif');


// Save TIFF as 32bit gray-scale (ie32f)
// Note: Compression must be: ioTIFF_UNCOMPRESSED, ioTIFF_LZW, ioTIFF_PACKBITS or ioTIFF_ZIP
ImageEnView1.LegacyBitmap := false;
ImageEnView1.IEBitmap.PixelFormat := ie32f;
ImageEnView1.IO.Params.BitsPerSample := 32;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.Params.TIFF_PhotometInterpret := ioTIFF_BLACKISZERO;
ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_UNCOMPRESSED;
ImageEnView1.IO.SaveToFileTIFF('D:\GrayTiff32.tiff');


// Save with JPEG compression
ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_JPEG;