Page 1 of 1

Change Pixel color

Posted: 2011-11-21T22:17:02-07:00
by rohitkrishna
Hi everyone...

I want to change the color of pixel at given x,y position in the image. i want to change all 3 r,g,b values. Can anyone please explain how can i do this in C language with Imagemagick...

Thanks in advance.

Re: Change Pixel color

Posted: 2011-11-28T18:02:19-07:00
by anthony
The simplest way in C is to probably to use a MagickWand library, and then call 'Draw' to set the pixel.

However I don't have an example of this as I don't use MagickWand myself.