#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnLoadMultiOffset(fd, nOffset, nLength, phObjects, nCount, pnItemsRead, pLoadOptions)
Loads annotations from a position within a file. This enables you to load an annotation file that is embedded in another file.
The Windows file handle of the file to load.
The position, from the beginning of the file, of the first byte to load. (The byte count starts at zero.)
The number of bytes of annotation data to read from the file. If you saved the offset using L_AnnSaveMultiOffset, the variable pointed to by puSizeWritten in that function contains the length of data saved. If you do not know the length of the data, pass 0xFFFFFFFF for this parameter.
Pointer to an array that will receive the annotation container objects.
Size of the phObjects
array.
Pointer to an L_INT that will receive the count of annotation containers successfully read.
Pointer to optional extended load options. Pass NULL because this parameter is currently ignored.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To use this function:
phObjects
, and 0 for nCount
.pnItemsRead
.This function loads all pages of a multipage annotation file starting at a given offset, into an array. Each consecutive page of the multipage annotation file corresponds to one annotation container, and is loaded into consecutive slots of the array. If the annotation file contains many pages, then this method will load the multipage annotation file much faster than repeated calls to L_AnnLoad. Note that this function only loads annotation files that use the ANNFMT_XML format.
Required DLLs and Libraries
Win32, x64.
For an example, refer to L_AnnSaveMultiOffset
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document