We want to render SVG files. Some of those SVGs contain sections where the css property opacity is set to a value that is not 1 (e.g. 0.xx). Those sections do not get drawn as expected (see the below images for expected and actual outcomes).
If you change all opacities in the below SVG to 1, everything gets rendered correctly.
Code in use to rendor the svg into bitmap:
var svgAsString = ""; // See SVG below
var svgDoc = SvgDocument.FromSvg<SvgDocument>(svgAsString);
svgDoc.Width = 450;
svgDoc.Height = 650;
var bitmap = new Bitmap(svgDoc.Draw());
Expected result:
Actual result:
Used Versions
WebApplication with .NET 4.8
SVG version 3.1.1
We can not use the SVG version 3.2.3 because the application doesn't start (I will open an other issue for that)
Description
We want to render SVG files. Some of those SVGs contain sections where the css property
opacity
is set to a value that is not1
(e.g.0.xx
). Those sections do not get drawn as expected (see the below images for expected and actual outcomes). If you change all opacities in the below SVG to1
, everything gets rendered correctly. Code in use to rendor the svg into bitmap:Expected result: Actual result:
Used Versions
WebApplication with .NET 4.8 SVG version 3.1.1 We can not use the SVG version 3.2.3 because the application doesn't start (I will open an other issue for that)
The SVG