#include "BITIFF.H"
int CALLBACK DefineGeneralTags(TIFFFILE hChain, int nImage, BITMAP Bm)
Description
Defines dimension and colorinfo tags (IMAGEWIDTH, IMAGELENGTH, BITSPERSAMPLE, ROWSPERSTRIP, SAMPLESPERPIXEL and PLANARCONFIG) in a TIFF image chain based on data in the Bm structure. The last two tags are defined only in 24 color images. If the TIFF image will be JPEG compressed, there are additional tags in the list of defined tags (TILEWIDTH, TILELENGTH, JPEGPROC, JPEGRESTARTINTERVAL, YCBCRSUBSAMPLING and REFERENCEBLACKWHITE) and TILELENGTH supersedes ROWSPERSTRIP.
Parameters
|
TIFFFILE |
hChain |
TIFF image chain handle. |
|
int |
nImage |
Index of the image in the chain. |
|
BITMAP |
Bm |
BITMAP structure holding the basic information. |
Return values
Error status. TOK if OK. TNOTENOUGHMEMORY in case of low memory. TTOOFEWINFO in case of uninitialized or incorrect Bm structure. TBADNUMBEROFCOLORS in case of incorrect bit depth (1, 4, 8, 16, 24 are allowed).
Requirements
Header : Declared in BiTiff.h; include BiTiff.h.
Library : Use BiTIFF.lib.
DLLs : BiTiff.dll.