[英]How to create SVG file from Bitmap in Android Programmatically?
I need to convert jpeg & bitmap image to vector file (.SVG). 我需要将jpeg和位图图像转换为矢量文件(.SVG)。 Is there a library to do this?
有图书馆可以这样做吗? Or a source that I can not use it?
还是我无法使用的来源?
You could try Potrace 您可以尝试Potrace
from their description 从他们的描述
Potrace(TM) is a tool for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image.
Potrace(TM)是用于跟踪位图的工具,这意味着将位图转换为平滑的可缩放图像。 The input is a bitmap (PBM, PGM, PPM, or BMP format), and the default output is an encapsulated PostScript file (EPS).
输入是位图(PBM,PGM,PPM或BMP格式),默认输出是封装的PostScript文件(EPS)。 A typical use is to create EPS files from scanned data, such as company or university logos, handwritten notes, etc. The resulting image is not "jaggy" like a bitmap, but smooth.
通常的用途是从扫描的数据(例如公司或大学的徽标,手写的笔记等)创建EPS文件。生成的图像不会像位图那样“锯齿状”,而是平滑的。 It can then be rendered at any resolution.
然后可以以任何分辨率对其进行渲染。
Potrace can currently produce the following output formats: EPS, PostScript, PDF, SVG (scalable vector graphics), DXF, GeoJSON, PGM (for easy antialiasing of pixel-based images), Gimppath, and XFig.
Potrace当前可以产生以下输出格式:EPS,PostScript,PDF,SVG(可缩放矢量图形),DXF,GeoJSON,PGM(用于基于像素的图像的轻松抗锯齿),Gimppath和XFig。 Additional backends might be added in the future.
将来可能会添加其他后端。
This is their examples page 这是他们的示例页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.