Magick++ equivalent of "convert -background none" option
Posted: 2008-09-11T14:01:50-07:00
Yet another SVG question I'm trying to figure out what the Magick++ equivalent is for convert's "-background none" option. Creating a black color with transparent alpha via this line:
and calling backgroundColor() for the image with this color doesn't appear to have any effect. The full code looks like this:
Am I missing something here or doing steps in the wrong order? I tried figuring out what convert did but I couldn't see where it happened exactly.
Code: Select all
Magick::Color backgroundColor(0, 0, 0, QuantumRange);
Code: Select all
Magick::Image svgImage(filename);
Magick::Color backgroundColor(0, 0, 0, QuantumRange);
svgImage.backgroundColor(backgroundColor);
svgImage.magick("png");