praeclarum / NGraphics

NGraphics is a cross platform library for rendering vector graphics on .NET. It provides a unified API for both immediate and retained mode graphics using high quality native renderers.
MIT License
705 stars 133 forks source link

Bug: Opacity ignored with SvgReader #91

Open TomQv opened 6 years ago

TomQv commented 6 years ago

The attached file has a style="opacity:0.35;", but its not rendered transparent, just solid color. The bug is in SvgReader.cs in ApplyStyle(), but I couldn't figure it out with quickly checking.

find.svg.zip

praeclarum commented 6 years ago

Looks like Opacity is only supported for groups. This would be good to fix.