使用C#转换SVG至PNG [英] Converting SVG to PNG using C#
问题描述
我一直在试图转换使用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:
<一个href="http://harriyott.com/2008/05/converting-svg-images-to-png-in-c.aspx">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
这篇关于使用C#转换SVG至PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!