Skip to main content

Posts

Showing posts from February, 2015

How to convert SVG files to PNGs using C#

How to convert SVG files to PNGs using C# or... how to convert vector images to normal images using C# with a good DPI that is better than the default of 96 DPI. SVG files seem to be becoming more and more relevant in the Web and also other applications are using them. However, I was surprised to find that its NOT that easy to get a PNG out of a SVG file. There are some tools out there, but they require python or the use of browsers... both not really perfect for my needs. And my needs were that I needed a GUI that I can give my non-programmer colleages and that would just run on a windows PC. When I was done I therefore figured out some of you out there might appreciate some help/info if you have similar problems: So I began to look if there are some C# libraries around and I stumbled upon several and two looked especially promising SVG Rendering Engine     https://svg.codeplex.com and SharpVectors - SVG# Reloaded     https://sharpvectors.codeplex.com / both al