Page 1 of 1

Pick up Referenced Image programatically

Posted: Thu Nov 19, 2015 7:31 pm
by angel_jakimovski
Is there a way to pickup ReferencedImage as annotation tool for the Annotation Viewer, so the user can always add the same referenced image as annotation, without to have to use it from the toolstrip? I am using this code:

Code: Select all

annotationView = GetAnnotationMarkImage("C:\\cancel-icon.png");
annotationView.Size = new SizeF(32, 32);
if (annotationView != null && tabImages.SelectedTab.AttachedControl is AnnotationViewer)
{
    ((AnnotationViewer)tabImages.SelectedTab.AttachedControl).AddAndBuildAnnotation(annotationView);
}
but it adds new annotation on load (top left corner), and I don't need that one there

Re: Pick up Referenced Image programatically

Posted: Fri Nov 20, 2015 12:39 pm
by Alex
Hello Angel,

Please see the following code sample:
viewtopic.php?f=24&t=2220

and let me know if you will have any question or problem.


Also please read about annotation's coordinate system and units of measure here:
http://www.vintasoft.com/docs/vsimaging ... _Data.html

Best regards, Alexander