Pick up Referenced Image programatically
Posted: Thu Nov 19, 2015 7:31 pm
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:
but it adds new annotation on load (top left corner), and I don't need that one there
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);
}