Colorize issue

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You can tint a select area of your image with these options:
  • -region 100x100+100+100 -fill red -tint 50%
for example.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You can still do what you want by creating a clip mask where the floodfill area is opaque and the rest of the image is transparent. Once you have a clip mask you can invoke it with the -clip command line option followed by the -tint option. Only the non-transparent area of the clip mask is tinted.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You can find some ideas about clipping here: http://www.cit.gu.edu.au/~anthony/graphics/imagick6.
Post Reply