Magick++ image::extent() - undesired green color fill
Posted: 2009-08-18T05:48:02-07:00
Dear Everybody,
I am in a need to dynamically increase canvas size in Image Magick++. Probably the best image method is:
Magick++ image::extent()
However, after increasing the image size, and saving it say as .png, I still get green color of the canvas, although I manually set background to transparent. Is this a bug?
// Create output image
Image imgOutput("1x1!", "transparent");
// to increase canvas size by the height of
myGeo.height(myGeo.height() + vFolderTree[nPosX].nTrimmedHeight);
// increase canvas size
imgOutput.backgroundColor("transparent");
myGeo.aspect(true);
imgOutput.extent(myGeo);
After this operation the background of the image s green and I can not get rid of it.
Best regards..
I am in a need to dynamically increase canvas size in Image Magick++. Probably the best image method is:
Magick++ image::extent()
However, after increasing the image size, and saving it say as .png, I still get green color of the canvas, although I manually set background to transparent. Is this a bug?
// Create output image
Image imgOutput("1x1!", "transparent");
// to increase canvas size by the height of
myGeo.height(myGeo.height() + vFolderTree[nPosX].nTrimmedHeight);
// increase canvas size
imgOutput.backgroundColor("transparent");
myGeo.aspect(true);
imgOutput.extent(myGeo);
After this operation the background of the image s green and I can not get rid of it.
Best regards..