Error processing SSI file
LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)

Show in webframe

AnnFreehandDrawDesigner Class






Members 
This class extends the AnnDrawDesigner class to provide functionality for drawing a freehand AnnPolylineObject on an annotation container.
Object Model
Syntax
public class AnnFreehandDrawDesigner : AnnDrawDesigner 
'Declaration
 
Public Class AnnFreehandDrawDesigner 
   Inherits AnnDrawDesigner
'Usage
 
Dim instance As AnnFreehandDrawDesigner

            

            
public ref class AnnFreehandDrawDesigner : public AnnDrawDesigner 
Example

For a complete example on how to use annotation draw and edit designers, refer to AnnDesigner.

This example initializes a new designer to draw freehand polylines with spaces set to 2
Copy Code  
Imports Leadtools.Windows.Annotations
Imports Leadtools.Windows.Controls

Public Function AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ByVal viewer As ImageViewer, _
  ByVal container As AnnContainer) As AnnFreehandDrawDesigner
   ' start a new freehand draw designer
   Dim freehandDrawDesigner As AnnFreehandDrawDesigner = New AnnFreehandDrawDesigner(container)
   ' set up the object template (a 2 pixels-wide polyline)
   Dim polylineObject As AnnPolylineObject = New AnnPolylineObject()
   polylineObject.Stroke = Colors.Red
   polylineObject.StrokeThickness = 2.0

   ' set up the spacing of the freehand designer
   freehandDrawDesigner.Spacing = 2

   ' initialize the rest of the designer
   freehandDrawDesigner.ObjectTemplate = polylineObject

   Return freehandDrawDesigner
End Function
using Leadtools.Windows.Annotations;
using Leadtools.Windows.Controls;
using Leadtools.Demos;
using Leadtools.Help;

public AnnFreehandDrawDesigner AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ImageViewer viewer, AnnContainer container)
{
   // start a new freehand draw designer
   AnnFreehandDrawDesigner freehandDrawDesigner = new AnnFreehandDrawDesigner(container);
   // set up the object template (a 2 pixels-wide polyline)
   AnnPolylineObject polylineObject = new AnnPolylineObject();

   polylineObject.Stroke = Colors.Red;
   polylineObject.StrokeThickness = 2.0;

   // set up the spacing of the freehand designer
   freehandDrawDesigner.Spacing = 2;

   // initialize the rest of the designer
   freehandDrawDesigner.ObjectTemplate = polylineObject;

   return freehandDrawDesigner;
}
using Leadtools.Windows.Annotations;
using Leadtools.Windows.Controls;
using Leadtools.Examples;

public AnnFreehandDrawDesigner AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ImageViewer viewer, AnnContainer container)
{
   // start a new freehand draw designer
   AnnFreehandDrawDesigner freehandDrawDesigner = new AnnFreehandDrawDesigner(container);
   // set up the object template (a 2 pixels-wide polyline)
   AnnPolylineObject polylineObject = new AnnPolylineObject();

   polylineObject.Stroke = Colors.Red;
   polylineObject.StrokeThickness = 2.0;

   // set up the spacing of the freehand designer
   freehandDrawDesigner.Spacing = 2;

   // initialize the rest of the designer
   freehandDrawDesigner.ObjectTemplate = polylineObject;

   return freehandDrawDesigner;
}
Imports Leadtools.Windows.Annotations
Imports Leadtools.Windows.Controls

Public Function AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ByVal viewer As ImageViewer,
  ByVal container As AnnContainer) As AnnFreehandDrawDesigner
   ' start a new freehand draw designer
   Dim freehandDrawDesigner As AnnFreehandDrawDesigner = New AnnFreehandDrawDesigner(container)
   ' set up the object template (a 2 pixels-wide polyline)
   Dim polylineObject As AnnPolylineObject = New AnnPolylineObject()

   polylineObject.Stroke = Colors.Red
   polylineObject.StrokeThickness = 2.0

   ' set up the spacing of the freehand designer
   freehandDrawDesigner.Spacing = 2

   ' initialize the rest of the designer
   freehandDrawDesigner.ObjectTemplate = polylineObject

   Return freehandDrawDesigner
End Function
Requirements

Target Platforms

See Also

Reference

AnnFreehandDrawDesigner Members
Leadtools.Windows.Annotations Namespace

Error processing SSI file
   Leadtools.Windows.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features