programmatically create angle annotation
Posted: Tue Jul 12, 2011 5:07 am
I tried to programmtically create an angle annotation. However, when the angle appears, the "angle arc" and the "angle value" are NOT displayed. Even when I alter the end point locations on the viewer itself, the "arc" and "value" are not displayed. is this by desgin, am i missing something, or is this a bug? How do i create an angle annotation through code?
my code snippet:
var angleAnn = new AngleAnnotation();
angleAnn.StartPoint = new PointF(0,0);
angleAnn.VertexOfAngle = new PointF(-38,373);
angleAnn.EndPoint = new PointF(153, 67);
angleAnn.FormatString = "0.0 in";
angleAnn.UnitOfMeasure = UnitOfMeasure.Inches;
angleAnn.Location = new PointF(614, 142);
_annotationViewer1.Annotations[0].Add(angleAnn);
i am using version 4.3.19.5 of VintaSoftImaging.NET SDK 4.3.
Robert
my code snippet:
var angleAnn = new AngleAnnotation();
angleAnn.StartPoint = new PointF(0,0);
angleAnn.VertexOfAngle = new PointF(-38,373);
angleAnn.EndPoint = new PointF(153, 67);
angleAnn.FormatString = "0.0 in";
angleAnn.UnitOfMeasure = UnitOfMeasure.Inches;
angleAnn.Location = new PointF(614, 142);
_annotationViewer1.Annotations[0].Add(angleAnn);
i am using version 4.3.19.5 of VintaSoftImaging.NET SDK 4.3.
Robert