We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
查看C# 中的 SVG 框架和 SVG-GDI+ 桥项目。
从上面的网页...
Check out the SVG framework in C# and an SVG-GDI+ bridge project.
From the above web page...
我们在 Github 上公开了 C# .NET SVG 库的分支。
它比您在 Codeplex 上找到的有很大改进,请查看并根据需要分叉它:
https ://github.com/svg-net/SVG
编辑:
只是想让您知道,截至 2024 年 2 月:
虽然其他人似乎已经死了很多年,但这个仍然活跃。但我们绝对可以使用其他开发人员的一些帮助。
We have made a public fork of the C# .NET SVG library on Github.
It is much improved over the one you find on Codeplex, please have a look and fork it as you like:
https://github.com/svg-net/SVG
Edit:
Just to let you know, as of February 2024:
While others seem dead for years, this is still active. But we could definitely use some help from other developers.
我用过这个http://svg.codeplex.com/,我对它非常满意。仍然存在一些错误,因此您应该查看 http://svg.codeplex.com 中的补丁/SourceControl/PatchList.aspx。
当我发现可以解决的错误时,我会直接将其发布在那里。但那里的人需要一些时间来评估。最好查看补丁并亲自应用它们。
该图书馆足以满足大多数日常需求。对于真正奇特的东西,它需要改进思想......
I used this one http://svg.codeplex.com/ and I am quite satisfied with it. Still has some bugs so you should have a look at the patches in http://svg.codeplex.com/SourceControl/PatchList.aspx.
When I discover mistakes I can solve I post them directly there. But it takes some time to be evaluated by the guys there. It's a better idea to have a look at the patches and apply them yourself.
The library is reasonably sufficient for most usual needs. for really fancy stuff, it needs to be improved thought...
由于 SVG 基本上是一个 XML 文档 - 您可以自己实现“绘图”。请访问 W3C SVG 规范 查看规范。我曾经做过一次生成 SVG 签名图像,只花了几个小时和一个 Firefox 来测试生成的图像。
当然,如果您根据用户输入生成图像,或者您不介意花一些时间从另一种矢量图像格式进行转换,则这适用。
PS您可以创建自己的包装器来模仿System.Drawing.Graphics,例如DrawLine()以附加到内部缓冲区等。
As SVG is basically a XML document - you can implement "drawing" yourself. Check the specs at W3C SVG spec. I did it once to generate SVG signature images, all it took was a couple of hours and a firefox to test the generated image.
Of course this applies if you are generating image from user input or if you do not mind spending some time doing conversion from another vector image format.
P.S. you can create your own wrapper to mimic System.Drawing.Graphics, e.g. DrawLine() to append to the internal buffer and so on.