Thanks. This worked :)
Just want to point out (in case anyone has the same problem) that the order in which you do things is important. I tried this solution specifying the PNG format first and then reading the SVG file (which is wrong). The correct order is as follows:
Magick::Color c(0x0, 0x0 ...
Search found 2 matches
- 2013-05-28T07:42:09-07:00
- Forum: Users
- Topic: [C++ API] Convert svg to png with transparent background
- Replies: 2
- Views: 8025
- 2013-05-24T09:04:35-07:00
- Forum: Users
- Topic: [C++ API] Convert svg to png with transparent background
- Replies: 2
- Views: 8025
[C++ API] Convert svg to png with transparent background
Hi.
I'm new to ImageMagick, and I've been trying to use the C++ API to convert an SVG file to a PNG. The problem is that the resulting PNG file's background always defaults to white. I've been searching for solutions for this, but all I find is the solution using the comand line convert -background ...
I'm new to ImageMagick, and I've been trying to use the C++ API to convert an SVG file to a PNG. The problem is that the resulting PNG file's background always defaults to white. I've been searching for solutions for this, but all I find is the solution using the comand line convert -background ...