Magnification of the current image in java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Magnification of the current image in java

jumpfunky
Hi,

in ImageJ, pressing + results in a magnification of the current image.

How can I get the current magnification in a java plugin?

Cheers,
Thorsten

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Magnification of the current image in java

Jan Eglinger
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
Reply | Threaded
Open this post in threaded view
|

Re: Magnification of the current image in java

jumpfunky
That does the job!

Thank you very much.

Cheers,
Thorsten

Am Donnerstag, den 17.07.2014, 18:35 +0200 schrieb Jan Eglinger:

> 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