最小的 Java SVG 引擎

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/476989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 12:33:27  来源:igfitidea点击:

Smallest Java SVG Engine

javasvgbatik

提问by jsight

What is the smallest Java SVG engine (least/smallest jars) that actually works? If your answer is Batik, what is the minimal dep. graph for getting this to work in a simple Java application?

实际工作的最小的 Java SVG 引擎(最少/最小的 jars)是什么?如果您的答案是蜡染,那么最小的深度是多少?让它在一个简单的 Java 应用程序中工作的图表?

I've looked at the dependency graph on the Batik site, but it looks like a typical Apache mess. Are there better alternatives?

我已经查看了 Batik 站点上的依赖关系图,但它看起来像一个典型的 Apache 混乱。有更好的选择吗?

采纳答案by Dave Ray

SVG Salamanderclaims to be much smaller thank Batik. It's hard not to believe them. Whether it's as full featured, I can't say, but a co-worker said good things about it.

由于蜡染,SVG 蝾螈声称要小得多。很难不相信他们。我不能说它是否功能齐全,但一位同事对它说得很好。

回答by David Gilbert

Another option is JFreeSVG, the jar file is 45k only (it provides an SVGGraphics2Dimplementation that is not only small but also fast - see this blog postfor details).

另一种选择是JFreeSVG,jar 文件只有 45k(它提供了一个SVGGraphics2D不仅小而且速度快的实现 -有关详细信息,请参阅此博客文章)。