Home : Annotations : Custom : Create a custom point base annotation
Q10213 - HOWTO: Create a custom point base annotation

DotAnnotate 5.0 makes is easy to create custom point base annotations.  The source code attached to this article contains a custom triangle annotation, its data class and renderer.

The general steps for creating a point base annotation are as follows:

  1. Create a data class that derives from PointBaseData.  The PointBaseData class contains a Points property that will contain all of the points of your annotation.
  2. Create a UI class that derives from PointBaseAnnotation.  The PointBaseAnnotation class handles most of the code required for the user to create and modify the annotation points.  It also handles switching between rectangle and point grips, however you must initially setup the point grip objects.
  3. Create a renderer that derives from AnnotationRenderingEngine.  Here you will override the RenderAnnotation method to draw your custom annotation.

 

Related Articles
No Related Articles Available.

Article Attachments
CustomPointAnnotationExample.zip

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved