Howto:Serializing a Canvas to SVG: Difference between revisions

Jump to navigation Jump to search
Line 192: Line 192:


To actually come up with the correct image tags, we now need to obtain the values for the corresponding attributes, e.g.:
To actually come up with the correct image tags, we now need to obtain the values for the corresponding attributes, e.g.:
* x="120"  
* x="120" => /tf[1]/m[4]
* y="120"  
* y="120" => /tf[1]/m[5]
* width="80"  
* width="80" => size[1]
* height="80"  
* height="80" => size[0]
* xlink:href="Textures/Splash5.png"
* xlink:href="Textures/Splash5.png" => src


== Test Canvas ==
== Test Canvas ==

Navigation menu