位图以编程方式SVG转换 [英] Bitmap to SVG Programmatically conversion
问题描述
我们如何转换位为SVG编程的机器人?
How can we convert bitmap to SVG programmatically in Android?
此库用于操作SVG文件。
This library is used to manipulate SVG file.
推荐答案
您可以使用栅格到矢量(矢量的)库,如 < A HREF =http://potrace.sourceforge.net/相对=nofollow> potrace 或的自动跟踪 ,然后创建一个Android的的本机库 出来。
You can use a raster-to-vector (vectorization) library such as potrace or autotrace, and create an Android native library out of it.
不幸的是,我不知道任何这样的矢量库中的Java entierely做,将做端口到Android更简单。
Unfortunately I do not know any such vectorization library entierely made in Java, which would have made the port to Android simpler.
您必须检查,如果我mentionned以上的库可容易适应以原生的Android code(例如,他们必须交叉编译到ARM架构,你可能有依赖关系问题太)。
You have to check if the libraries I mentionned above can be easily adapted to native android code (for example, they have to cross-compile to an ARM architecture; you may have dependencies issues too).
这篇关于位图以编程方式SVG转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!