TIFF compression modes

To save disk space and quickly transmit TIFF images, you can compress images using the compression function. You can use the following methods of compressing and decompressing the types of images shown in parentheses:

The following compression types are defined in the BITIFFLib.enumCompressionTypes enum:

Compression mode

Description

TCOMP_NOCOMP (= 201)

No compression

TCOMP_PACKBITS (= 202)

Packbit

TCOMP_LZW (= 203)

LZW

TCOMP_LZW_DIFF (= 204)

LZW with differentiation

TCOMP_CCITTG2 (= 205)

CCITT Group 3 1D NO EOL

TCOMP_CCITTG31D (= 206)

CCITT Group 3 1D

TCOMP_CCITTG32D (= 207)

CCITT Group 3 2D

TCOMP_CCITTG4 (= 208)

CCITT Group 4

TCOMP_JPEG (= 209)

JPEG

 

For color images the following flags can also be specified using a binary OR operation with one of the compression flags:

 

TSPEC_16BIT (= 256)

Save the image in 16 bit grayscale format .

TSPEC_12IN16BIT (= 512)

Save the image in 12 bit grayscale format.

TSPEC_CMYK (= 768)

Save the image as a CMYK image.

TSPEC_YCBCR (= 1024)

Save the image as a YCBCR image.