The new version is almost prepared.
It needs some additional testing and updates of the web site.
I was planning the release for this week, but I will not make it.
So you can expect the release in the next week.
This will really be a big update. Here is the list of new features:
- Added Geometry support (as in Ab2d.ReaderWmf):
new ReadGeometry method with support for advanced geometry optimization and use or resources (Burshes and Pens are defined in resources).
new ResourceDictionaryWriter class and sample SampleResourceDictionary aplication to simplify creating resources from the svg files
- Added SvgDrawing control to show svg file as geometries in xaml
- Added GetXaml method to get the xaml of the read objects (also used in ViewerSvg; it is much more accurate as System.Windows.Markup.XamlWriter.Save)
- Added GetObjectName method - gets the name of the object. If object does not have a name defined returns null.
- Optimized the output xaml for Path element - now the properties with default values are no longer displayed. This in most cases removes the following properties: StrokeStartLineCap, StrokeEndLineCap, StrokeDashCap, StrokeLineJoin, StrokeMiterLimit, StrokeDashOffset
- Added support for gradientTransform on radialGradient
- Added support for known colors in xaml writer - known colors like Black, Yellow can now be written with its name instead of hex display (#FF000000). This feature is used by default but can be disabled with setting UseColorNames in XamlWriterSettings to false.
- Fixed propagating text styles to child tspan elements (for example if text has underline decoration set, underline will be used also on the child tspan elements - if not overwritten by different text-decoraton)
- The path is now automatically closed when the last segment ends on the same position as the start segment. Before if the paths were not manually closed, there could be some sharp edges on some parts of the path.
- Greatly improved performance on reading svg files.
- Improved setting the size of returned Viewbox.
If AutoSize is false the returned Viewbox has the size that is defined in the svg file. The previous version did not set the size correctly.
If the svg width and height are specified in cm, mm or inches the output size in xaml is set in cm.
Greetings,
Andrej