LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

AnnFreehandDrawDesigner Class

Example 





Members 
This class extends the AnnDrawDesigner class to provide functionality for drawing a freehand AnnPolylineObject on an annotation container. .NET support Silverlight support
Object Model
AnnFreehandDrawDesigner ClassAnnContainer ClassAnnObject ClassAnnObject Class
Syntax
public class AnnFreehandDrawDesigner : AnnDrawDesigner 
'Declaration
 
Public Class AnnFreehandDrawDesigner 
   Inherits AnnDrawDesigner
'Usage
 
Dim instance As AnnFreehandDrawDesigner
public sealed class AnnFreehandDrawDesigner : AnnDrawDesigner 
function Leadtools.Windows.Annotations.AnnFreehandDrawDesigner()
public ref class AnnFreehandDrawDesigner : public AnnDrawDesigner 
Example
Copy CodeCopy Code  
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
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;
}
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;
}
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnFreehandDrawDesigner Members
Leadtools.Windows.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.