Change Color Pixel on target image ??

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
lttq
Posts: 7
Joined: 2012-06-30T04:25:00-07:00
Authentication code: 13

Change Color Pixel on target image ??

Post by lttq »

I have an image.And I want to change color on a pixel(pos x,y) to a color I want.What should I do ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Change Color Pixel on target image ??

Post by fmw42 »

This topic should be moved to the user's forum, which is for such questions about how to use IM. The developer's forum is more about IM development or enhancements

Nevertheless,

see -draw

http://www.imagemagick.org/Usage/draw/#primitives

That is one way. The other is to create a single pixel image of the color desired and overlay it on your image using -geometry ... -compose over -composite

see

http://www.imagemagick.org/Usage/layers/#convert
http://www.imagemagick.org/Usage/compose/#compose
Post Reply