Login  Register

Re: Using themagnifying glass without Toolbar

Posted by Michael Schmid on Mar 05, 2010; 4:57pm
URL: http://imagej.273.s1.nabble.com/Using-themagnifying-glass-without-Toolbar-tp3689096p3689103.html

Hi Cspr,

In a macro, I think there is no possibility to scroll the image, so  
you can't  zoom in at the mouse position.

In a plugin you can do it:
The plugin cald register as MouseListener of the ImageCanvas. On a  
mouse click, it cald call the zoomIn method of the ImageCanvas.
Have a look at the WindowManager (for determining the foreground  
window), ImagePlus, ImageWindow and ImageCanvas classes.

Michael
________________________________________________________________

On 5 Mar 2010, at 17:38, Cspr wrote:

> I have tried the routines already. The purpose of the question was  
> to know
> whether the button "magnifying glass" in ImageJ could be applied  
> through a
> macro call to an image in my code , or its functionality be applied  
> through
> some other means.
>
> "Zoom in" for instance would be adequate if you could then pan the  
> image
> around within the window but no macro call seems to be able to do  
> that.
>
> The question still stands though.