WPF 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. For example, The WPF annotation example that ships with LEADTOOLS creates a WPF Annotation file that has the same name as its associated image file, but uses a different extension. When the image file is loaded, the program looks for an associated annotation file and loads it as well. LEADTOOLS provides several properties and methods 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 objects from either a file or a stream, LEADTOOLS provides the following:

WPF Annotation files may be saved to a file or to a stream, using the following:

Prior to version 14.5, annotations could be saved using the AnnCodecs.Save method in one of three formats:

Prior to version 14.5, the Native format was the preferred format for storing annotation files. Beginning with version 14.5, is a text-based format for annotations became available - AnnCodecsFormat.Xml. This is a text-based format for storing LEAD annotations that follows the XML (Extensible Markup Language) format. The XML format is replacing the Native format as the preferred format for storing annotations. There are many advantages of using the XML format:

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Imaging, Medical, and Document