Pick up Referenced Image programatically

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

Moderator: Alex

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

Pick up Referenced Image programatically

Post 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)
but it adds new annotation on load (top left corner), and I don't need that one there

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

Re: Pick up Referenced Image programatically

Post by Alex »

Hello Angel,

Please see the following code sample:

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