简体   繁体   English

SVG到Java Graphics2D

[英]SVG to Java Graphics2D

Can anyone suggest some good way to generate Graphics2D object form SVG data? 任何人都可以提出一些从SVG数据生成Graphics2D对象的好方法吗?

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. 我已经看过Apache Batic lib,但是它接触到它们使用了一些获取URI等的JSVGCanvas ......我想要一个Graphics2D的东西而不是JComponent。

Thanks for any suggestions! 谢谢你的任何建议!

Try to look at SVG Salamander library. 试着看看SVG Salamander图书馆。 On this page there are some starting tips. 这个页面上有一些开始提示。 It's a good thing if You want only to draw some svgs. 如果你只想绘制一些svgs,这是一件好事。

您还可以使用Flamingo SVG Transcoder ,它从SVG文件生成纯Java2D代码,没有外部依赖性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM