#include "BITIFF.H"
BOOL CALLBACK SaveNonRGBDIBInTiffFile( LPTSTR lpszFileName,
HANDLE hDIB)
Description
Saves the non RGB device independent bitmap (DIB) in the TIFF file lpszFileName. Does all low level calls internally in the DLL. To retrieve the last error, use the TiffErrorString(). The PHOTOMETRICINTERPRETATION tag contains information about color space. The tag values are in BiTiff.h (PI_YUV, PI_YIQ, PI_HSI, PI_HSV, PI_CMY, PI_LAB, PI_XYZ).
Parameters
|
LPTSTR |
lpszFileName |
Path to the TIFF file. |
|
HANDLE |
hDIB |
Device independent bitmap to be saved. |
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
TRUE on success, otherwise FALSE.
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 LoadNonRGBTiffIntoDIB(), GetTiffColorSpace().