Hi,
I think I can only help with the bonus question.
The equivalent in macro language should be
setOption("Changes", false)
which applies to the active image.
Best,
Giovanni
-----Original Message-----
From: Fred Damen <[email protected]>
Sent: Saturday, 31 August 2024 06:36
To: [email protected]
Subject: ***SPAM*** [MSX] Size... and a question
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
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html