DefineSpecialTags

#include "BITIFF.H"

 

int CALLBACK DefineSpecialTags( TIFFFILE hChain,
int              nImage,
UINT        wSpecial)

Description

Defines additional tags that do not exist in base tag list specified by DefineGeneralTags() or redifines some of them. Call this function only after you called DefineGeneralTags(). Use this function only for saving in special (non-baseline) TIFF formats.

wSpecial can take one of the following values (as defined in BITIFF.H):

TSPEC_16BIT                      Specifies tags that are needed for saving 16 bit grayscale
                                                images (BITSPERSAMPLE, SAMPLESPERPIXEL,
                                                PLANARCONFIG, MINIMUMVALUE and
                                                MAXIMUMVALUE).

TSPEC_12IN16BIT             Specifies tags that are needed for saving 16 bit grayscale
                                                images, but the maximum gray value for a pixel is 4095
                                                (BITSPERSAMPLE, SAMPLESPERPIXEL,
                                                PLANARCONFIG, MINIMUMVALUE and
                                                MAXIMUMVALUE).

TSPEC_CMYK                    Specifies tags that are needed for saving CMYK (32 bit)
                                                images (BITSPERSAMPLE and SAMPLESPERPIXEL).

TSPEC_YCBCR                  Specifies tags that are needed for saving YCbCr images
                                                (YCBCRSUBSAMPLING and
                                                REFERENCEBLACKWHITE).

Parameters

TIFFFILE

hChain

TIFF image chain handle.

int

nImage

Index of the image in the chain.

UINT

wSpecial

Special format identifier.

Return values

Error status. TOK if OK. TNOTENOUGHMEMORY in case of low memory.

Requirements

Header :     Declared in BiTiff.h; include BiTiff.h.

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.