L_AnnLoadMulti

Summary

Loads the specified annotation file.

Syntax

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnLoadMulti(pFile, phObjects, nCount, pnItemsRead, pLoadOptions)

Parameters

L_TCHAR * pFile

Name of the file to load.

pHANNOBJECT phObjects

Pointer to an array that will receive the annotation container objects.

L_INT nCount

Size of the phObjects array.

L_INT *pnItemsRead

Pointer to an L_INT that will receive the count of annotation containers successfully read.

pLOADFILEOPTION pLoadOptions

Pointer to optional extended load options. Pass NULL because this parameter is currently ignored.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

To use this function:

This function loads all pages of a multipage annotation file into an array. Each consecutive page of the multipage annotation file corresponds to one annotation container, which is loaded into consecutive slots of the array. If the annotation file contains many pages, then this function will load the multipage annotation file much faster than repeated calls to L_AnnLoad function. Note that this function only loads annotation files that use the ANNFMT_XML format.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to L_AnnSaveMulti

Help Version 22.0.2023.7.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.