使用C#转换SVG至PNGSVG、PNG

2023-09-02 01:24:44 作者:邻居是坏蛋!

我一直在试图转换使用C#的SVG图像,PNG,而无需编写过多code。谁能推荐一个库或例如code这样做?

I've been trying to convert SVG images to PNG using C#, without having to write too much code. Can anyone recommend a library or example code for doing this?

推荐答案

您可以拨打Inkscape中的命令行版本要做到这一点:

You can call the command-line version of inkscape to do this:

http://harriyott.com/2008/05/converting-svg-images-to-png-in-c.aspx

也有一个C#的SVG渲染引擎,主要目的是允许在codePLEX网页可能满足您的需求,如果这是你的问题上使用的SVG文件:

Also there is a C# SVG rendering engine, primarily designed to allow SVG files to be used on the web on codeplex that might suit your needs if that is your problem:

原项目 HTTP://www.$c$cplex.com/svg

叉与修复和更多的活动:(加二千零一十三分之七) https://github.com/vvvv/SVG

Fork with fixes and more activity: (added 7/2013) https://github.com/vvvv/SVG