Create Multipage TIFF Files

Q:  How can I create multipage TIFF files?

A:  You can easily create a multipage TIFF file from two TIFF files with MergeTiffFiles function. This function is in the BITIFF.DLL. This function will append the second file  after the first TIFF file. You can create multipage TIFF files, and you can create many pages in a single image. Another way to create multipage TIFF files is to insert a page to the image with InsertTiffImage function. This function is in the BITIFF.DLL.

 

Code examples:

       #include “BiTiff.h”

       …

       char szDestFile[MAX_PATH], szFile[MAX_PATH];

       BOOL bOK;

       strcpy(szDestFile, “c:\\dest.tif”);

       strcpy(szFile, “c:\\test.tif”);

       BeginWaitCursor();

       bOK = MergeTiffFiles(szDestFile, szFile, NULL, NULL);

       EndWaitCursor();

       BeginWaitCursor();

       InsertTiffImage(szTiffFileName, hDib, TCOMP_NOCOMP, TRUE, 1,

                indexofimage, isFast, FALSE);         //1: NORMAL BIT ORDER

       EndWaitCursor();