Login  Register

Re: Mouse point

Posted by Fco. Javier Merino Guardiola on May 10, 2008; 11:19pm
URL: http://imagej.273.s1.nabble.com/Problems-with-DICOM-in-1-41b-tp3696254p3696257.html

Hi,

Here you can find an example of a mouse listener (http://rsb.info.nih.gov/ij/plugins/download/Mouse_Listener.java 
), I think you could do that using a listener.

The method you should implement is the mouseMoved(), and use the  
IJ.ShowStatus(...) function to write the rescaled value.


El 10/05/2008, a las 0:53, Hao Jiang escribió:

> There is a problem here, usually after an image was opened, user move
> the mouse on that image, from the status bar will show the point value
> of cursor.
>
> Now because the image is very big, I don't want to open with actual
> size, so a "decimation" has been set, for example, an image of
> 1000X1000, set "decimation" as 10, then the image will be opened as
> 100X100.
>
> Now the problem is, after that when move the mouse, will only show
> actual cursor point, but the user want to  multiply this point with
> "decimation" to reflect original image size.
>
> How can I do this?
>
>
>
> *************************************************************************
> PRIVILEGE AND CONFIDENTIALITY NOTICE:
>
> The information in this email is intended for the named recipients  
> only.
> It may contain privileged and confidential information.  If you have
> received this communication in error, any use, copying or  
> dissemination
> of its contents is strictly prohibited.  Please erase all copies of  
> the
> message along with any included attachments and notify Intermap
> Technologies or the sender immediately by telephone at the number
> indicated on this page.
>
> *************************************************************************