VintaSoft Annotation .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions
How can I fetch the distance of the ruler annotation to a text field in C# just like the image below.URL to your image is broken, please add new image.
annotationViewer1_AnnotationTransformingFinishednow but it will only appears the pixels value. What I want is the millimeters.
foreach (AnnotationView view in annotationViewer1.SelectedAnnotations)
{
// end the initialization of annotation view
EndInit(view.Data);
var size = view.Data.Size.Width;
var mmSize = size ; //What is the formula here?
textBox2.Text = mmSize.ToString();
}
Regards,now but it will only appears the pixels value. What I want is the millimeters.You can change the unit of measure using the RulerAnnotationData.UnitOfMeasure property: