Main BLOGGER
Wednesday, March 25, 2009
a unified way to display svg in browsers
1. server side
a. using flamingo tool
java -cp flamingo-tst.jar:flamingo.jar:batik-all.jar:xml-apis-ext.jar:xml-apis.jar test.svg.SVGApplicaiton
to convert SVG to Java2D class file
b. The generated Java2D class file can in turn create the JPEG file to be displayed in browser
2. dojo client side
using svg2gfx.xsl (dojox.gfx.demos.data) to convert SVG to JSON file which can be rendered by dojox.gfx
--
Pop (Pu Liu)