Code: Select all
m_wand = NewMagickWand();
d_wand = NewDrawingWand();
p_wand = NewPixelWand();
MagickReadImage(m_wand,"logo:");
// Partially transparent red text
PixelSetColor(p_wand,"#ff0000");
PixelSetOpacity(p_wand,0.8);
DrawSetFillColor(d_wand,p_wand);
DrawSetFont(d_wand,"Arial");
DrawSetFontSize(d_wand,24);
//This sets the caption text
MagickSetImageProperty(m_wand,"Caption","TESTING");
MagickPolaroidImage(m_wand,d_wand,20.)
Pete