SaveDIBInDialogicTiffFile

#include "BITIFF.H"

 

BOOL CALLBACK SaveDIBInDialogicTiffFile( LPTSTR    lpszFileName,
HANDLE hDIB,
UINT        wCompMode)

Description

This function was designed specifically to produce a TIFF image compatible with Dialogic boards. It saves the device independent bitmap (DIB) in the TIFF Class-F file lpszFileName for Faxing. It does all low-level calls internally in the DLL. To retrieve the last error, use the TiffErrorString(). The wCompMode must be set to one of the compression types defined in the Document Imaging SDK USER’S GUIDE.

The following compression types are accepted by the function:

Compression type -     TCOMP_CCITTG31D           - CCITT Group 3 1D

                                    TCOMP_CCITTG32D           - CCITT Group 3 2D

                                    TCOMP_CCITTG4                - CCITT Group 4

 

Once all the pages are added to the TIFF one must call the UpdatePageNumbers() function to set the page numbering correctly.

Parameters

LPTSTR

lpszFileName

Path to the TIFF file.

HANDLE

hDIB

Device independent bitmap to be saved.

UINT

wCompMode

Compression type.

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++, Visual Basic.

Requirements

Header :     Declared in BiTiff.h; include BiTiff.h.

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.

References to related functions

See SaveBitmapInTiffFile(), LoadTiffIntoDIB(), LoadTiffFileIntoBitmap().