Page 1 of 1

Magick++ equivalent of "convert -background none" option

Posted: 2008-09-11T14:01:50-07:00
by vtagle-qsi
Yet another SVG question :D 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:

Code: Select all

Magick::Color backgroundColor(0, 0, 0, QuantumRange); 
and calling backgroundColor() for the image with this color doesn't appear to have any effect. The full code looks like this:

Code: Select all

Magick::Image svgImage(filename);
Magick::Color backgroundColor(0, 0, 0, QuantumRange); 
svgImage.backgroundColor(backgroundColor); 
svgImage.magick("png");
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.