Login  Register

Re: Get the 'changes' flag of an image in a macro

Posted by Wayne Rasband on Apr 19, 2009; 1:26am
URL: http://imagej.273.s1.nabble.com/Get-the-changes-flag-of-an-image-in-a-macro-tp3692880p3692881.html

On Apr 18, 2009, at 6:30 PM, Tiago Ferreira wrote:

> Sorry if this will sound silly:
>
> I am trying to detect in a macro if changes have been done to an  
> image.
>
> Using built-in macro functions I know I can use ' setOption
> ("Changes",boolean)'
> to SET the 'changes' status of an image, but I don't know how to  
> GET it...
>
> I guess I would need to read the value of  'changes' in class  
> ij.ImagePlus...
>
> Does anyone have an idea on how to obtain this in a macro?

The latest 1.42m daily build has a is("changes") macro function that  
can be used obtain the value of the 'changes' flag.

-wayne