This class extends the AnnDrawDesigner class to provide functionality for drawing a freehand AnnPolylineObject on an annotation container.
public class AnnFreehandDrawDesigner : Leadtools.Windows.Annotations.AnnDrawDesignerPublic Class AnnFreehandDrawDesignerInherits Leadtools.Windows.Annotations.AnnDrawDesigner
public ref class AnnFreehandDrawDesigner : public Leadtools.Windows.Annotations.AnnDrawDesignerFor 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
Imports Leadtools.Windows.AnnotationsImports Leadtools.Windows.ControlsPublic Function AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ByVal viewer As ImageViewer, _ByVal container As AnnContainer) As AnnFreehandDrawDesigner' start a new freehand draw designerDim 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.RedpolylineObject.StrokeThickness = 2.0' set up the spacing of the freehand designerfreehandDrawDesigner.Spacing = 2' initialize the rest of the designerfreehandDrawDesigner.ObjectTemplate = polylineObjectReturn freehandDrawDesignerEnd 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 designerAnnFreehandDrawDesigner 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 designerfreehandDrawDesigner.Spacing = 2;// initialize the rest of the designerfreehandDrawDesigner.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 designerAnnFreehandDrawDesigner 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 designerfreehandDrawDesigner.Spacing = 2;// initialize the rest of the designerfreehandDrawDesigner.ObjectTemplate = polylineObject;return freehandDrawDesigner;}
Imports Leadtools.Windows.AnnotationsImports Leadtools.Windows.ControlsPublic Function AnnFreehandDrawDesigner_AnnFreehandDrawDesigner(ByVal viewer As ImageViewer,ByVal container As AnnContainer) As AnnFreehandDrawDesigner' start a new freehand draw designerDim 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.RedpolylineObject.StrokeThickness = 2.0' set up the spacing of the freehand designerfreehandDrawDesigner.Spacing = 2' initialize the rest of the designerfreehandDrawDesigner.ObjectTemplate = polylineObjectReturn freehandDrawDesignerEnd Function
|
Products |
Support |
Feedback: AnnFreehandDrawDesigner Class - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.