#include "BITIFF.H"
BOOL CALLBACK CopyTiffImageInFile( LPTSTR lpFileFrom,
int nImageFrom,
LPTSTR lpFileTo,
int nMode)
Description
Copies a TIFF image from the source file to the destination file. The destination file access can be set by the nMode parameter to T_CREATE or T_APPEND. If T_CREATE flag is used, it will change to T_APPEND automatically after the file is created, thus the next image will be appended to the file.
Parameters
|
LPTSTR |
lpFileFrom |
The source file. |
|
Int |
nImageFrom |
The n’th image in the source file if it is a multipage tiff file. The first image is zero. |
|
LPTSTR |
lpFileTo |
The destination TIFF file. |
|
int |
nMode |
The destination file open mode. T_APPEND - to append an image to an existing file. T_CREATE - to create a new file. |
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
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 CopyTiffImage().