maandag 10 september 2007

A Stroke of bad luck

Apparently there is a difference between how
SVG

stroke-dasharray="5,7"

and XAML

StrokeDashArray="5,7"

treat the offsets for a strokedasharray (neutral spelling). The example used is from Wikipedia (http://en.wikipedia.org/wiki/Image:Lobes_of_the_brain_NL.svg) with my own transformations.

3 opmerkingen:

Jeff Schiller zei

SVG Spec: http://www.w3.org/TR/SVG11/painting.html#StrokeDasharrayProperty
XAML Spec: http://msdn2.microsoft.com/en-us/library/bb188513.aspx

Looks like in XAML/WPF the numbers are in units of "stroke width" while in SVG the numbers are in the coordinate space...

Robert zei

I find your work in this area quite appealing. Do you have a project site (such as on code.google or sousrceforge) where you keep your SVG to XAML converter?
You also mentioned at one time you were working on an XAML to SVG converter, is that work available anywhere?
I've been meaning to really learn the SVG and XAML formats for a while and since I already know XSLT pitching into help with your To-Do items on the converters sounds like a fun way to pass some time :)

Anoniem zei

快下班囉~來問個安,跟您打聲招呼.................................................................