Page 1 of 1

Magick++ composite problem

Posted: 2012-10-09T03:42:31-07:00
by tom1410
Hello! I'm new to Magick++ and have one problem with composite(). Code:

Code: Select all

Image fullImg(full);
width = fullImg.size().width();
height = fullImg.size().height();

Image resultImg = Image(Geometry(width, height), Color(MaxRGB, MaxRGB, MaxRGB, 0));

resultImg.composite(workImg, x, y, InCompositeOp);
resultImg.composite(fullImg, 0, 0, OverCompositeOp);

I have this picture, as "fullImg" (it is transparent in the middle)

As "workImg":

And I would like to get "resultImg" like this:

But I get this (with white instead of transparent)

Maybe someone could help me out with this?