RMagick: Method to invert the colors of an image

A

Anukul Singhal

Hi,

I am using RMagick gem to work with images. In one of my methods, I want
to totally invert the colors of the image file. I searched the Rmagick
API but am not able to converge to a method which can do so (Probably,
there exists one, but I am not able to find it)

Can anyone please tell if there is any method in RMagick to accomplish
this task?

Thanks,
Anukul
 
H

Heesob Park

2008/10/23 Anukul Singhal said:
Hi,

I am using RMagick gem to work with images. In one of my methods, I want
to totally invert the colors of the image file. I searched the Rmagick
API but am not able to converge to a method which can do so (Probably,
there exists one, but I am not able to find it)

Can anyone please tell if there is any method in RMagick to accomplish
this task?
I guess you want to negate the colors.

Refer to http://studio.imagemagick.org/RMagick/doc/image2.html#negate

Regards,

Park Heesob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top