#include "BITIFF.H"
BOOL CALLBACK CopyTiffImage( TIFFFILE hTiffFrom,
int nImageFrom,
TIFFFILE hTiffTo)
Description
Copies a TIFF image from the source file to the destination file. The destination file must be opened by the Document Imaging SDK OpenTiffFile() function. If the nMode flag used in OpenTiffFile() is T_CREATE, it will change to T_APPEND automatically after the file is created, thus the next image will be appended to the file.
Parameters
|
TIFFFILE |
hTiffFrom |
The source TIFF file. |
|
int |
nImageFrom |
The n'th image in the source file. |
|
TIFFFILE |
hTiffTo |
The destination TIFF file. |
Return values
Returns TRUE on success, FALSE if failed.
Requirements
Header : Declared in BiTiff.h; include BiTiff.h.
Library : Use BiTIFF.lib.
DLLs : BiTiff.dll.
References to related functions
See CopyTiffImageInFile().
Code example
hInput = OpenTiffFile("c:\\multpage.tif", T_READ);
hOutput = OpenTiffFile("c:\\out.tif", T_APPEND);
for(nIndex = 0;nIndex < 5;nIndex++)
{
bRetVal = CopyTiffImage(hInput, nIndex, hOutput);
if(!bRetVal)
break;
}
CloseTiffFile(hInput);
CloseTiffFile(hOutput);