This project is read-only.

SVG Image support

Dec 19, 2013 at 5:52 PM
I tried loading some SVG images in the demo program but got an error when I put an SVG image inside an <img> tag, and it did not render when I put it on its own (inside a div).

It is probably the case that SVG images are not supported yet, but do you intend to add support?

PS. The error I got was: Failed to load Image from disk
The ArgumentException was: Parameter is not valid
Dec 20, 2013 at 3:18 PM
Unfortunately SVG format is not supported by .NET
But there is a workaround, see Rendering SVG images.
Marked as answer by pekatete on 12/20/2013 at 9:12 AM
Dec 20, 2013 at 5:12 PM
ArthurTep, thanks for that quick response, and the workaround using the svg renderer code is ok though it falls short of what I required it for, i.e no support for animations. Still, HTML Renderer (used with SVG Renderer or on its own) will be handy for some other projects I have.
Handy project this!
Nov 21, 2014 at 6:33 PM
The workaround suggested works when I have <img src="my.svg"/>. However, I was wondering if there was anyway to replace the <img> tag with a raw <svg> tag, and still have the rendering work. Is this possible somehow? Thanks!
Nov 27, 2014 at 5:09 PM
you will have to extract the svg tags data from the html, replace with img tag and then provide the rendered svg.