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
programmatically create angle annotation
Moderator: Alex
Re: programmatically create angle annotation
i thought this had posted previously:
On a sepearate note, if I serialize and desrialize the object, the resulting annotation displays the arc angle and the angle value. Not sure why, but I guess something is triggered. i noticed that when debugging the non arc displaying annotation, the angle = 0; while the second annotation that dislpays the arc and value has the real angle value.
On a sepearate note, if I serialize and desrialize the object, the resulting annotation displays the arc angle and the angle value. Not sure why, but I guess something is triggered. i noticed that when debugging the non arc displaying annotation, the angle = 0; while the second annotation that dislpays the arc and value has the real angle value.
Re: programmatically create angle annotation
Hello,
Thank you for your message, we have fixed the problem in version 4.3.23.1 of VintaSoftImaging.NET SDK.
Best regards, Alexander
Thank you for your message, we have fixed the problem in version 4.3.23.1 of VintaSoftImaging.NET SDK.
Best regards, Alexander