Code: Select all
// Read the base image
m_wand = NewMagickWand();
MagickReadImage(m_wand,"logo:");
/* Read the signature image */
a_wand = NewMagickWand();
MagickReadImage(a_wand,"sig.png");
// Composite the signature over the base image
MagickCompositeImage(m_wand,a_wand,OverCompositeOp,0,0);
/* Write it out */
MagickWriteImage(m_wand,"logo_sig.png");