managed-commons / SvgNet

Fork of the SVG library for .NET that makes a GdiGraphics that "draws" on a SVG model
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

Does not support drawing paths #8

Closed i00 closed 6 years ago

i00 commented 8 years ago

Wish it supported this.

monoman commented 8 years ago

Would you care to elaborate about it? Maybe someone could become interested in contributing it. I really don't have the knowledge even to estimate the effort. :disappointed:

glopesdev commented 6 years ago

@monoman @allisterb Thanks for the work putting together this initial implementation. Unfortunately the current version does not handle straight-line segments correctly.

Instead of merging all the lines in the GraphicsPath inside a single SVG path element, it splits them into multiple line elements.

Because of this, corners are not handled correctly and lines seem to be broken. You can reproduce the problem easily simply by trying to draw a star or hexagon with the current implementation. Also combining a bezier followed by a straight-line segment does not work.

I will take a look at the current implementation, and if it is easy to understand, I might try to fix it. Anyway, for now I wanted to leave this report and confirm that this issue is still very much open until at least curves and straight-lines are handled correctly.

monoman commented 6 years ago

@glopesdev Thanks for the keep-alive, and, in advance, the hard work you will put forward to ameliorate the issue. 💯

monoman commented 6 years ago

Implemented and released on version 1.0.7