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.colorSpace(CMYKColorspace);
resultImg.composite(workImg, x, y, InCompositeOp);
resultImg.composite(fullImg, 0, 0, OverCompositeOp);
resultImg.write(path+"result.tif");
[img]
http://postimage.org/image/qj8nbc1l5/0233f65c/
[/img]
As "workImg":
[img]
http://postimage.org/image/q63kgwy5j/3e7805a4/
[/img]
And I would like to get "resultImg" like this:
[img]
http://postimage.org/image/ohwu6gl3h/08787fe9/
[/img]
But I get this (with white instead of transparent)
[img]
http://postimage.org/image/42g9zr9xl/7305f0d8/
[/img]
Maybe someone could help me out with this?