How can I display an SVG file in a 64-bit .NET application?

瘦欲@ 提交于 2019-12-21 09:35:15

问题


I have an SVG file that I need to display in a .NET Windows Forms application. This is a common problem. However, the WebBrowser control doesn't work because IE's engine doesn't render my SVG correctly (specifically it ignores the preserve whitespace directive). I looked into Chrome and Firefox controls and they worked great but they are 32-bit only and other references require the project to be compiled in 64-bit mode. Surely there must be some option for displaying correctly rendered SVG in 64-bit mode?


回答1:


I have tried SVG.NET with WinForms and it works excellent.




回答2:


Try the SVG Rendering Engine. It should work in 64-bit mode since it's fully managed code.

Another option is SharpVectors.



来源:https://stackoverflow.com/questions/11463862/how-can-i-display-an-svg-file-in-a-64-bit-net-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!