Login  Register

Re: Magnification of the current image in java

Posted by Jan Eglinger on Jul 17, 2014; 4:35pm
URL: http://imagej.273.s1.nabble.com/Magnification-of-the-current-image-in-java-tp5008804p5008806.html

Hi Thorsten,

On 17.07.2014, 5:30 PM, Thorsten Wagner wrote:
> in ImageJ, pressing + results in a magnification of the current image.
>
> How can I get the current magnification in a java plugin?

You can use the ImageCanvas#getMagnification() method.

See the javadoc:
http://jenkins.imagej.net/job/ImageJ1-javadoc/javadoc/ij/gui/ImageCanvas.html#getMagnification%28%29

Hope that helps,
Jan

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html