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
Alignment of Images on the AnnotationViewer
Moderator: Alex
Alignment of Images on the AnnotationViewer
Last edited by ltiong on Fri Jun 12, 2009 8:51 pm, edited 1 time in total.
Re: Alignment of Images on the AnnotationViewer
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
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
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
viewtopic.php?f=16&t=141. Looking forward to the mouse-click event as well.
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
viewtopic.php?f=16&t=141. Looking forward to the mouse-click event as well.
Re: Alignment of Images on the AnnotationViewer
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
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