Getting a list of PathGeometries

Topics: SVG# and Parsing
Sep 2, 2012 at 7:17 AM

Hey, first off I want to say I really appreciate this project and all the work that has gone into it. I just found it and was rummaging through the code trying to devise some way that I could get a basically a list of paths. Like I want to have SVG# load a svg file with all of its fancy tags for arcs and bezier curves and stuff, and have it spit out just a list of coordinates, basically rasterizing the image. If it's not possible that's cool, I just thought it might be better to post here rather than work into the wee hours of the morning trying to fish this solution out from the code. 

Sep 6, 2012 at 11:36 AM


The SVG# is first of all a library. The converters (packaged in SharpVectors.Converters) are quick
convenience added for its common uses.
Basically, what it outputs is a DrawingGroup object. If you set the option for texts to be converted to
geometry, then everything with the exception of static image is an instance of a Drawing. You can
access the library for the WPF part in SharpVectors.Rendering.Wpf. 

You can easily navigate this DrawingGroup to access all the components extracted from the SVG.

Best regards,