I was wondering if anyone could explain what values I should set in the Pixel Wands I am passing to MagicColorizeImage. Right now, with the values I'm setting nothing appears to be happening.
Thanks.
MagickColorizeImage PixelWands
Re: MagickColorizeImage PixelWands
Here's a code snippet to tint an image red:
Code: Select all
magick_wand = NewMagickWand();
MagickReadImage(magick_wand, "logo:");
colorize = NewPixelWand();
opacity = NewPixelWand();
PixelSetColor(colorize,"red");
PixelSetColor(opacity,"#222");
MagickColorizeImage(magick_wand,colorize,opacity);
MagickWriteImage(magick_wand,"logo.png");
Re: MagickColorizeImage PixelWands
Sorry for bumping old thread, but why is opacity actually set by color and not by PixelSetAlpha/PixelSetOpacity?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: MagickColorizeImage PixelWands
I suppose you are referring to "MagickColorizeImage(magick_wand,colorize,opacity);" The "opacity" there is an argument to the function. It refers to the degree of the effect, not the opacity of the final pixels. See also http://www.imagemagick.org/script/comma ... p#colorize
snibgo's IM pages: im.snibgo.com