Colorize question

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
CHRISTOPHERHENRY

Colorize question

Post by CHRISTOPHERHENRY »

I am having troubles getting colorize to work properly. It appears as though it is only working for the first row of the image. The rest of the image is changed to a dark gray color. Here is my code:

Code: Select all

Image disImage;

disImage.read("test.jpg");
disImage.colorize(50, 50, 50, Color(146, 242, 255));
disImage.write("test_mod.jpg"):
What am I doing wrong?
CHRISTOPHERHENRY

Re: Colorize question

Post by CHRISTOPHERHENRY »

I solved my problem. I used composite instead:

Code: Select all

disImage.composite(Image::Image(Geometry(disImage.columns(),disImage.rows()),Color(146,242,255,50)),0,0,OverCompositeOp);
Post Reply