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

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
vtagle-qsi
Posts: 12
Joined: 2008-09-05T16:30:03-07:00

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

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