Alignment of Images on the AnnotationViewer

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

Moderator: Alex

Post Reply
ltiong
Posts: 14
Joined: Fri Apr 24, 2009 1:45 am

Alignment of Images on the AnnotationViewer

Post by ltiong » Wed Jun 10, 2009 11:39 pm

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
Last edited by ltiong on Fri Jun 12, 2009 8:51 pm, edited 1 time in total.

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

Re: Alignment of Images on the AnnotationViewer

Post by Alex » Thu Jun 11, 2009 3:57 pm

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

ltiong
Posts: 14
Joined: Fri Apr 24, 2009 1:45 am

Re: Alignment of Images on the AnnotationViewer

Post by ltiong » Fri Jun 12, 2009 8:48 pm

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.

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

Re: Alignment of Images on the AnnotationViewer

Post by Alex » Mon Jun 15, 2009 3:43 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests