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 BITIFF.H.

Compression mode

Description

TCOMP_NOCOMP

No compression

TCOMP_PACKBITS

Packbit

TCOMP_LZW

LZW

TCOMP_LZW_DIFF

LZW with differentiation

TCOMP_JPEG

JPEG

TCOMP_CCITTG2

CCITT Group 3 1D NO EOL

TCOMP_CCITTG31D

CCITT Group 3 1D

TCOMP_CCITTG32D

CCITT Group 3 2D

TCOMP_CCITTG4

CCITT Group 4

 

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

TSPEC_16BIT

Save the image in 16 bit grayscale format .

TSPEC_12IN16BIT

Save the image in 12 bit grayscale format.

TSPEC_CMYK

Save the image as a CMYK image.

TSPEC_YCBCR

Save the image as a YCBCR image.