SVG to Java Graphics2D

痴心易碎 提交于 2019-12-21 20:36:31

问题


Can anyone suggest some good way to generate Graphics2D object form SVG data?

I've seen Apache Batic lib, but it seams that they use some JSVGCanvas that gets the URI etc… And I want a Graphics2D stuff instead of JComponent.

Thanks for any suggestions!


回答1:


Try to look at SVG Salamander library. On this page there are some starting tips. It's a good thing if You want only to draw some svgs.




回答2:


You can also use the Flamingo SVG Transcoder, it generates pure Java2D code from a SVG file with no external dependencies.



来源:https://stackoverflow.com/questions/9939727/svg-to-java-graphics2d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!