DefineTiffImageInfo

#include "BITIFF.H"

 

BOOL CALLBACK DefineTiffImageInfo( TIFFFILE   hChain,
int               nImage,
UINT          wTagID,
UINT          wType,
LONG        lData)

Description

Defines or replaces a single data tag of any kind except ASCIITYPE and RATIONALTYPE. Use DefineTiffImageInfoBuffer() to define tags of type ASCIITYPE or RATIONALTYPE. It is your responsibility to use the proper type for a predefined tag (see the list of tags in this document). See the notes at DefineTiffImageInfoBuffer().

Parameters

TIFFFILE

hChain

Handle of a TIFF image chain.

int

nImage

Index of the image in the chain.

UINT

wTagID

Identifier of tag you want to fill with info.

UINT

wType

Type of data (see defines in BITIFF.H).

LONG

lData

Single data to initialize the tag.

Return values

TRUE on success, otherwise FALSE.

Programming notes

See notes at DefineTiffImageInfoBuffer().

Requirements

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

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.

References to related functions

See IsRequiredTag(), DefineTiffImageInfoBuffer() and GetTiffImageInfo().

Code example

See example at DefineTiffImageInfoBuffer().