Resize window and image in a macro
Posted by lechristophe on Sep 12, 2007; 2:59pm
URL: http://imagej.273.s1.nabble.com/Resize-window-and-image-in-a-macro-tp3698385.html
dear all,
With macro language, I'm trying to get images to be displayed in a
window of specified size at a zoom that fills the window. Thanks to the
new setLocation(x,y,width,height) from 1.39a I can specify the location
and the size of the window, but it doesn't change the magnification of
the image displayed in the window. How can I specify the magnification
of the image ("zoom") in order to properly fill (with info line and
stack slider) the window ? In the macro language there is only a
getZoom() function but no setZoom(), and the macro recorder doesn't
record actions with the zoom tool.
A perfect new function would a setZoom("fill") with the "fill" option
that adjust the zoom to the size of the window... In the meantime, do
you know how to do it ?
Christophe Leterrier