#include "BITIFF.H"
int CALLBACK GetTiffDimensions( TIFFFILE hChain,
int nImage,
LPBITMAPINFOHEADER lpBIH)
Description
Fills a BITMAPINFOHEADER structure based on the information in the corresponding tags. If there is no DPI information in the TIFF file, the function fills the biXPelsPerMeter and biYPelsPerMeter members of lpBIH with pixel per meter values derived from screen DPI values. WARNING: The function sets the biClrUsed and biClrImportant members of lpBIH to 256 for 16 bit grayscale images.
Parameters
|
TIFFFILE |
hChain |
TIFF image chain handle. |
|
int |
nImage |
Index of the image in the chain. |
|
LPBITMAPINFOHEADER |
lpBIH |
Pointer to a BITMAPINFOHEADER structure. |
Return values
Error status. TOK if there was no error. TTOOFEWINFO if indispensable tags are missing. TBADNUMBEROFCOLORS if incorrect bit depth or planar configuration is detected.
Requirements
Header : Declared in BiTiff.h; include BiTiff.h.
Library : Use BiTIFF.lib.
DLLs : BiTiff.dll.