Login  Register

Coordinates from MouseEvent / Magnification problem

Posted by Thomas Radtke on Feb 28, 2006; 9:23am
URL: http://imagej.273.s1.nabble.com/Coordinates-from-MouseEvent-Magnification-problem-tp3703521.html

Hi,

I have implemented a MouseListener in a plugin and read the coordinates
where the user has clicked from the MouseEvent class. Now I have two
problems with magnified images.

(1) I don't know how to find out what the magnification is. I've tried
to read it from

new ImageCanvas(my_imageplus).getMagnification()

but that always returns 1

(2) The Listener stops listening outside the original area after
magnifying the image

I've spent several hours on this problem and went through the message
archive but to no avail. Can anyone here point me in the right direction?

Thanks,

Thomas