Page 1 of 1

Colorize question

Posted: 2008-12-01T13:51:56-07:00
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?

Re: Colorize question

Posted: 2008-12-01T14:04:57-07:00
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);