#include "BITIFF.H"
HANDLE CALLBACK LoadNonRGBTiffIntoDIB(LPTSTR lpszFileName,
int nImage)
Description
Loads the n-th image from the Non RGB TIFF file lpszFileName into a device independent bitmap (DIB). Does all low level calls internally in the DLL. The handle to the bitmap is NULL if any error occurs. To retrieve the last error, use the TiffErrorString(). This function saves image with YIQ, YUV, CMY, LAB, XYZ, HSV, HSI color space. The PHOTOMETRICINTERPRETATION tag contains information about color space (PI_YUV, PI_HSI, PI_HSV, PI_XYZ, PI_LAB, PI_YIQ, PI_CMY).
Parameters
|
LPTSTR |
lpszFileName |
Path to the TIFF file. |
|
int |
NImage |
The n-th image in the file. |
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
The handle to device independent bitmap is NULL if any error occurs. The palette information is in the DIB.
Programming notes
This function was designed to be used with high-level application generators like Borland C++ Builder, Borland Delphi or MS Visual Basic.
Requirements
Header : Declared in BiTiff.h; include BiTiff.h.
Library : Use BiTIFF.lib.
DLLs : BiTiff.dll, BiDlgs.dll.
References to related functions
See SaveNonRGBDIBInTiffFile(), GetTiffColorSpace().