Login  Register

Magnify an image proramatcally

Posted by Robert Lockwood on Dec 05, 2013; 7:21pm
URL: http://imagej.273.s1.nabble.com/Magnify-an-image-proramatcally-tp5005826.html

I have been able to create an ROI, extract the Cropped ImageProcessor. and
display the new cropped image.  I'm using Java 7 and Eclipse Kepler.

The relevant update code is below where an instance zoomImagePlus has been
created elsewhere and displayed using show().

                new ImageProcessor cursorImage = imp.getProcessor().crop();
                zoomImagePlus.setProcessor("Zoom",cursorImage);

I'd like have the image magnified by a factor of 4 but don't see how to do
it.  It appears that the AWT Canvas has a setMagnification method but I
don't see how to access it.

How may I do this?

Thanks

--
When I was 12 I thought I would live forever.
So far, so good.

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