Prior to version 14.5, annotations could be saved using the AnnCodecs.Save method in one of three formats:
AnnCodecsFormat.Native - a text-based file format for storing annotations AnnCodecsFormat.Encoded - a binary file format for storing annotations AnnCodecsFormat.Serialize - a .NET Serialize format
There are many advantages of using the Xml format:
Unlike the Native format, the Xml format is both forward- and backward-compatible. It is human readable. Files using the Xml format can be easily modified using a standard text editor (i.e. notepad.exe). Files using the Xml format can be easily parsed using any standard XML parser. Files using the Xml format can be used with any of the growing number of utilities that work with XML.
Non-automated Annotations Non-automated annotations allow you to customize the creation of and interaction with annotations to suit your own needs. When programming non-automated annotations, it is important to remember:
You must provide any menus or dialogs you wish to use for entering annotation data. You must also provide your own means of drawing and interacting with the annotations. No hyperlink activation is provided for non-automated annotations. In addition to providing the code for entering hyperlink type and associated parameters, you must also provide the code for accessing the default web browser and calling any programs to be run through a hyperlink.
Automated Annotations
Automated annotations require an automation object to be associated with a RasterImageViewer. This automation object lets you maintain default properties for all objects. For example, you can use it to set the default font and the default line width. Keep in mind, however, that scaling factors affect the appearance of these default measurements. The values are set based on the scaling factors that are in effect at the time you create the object. Features associated with automated annotations are:
Automated annotation menus that appear when you right-click in design mode. Automated drawing that lets you use the left mouse button to draw annotations in design mode. The annotation toolbar that lets you select the annotation tool to draw. Programmatical handling (by LEADTOOLS) of the activation of hyperlinks and audio annotations. The ability to undo/redo a number of user actions that were executed using the automated annotations functions.
Use Rotate Control Points Use New Rubber Stamp Pictures Maintain Aspect Ratio Use New Group Edit Designer Use XP Style Toolbar Calibrate a ruler
Cancel DoubleClick End EndClipCursor EndWorking GetLogicalAnnPoint HookContainer MouseDown MouseMove MouseUp Move MoveControlPoint MoveName OnAfterDrawingObjects OnDraw OnEdit OnRun Start StartClipCursor StartWorking Working
CurrentObjectIdChanged event CurrentRubberStampTypeChanged event UserModeChanged event AfterObjectChanged event BeforeObjectChanged event CurrentDesignerChanged event ImageDirtyChanged event UndoRedoChanged event AfterDrawingObjects event BeforeDrawingObjects event Draw event Edit event Run event
AnnAutomation.Copy method AnnAutomation.Delete method AnnAutomation.Paste method AnnAutomation.CanCopy property AnnAutomation.CanPaste property AnnAutomation.CurrentEditObject property AnnObject.UserData property AnnAutomation.ClipboardObjectFormat property AnnObject.SerializePassword property
AnnAutomationManager.ContextMenu property AnnAutomationManager.ControlPointCursor property AnnAutomationManager.ControlPointsGap property AnnAutomationManager.ExtendedModeModifierKey property AnnAutomationManager.MultiSelectModifierKey property AnnAutomationManager.ObjectPropertiesDialogType property AnnAutomationManager.PasswordDialogType property AnnAutomationManager.RotateModifierKey property AnnAutomationManager.RubberStampButtonDropDownContextMenu property AnnAutomationManager.RunCursor Property AnnAutomationManager.SelectedObjectCursor property AnnAutomationManager.SelectObjectcursor property AnnAutomationManager.SelectRectangleCursor property AnnAutomationManager.ShowControlPoints property AnnAutomationManager.ToolBar property AnnAutomationManager.CreateDefaultObjectContextMenu method AnnAutomationManager.CreateDefaultObjects method AnnAutomationManager.CreateToolBar method AnnAutomationObject.ContextMenu property AnnAutomationObject.DrawCursor property AnnAutomationObject.DrawDesignerType property AnnAutomationObject.EditDesignerType property AnnAutomationObject.Id property AnnAutomationObject.Name property AnnAutomationObject.Object property AnnAutomationObject.RunDesignerType property AnnAutomationObject.ToolBarButton property AnnAutomationObject.ToolBarImage property AnnAutomationObject.ToolBarToolTipText property AnnAutomationManager.UseXPStyleToolBar property AnnAutomationObject.UseRotateControlPoints property AnnAutomationManager.MaintainAspectRatio property AnnNewGroupEditDesigner class