New Annotation Features of Version 14.5

Show in webframe
Note: This topic is for Document/Medical only. With the release of LEADTOOLS version 14.5, many new features were introduced to the annotations. Some of these features alter the way annotations are displayed. Other features change or enhance the user interface. The following features were introduced: The following paragraphs describe each feature in more detail. New Annotation Rotate Option In previous versions of LEADTOOLS, annotation objects could be rotated by holding the Shift key while dragging a handle. With the new rotate options, two rotate handles are displayed on a selected object. One of the handles is the "gripper" handle, which rotates the object when dragged. The other handle is the "center" handle, which determines the center of rotation. The center of rotation can be moved by dragging. The gripper handle can be moved anywhere by dragging.

The following figure illustrates a rotate by dragging the "gripper" handle:

The following figure illustrates moving the "center" handle: The rotate handles can be reset to a default location by right-clicking the annotation object, and selecting the Reset Rotate Control Points option, as shown in the following figure: The rotate control points can be globally hidden or displayed by right-clicking on the image (not an annotation object), and selecting the Use Rotate Control Points option, as shown in the following figure: The new annotation rotate handles are implemented by the following functions: XML Format 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, a text-based format became available for annotations - 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: New XP Style Annotation Toolbar The annotation toolbar was updated to have a Windows-XP look and feel. As with previous versions of LEADTOOLS, the annotation toolbar can be customized with your own images. The following figure displays a sample of the original style and the new style: Programmatically, set the UseXPStyleToolBar property to true to use the new XP style of toolbar. Set the UseXPStyleToolBar property to false to use the original style of toolbar. New AnnNewGroupEditDesigner Class The AnnNewGroupEditDesigner class extends AnnRectangleEditDesigner class to provide functionality for editing an AnnGroupObject annotation object on an annotation container. This class has improved resizing and rotate functionality over the AnnGroupEditDesigner class. The MaintainAspectRatio function was added to control whether the aspect ratio is maintained when the group is resized. When selecting an AnnRectangleObject , or any annotation object that derives from AnnRectangleObject , or an AnnGroupObject , eight control points appear. If MaintainAspectRatio is true (default), dragging one of the four corner control points will change the size of the annotation object while maintaining its aspect ratio. If false, the aspect ratio is not preserved. The AnnNewGroupEditDesigner class also changes the multiple-selection behavior. In previous versions of LEADTOOLS, you could select multiple objects and manipulate the objects by dragging any handle of any object. When moving a handle, the results were often not intuitive. With the new multi-select option, all selected objects are outlined with a multi-select border. The multi-select border has eight resize handles, and two rotate handles. Now, moving, resizing, and rotating multiply select objects is clear and easy to do. The following figure displays a sample of the original style and the new style: New Calibrate Ruler Feature With this feature, a user can automatically calibrate a ruler to the desired size when using the automation. This is useful when a user wants to interactively measure something in an image. Note that there are four annotation object classes used for measuring: Any of these objects can be calibrated. To calibrate a ruler:
  1. Load desired image.
  2. Draw an AnnRulerObject object and size to desired size. In this example, we will assume that the grid is composed of 1 inch squares, so after calibrating the ruler, the diagonal of a 1-inch by 2-inch rectangle should measure 2.24 inches. . The following figure displays an uncalibrated ruler:
  3. Right-click the AnnRulerObject object and select Ruler Properties, and then Ruler, as shown in the following figure: The following figure appears:
  4. Click the Calibrate button to open the Calibrate Ruler dialog. The following figure displays: In the Calibrate dialog, set the Ruler Length to 2 and the Ruler Measurement to feet. Select the Apply to Newly Created Rulers check box. Click the OK button to close the Calibrate dialog. Click the OK button to save your selections and close the Ruler Properties dialog.
  5. Draw a new ruler to measure any part of the image, as shown in the following figure: For more information on calibrating rulers, see the topic Calibrating Annotation Ruler Objects.
New Annotation Cursors This new feature displays different cursors for many tasks in automated annotation mode. This feature displays unique annotation cursors in the following situations: See the AnnAutomationManager class for more information about the different cursors that are available. The following figure shows some of the cursors that are available: New Rubber Stamp Display Style With LEADTOOLS Version 14.5 new default images are being introduced for the 26 predefined rubber stamp annotations. The following figure displays a sample of the original style and the new style: Set the SetUseNewPicture property to true to use the new default pictures. Use the GetUseNewPicture property to get a value that indicates whether the new default pictures are being used.

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.