Annotation Files

Note:

This topic is for Document/Medical only.

LEADTOOLS maintains annotations separately from bitmaps. The user's application code is responsible for maintaining the relationships between images and annotations.

LEADTOOLS provides several functions for handling annotation files. Annotation files can be stored on a disk, in memory or they may be embedded in another file. To load annotation files in these varied locations, LEAD provides the following:

LAnnContainer::Load

LAnnContainer::LoadMemory

LAnnContainer::LoadOffset

Each annotation file contains information about the annotations stored in that file. This information can be obtained using the following functions:

LAnnContainer::FileInfo

LAnnContainer::FileInfoMemory

LAnnContainer::FileInfoOffset

Annotation files may contain a single page, or they may be multi-page. In a multi-page file, pages may be deleted using the following functions:

LAnnContainer::DeletePage

LAnnContainer::DeletePageMemory

LAnnContainer::DeletePageOffset

Finally, annotation files may be saved to disk, to memory, or embedded within another file, using the following functions:

LAnnContainer::Save

LAnnContainer::SaveMemory

LAnnContainer::SaveOffset