Change Pixel color

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rohitkrishna
Posts: 43
Joined: 2011-10-01T14:34:04-07:00
Authentication code: 8675308

Change Pixel color

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Change Pixel color

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply