Pick up Referenced Image programatically

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
angel_jakimovski
Posts: 1
Joined: Thu Nov 19, 2015 7:24 pm

Pick up Referenced Image programatically

Post by angel_jakimovski » 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:

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

Alex
Site Admin
Posts: 1462
Joined: Thu Jul 10, 2008 2:21 pm

Re: Pick up Referenced Image programatically

Post by Alex » Fri Nov 20, 2015 12:39 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest