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

New Post: SVG to transparent PNG

$
0
0
You are getting a white background because that is the default background color. If you specify it before you read the image you can overrule the default. Below is an example:
using (var img = new MagickImage())
{
  img.BackgroundColor = MagickColor.Transparent;
  img.Read("J:/MyGit/ImagePlayground/ImagePlayground/bin/Debug/eagle.svg");
  img.Write("J:/MyGit/ImagePlayground/ImagePlayground/bin/Debug/eagle-magick.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles