magick++ vc++ DrawableCompositeImage transparency black

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Ravinderjit S.Sidhu

magick++ vc++ DrawableCompositeImage transparency black

Post 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....
Post Reply