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.

Alignment of Images on the AnnotationViewer



Alignment of Images on the AnnotationViewer

Post by ltiong »

By default, when the AnnotationViewer is displaying an Image that is smaller in size, it centers the Image.

I have a situation where I want the Image to always begin at (0,0). Is it possible to set the alignment of Images displayed on the Annotation Viewer to always position at (0,0)?



For that matter, should users be allow to choose how they want the images to position on the AnnotationViewer? Ie Top/Left, Top/Center, Center/Left etc?

Thanks,
Lu


Re: Alignment of Images on the AnnotationViewer

Post by Alex »

Hi Lu,

Why do you need this feature? You cannot calculate right position of annotation in the AnnotationViewer? In version 3.0 the annotation object will have all mouse events with coordinates within the image. Is this suitable for you?

Best regards, Alexander


Re: Alignment of Images on the AnnotationViewer

Post by ltiong »

Hey Alex,

My situation w/ anchoring the image at (0,0) is because i do not want the Image to move/shift when the Container is resized.

In the first picture, Annotations added to the left of the Image (marked Annotaion(a) in figure1) will be shifted off the screen when the AnnotationViewer is resized smaller.

If we are able to "anchor" the image to the Top/Left, then we wouldn't have to worry about the Image or its Annotations shifting on resize. (see figure2).


Ideas?
Lu

Side note: I am able to calculate the position of mouse-clicks within a picture. The algorithm I've used is a version of
https://www.vintasoft.com/forums/viewtopic.php?f=16&t=141. Looking forward to the mouse-click event as well.


Re: Alignment of Images on the AnnotationViewer

Post by Alex »

Hi Lu,

You should not have such problems if you calculate annotaion position within the image correctly.
Please send an application that demonstrates the problem to support@vintasoft.com.

Best regards, Alexander


Page 1 from 1: 1