Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 396
Craig W Avatar asked Jul 13 '12 03:07

Craig W


2 Answers

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

like image 56
Bachor Avatar answered Sep 30 '22 01:09

Bachor


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

Another option is SharpVectors.

like image 38
Luxspes Avatar answered Sep 30 '22 01:09

Luxspes