ImageEn, unit iexBitmaps

TIOTIFFCompression


Declaration

type TIOTIFFCompression = (ioTIFF_UNCOMPRESSED, ioTIFF_CCITT1D, ioTIFF_G3FAX1D, ioTIFF_G3FAX2D, ioTIFF_G4FAX, ioTIFF_LZW, ioTIFF_OLDJPEG, ioTIFF_JPEG, ioTIFF_PACKBITS, ioTIFF_ZIP, ioTIFF_DEFLATE, ioTIFF_UNKNOWN);


Description

Value Description Supported Pixel Formats Supports Alpha Channel?
ioTIFF_UNCOMPRESSED Uncompressed TIFF All Yes
ioTIFF_CCITT1D Bilevel Huffman compression Black/White Only No
ioTIFF_G3FAX1D Bilevel Group 3 CCITT compression, mono-dimensional Black/White Only No
ioTIFF_G3FAX2D Bilevel Group 3 CCITT compression, bi-dimensional Black/White Only No
ioTIFF_G4FAX Bilevel Group 4 CCITT compression, bi-dimensional Black/White Only No
ioTIFF_LZW LZW compression All Yes
ioTIFF_OLDJPEG Ver 6.0 JPEG compression (unsupported) True Color Images Only No
ioTIFF_JPEG JPEG compression True Color Images Only No
ioTIFF_PACKBITS RLE compression All Yes
ioTIFF_ZIP ZIP compression (non-TIFF standard) All No
ioTIFF_DEFLATE Adobe ZIP compression (non-TIFF standard) All No
ioTIFF_UNKNOWN Unknown compression    

For black/white compressions (ioTIFF_CCITT1D, ioTIFF_G3FAX1D, ioTIFF_G3FAX2D and ioTIFF_G4FAX) ensure that BitsPerSample = 1 and SamplesPerPixel = 1.


Examples

ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_G4FAX;
ImageEnView1.IO.Params.BitsPerSample := 1;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.SaveToFile('D:\output.tif');

ImageEnView1.IO.Params.TIFF_Compression := ioTIFF_JPEG;
ImageEnView1.IO.Params.TIFF_JPEGQuality := 85;