[magick-users] Magick++: Creating clipping mask

Elie Zedeck RANDRIAMIANDRIRAY rez at eliezedeck.com
Thu May 15 02:08:33 PDT 2008


Hi guys,

I want to create a Clipping mask from 2 images, one is the main
background image, and the other one is just the same background image
but with an overlaid image on it (through OverCompositeOp).

I want to create a clipping mask, so that I can get only the overlaid
image. It is referred to as  the Change_Mask in the Usage example
document.

The overlaid image has been created from a very complex method, and
though, I need just that part of the image without the rest, and with
the transparency.

A way of doing the Change_Mask in C++ Magick++ will be very welcome.
I've read the Usage example, but I can't find a way to do that in C++ as
of now.

Thanks.



More information about the Magick-users mailing list