在Java在Android和桌面SVG处理 [英] SVG processing under Java on Android and desktop

查看:145
本文介绍了在Java在Android和桌面SVG处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个Java应用程序,将根据XML文件生成SVG图像。该应用程序还应该能够显示SVG文件。我的应用程序应该运行在Android平台和桌面电脑。我读到的Swing +蜡染但AFAIK它不会在Android上运行。什么是实现这一目标的最好的图书馆吗?

I am trying to write a Java application that will generate SVG image based on XML file. The application should also be able to show SVG file. My application should run on Android platform and desktop PCs. I read about Swing + Batik but afaik it will not work on Android. What is the best library to achieve this ?

推荐答案

文章在code项目涉及的主题。两种方法是presented:

This article in Code Project deals with the subject. Two approaches are presented:

  • Android的libsvg库。
  • 在反谷物几何引擎。

这两种解决方案对本土code库的依赖关系,所以你需要JNI。

Both solutions have dependencies on native code library, so you would need JNI.

还有 svg4mobile 的项目,该项目只使用Java。

There is also svg4mobile project, which only uses Java.

这篇关于在Java在Android和桌面SVG处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆