Search found 2 matches

by andyrd
2014-07-21T09:27:06-07:00
Forum: Users
Topic: svg in memory string to Magick::Image
Replies: 1
Views: 1242

Re: svg in memory string to Magick::Image

For posterity, I accomplished this by loading the string in to a Magick::Blob and then setting the magick parameter on the Magick::Image to "SVG", std::string svgString = ...; Magick::Blob svgBlob(svgString.c_str(), svgString.length()); Magick::Image svgImage; svgImage.magick("SVG"); svgImage.read ...
by andyrd
2014-07-18T13:10:50-07:00
Forum: Users
Topic: svg in memory string to Magick::Image
Replies: 1
Views: 1242

svg in memory string to Magick::Image

Using the C++ API, how would I go about getting an svg string that's in memory (e.g. std::string) in to a Magick::Image object rather than reading the svg from a file?