Page 1 of 1

magick++ vc++ DrawableCompositeImage transparency black

Posted: 2007-12-24T06:15:18-07:00
by Ravinderjit S.Sidhu

Code: Select all

Image image( "500x500", "#fcf8c9" );  
image.density(Geometry(72,72));   
 
std::list<Magick::Drawable> drawList;
drawList.push_back(DrawableCompositeImage(5, 5, "image.bmp" ));
image.draw(drawList);

image.write( "Output.bmp" );
This code is inserting "image.bmp" in "Output.bmp"
Note : "image.bmp" is a text "Anthony" written with transparent background.
But when i see Output.bmp that transparency doesnot appear, black color appears instead.
Please suggest what i am missing....