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

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Pick up Referenced Image programatically



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:
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

Post by Alex »

Hello Angel,

Please see the following code sample:
https://www.vintasoft.com/forums/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:
https://www.vintasoft.com/docs/vsimaging ... _Data.html

Best regards, Alexander


Page 1 from 1: 1