Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Convert a MemoryStream of a SVG string to a PNG image

$
0
0
It does support reading it but you need to tell Magick.NET the type of image you are reading. Here is an example of how you could do that:
byte[] bytes = Encoding.UTF8.GetBytes(svgStr);

MagickReadSettings settings = new MagickReadSettings()
{
  Format = MagickFormat.Svg
};

using (MagickImage image = new MagickImage(bytes,settings))
{
  image.Write(@"C:\Snakeware.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>