Description Saves the device independent bitmap (hDIB) in the TIFF file named lpszFileName. 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 wCompMode is ignored if DisplayDlg is set to TRUE.
Syntax RetVal = [BITIFF.]InsertTiffImage lpszFileName hDIB wCompMode DisplayDlg nFillOrder nImage bFast bChange
Returns RetVal Boolean TRUE on success, otherwise FALSE.
Remarks lpszFileName String Path to the TIFF file.
hDib LONGLONG Device independent bitmap to be inserted or changed.
wCompMode Integer Compression type. The compression types defined in the enumCompressionTypes. Available Compression types:
TCOMP_NOCOMP - No compression
TCOMP_PACKBITS - Packbit
TCOMP_LZW - LZW
TCOMP_LZW_DIFF - LZW with
differentiation
TCOMP_CCITTG2 - CCITT Group 3
1D NO EOL
TCOMP_CCITTG31D - CCITT
Group 3 1D
TCOMP_CCITTG32D - CCITT
Group 3 2D
TCOMP_CCITTG4 - CCITT Group 4 TCOMP_JPEG - JPEG
DisplayDlg Boolean Display dialog box.
nFillOrder Integer Fill order.
nImage Integer The zero based position to insert or change the image at.
bFast Boolean If TRUE, Document Imaging SDK uses the fast saving method. Otherwise the slow one is used.
bChange Boolean If TRUE, the specified image will be changed with the new one. Otherwise the new image will be inserted at the given position.
See Also DeleteTiffImage Method, ReorderTiffFile Method