SaveAnnotationIntoTiffExt

#include "BITIFF.H"

#include "BIANNO.H"

 

BOOL CALLBACK SaveAnnotationIntoTiffExt(        LPTSTR     lpszFileName,
INT_PTR     lAnno,
UINT    wTag, BYTE bySaveMode, int iAnnoPage, int iTiffPage)

Description

Saves the annotation into a data TAG specified by the wTag parameter.

Parameters

LPTSTR

lpszFileName

Path to the TIFF file.

INT_PTR

lAnno

The annotation object handle.

UINT

wTag

The data tag number in the Document Imaging SDK.

BYTE

bySaveMode

Saving mode.

SAVE_ANNO_CREATE : The function will be overwrite annotations, if already exist.

SAVE_ANNO_APPEND : The function will be append annotation objects to the TIFF file, if already there are objects in the TIFF image.

int

iAnnoPage

Zero based integer. The function saves annotations from the specified page. If this parameter must be 0 and number of images in the file - 1. If this parameter is -1 the function saves all annotation objects.

Int

iTiffPage

The saved annotation will be displayed on the specified page after loading TIFF file. If this parameter must be 0 and number of images in the file - 1.

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.

Requirements

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

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.

References to related functions

See LoadAnnotationFromTiff(), SaveAnnotationIntoTiff().