Greetings,

If you run
run("Size...", "height=256 depth=1 constrain average interpolation=None");
from a macro the image will resize to what was previously resized using
the GUI Image/Adjust/Size... and not what was specified in the macro
command.  I assume this would be the parameters if the height is to be set
and the aspect ratio of the image being resize is maintained.

newImage("Untitled", "32-bit noise", 128, 128, 1);
Image/Adjust/Size...  Height->1024
newImage("Untitled", "32-bit noise", 128, 128, 1);
run("Size...", "height=256 depth=1 constrain average interpolation=None");

Bonus question:
Is there an macro equivalent of setting ImagePlus.changes to false? Or a
way of closing an image without the save/dont save popup?

Thanks,

Fred

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

Reply via email to