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

Make use of DashPattern for Pen when reading/writing svg. #93

Closed fiddej closed 6 years ago

fiddej commented 6 years ago

It was previously possible to set a DashPattern, but it was never used by Pen when reading and writing svg. Updated to include the set dashpattern in svg's property stroke-dasharray.

E.g. for rectangle: <rect stroke-width = "2" stroke = "#FF0000" stroke-dasharray="4,3" fill="none" x = "25" y = "25" width = "50" height = "50" />

NGraphics.zip

praeclarum commented 6 years ago

While I want the feature, this PR changes too many other things.

In the future, make sure to create a branch with the feature you want. That way it won't mix in with all your other changes.

Thanks!