You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arthur Teplitzki edited this page Sep 2, 2017
·
1 revision
Rendering SVG images in HTML Renderer
.NET framework doesn't support SVG format so HTML Renderer cannot natively load and render it.
To overcome this limitation a third-party library can be used to convert SVG formatted image to PNG formatted image that can be rendered by .NET.
It can be done using "ImageLoad" delegate/event that allows to intercept image loading and overwrite SVG image loading with converted PNG image.
Example
Generate image from HTML containing SVG image
Using SVG open-source project added using NuGet package.
Rendering this SVG image.