Page 1 of 1

Alignment of Images on the AnnotationViewer

Posted: Wed Jun 10, 2009 11:39 pm
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)?

Image

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

Posted: Thu Jun 11, 2009 3:57 pm
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

Posted: Fri Jun 12, 2009 8:48 pm
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).
Image

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
viewtopic.php?f=16&t=141. Looking forward to the mouse-click event as well.

Re: Alignment of Images on the AnnotationViewer

Posted: Mon Jun 15, 2009 3:43 pm
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