I am having problem to create a flatten image with transparent background when using either flattenImages or mosaicImages function.
Code: Select all
std::list<Magick::Image> images;
images.push_back("image1.png");
images.push_back("image2.png");
Magick::Image resultImage;
mosaicImages(&resultImage, images.begin(), images.end());
resultImage.write("test_result.png");
my problem is whenever I use mosaicImages(), all i get is the flatten image with white background. I also tried use
Code: Select all
resultImage.backgroundColor(Magick::Color(0,0,0,0));
mosaicImages(&resultImage, images.begin(), images.end());
Is there any way i can set the background color?
Thanks advance for help