Invert negative image macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Invert negative image macro

andyg2
Is there a way to invert a binary image if the top left pixel is black - as a macro?
Reply | Threaded
Open this post in threaded view
|

Re: Invert negative image macro

dscho
Hi Andy,

On Thu, 4 Nov 2010, Andy Gee wrote:

> Is there a way to invert a binary image if the top left pixel is black -
> as a macro?

Something like

        if (getPixel(0, 0) == 0)
                run("Invert");

should get you started.

Ciao,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Invert negative image macro

andyg2
Oh my, that was so easy! I like it a lot! Many thanks!