#include "BITIFF.H"
int CALLBACK GetTiffColorSpace(LPTSTR pszFileName,
int nImage)
Description
This function retrieves the color space of the TIFF image. Available color spaces: YUV, YIQ, HSI, HSV, LAB, XYZ, CMY. The color space information stores in the PHOTOMETRICINTERPRETATION tag. These tags are in BiTiff.h e.g.: PI_CMY, PI_YUV, PI_HSV etc.
Parameters
|
LPTSTR |
pszFileName |
Name of the TIFF file. |
|
Int |
nImage |
Index of the image in the chain. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
Returns the color space, -1 on error.
Available color spaces:
PI_YUV 10
PI_CMY 11
PI_YIQ 13
PI_HSV 14
PI_HSI 15
PI_XYZ 16
PI_LAB 17
Requirements
Header : Declared in BiTiff.h; include BiTiff.h.
Library : Use BiTIFF.lib.
DLLs : BiTiff.dll.