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

New Post: Why not set background when convert SVG to PNG?

$
0
0
dlemstra wrote:
Can you please post some example code so I can see what you are trying to do? Are you using the build in SVG engine of ImageMagick or are you using something like InkScape as a delegate?
Code here:
MagickReadSettings settings = new MagickReadSettings();
using (MagickImage image = new MagickImage(@"D:\chart_ef0053f3-d40c-483d-b93d-0b7632fd27a6.svg", settings))
{
       image.BackgroundColor = new MagickColor(255,255,255);
       image.Write(@"D:\chart_ef0053f3-d40c-483d-b93d-0b7632fd27a6.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles