微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

用户界面 – 什么是编写基于SVG的桌面应用程序的选项?

说,我想编写一个大量使用SVG的桌面应用程序.我对渲染引擎,GUI工具包,库等的选择是什么?

我想要:

>在Linux / Unix / Mac(无处不在抗锯齿)下运行顺利
>开源
>与标准SVG(例如不透明度,嵌入式光栅图形)兼容
>使用现代动态语言(Python,Ruby,Lisp等)

>例如在这个意义上,基于C的解决方案将是完美的

那么,我的选择是什么?

我会建议 cairo,开罗是一个2D图形库,支持SVG文件输出.

The cairo API provides operations similar to the drawing operators of
PostScript and PDF. Operations in cairo including stroking and filling
cubic Bézier splines,transforming and compositing translucent images,
and antialiased text rendering. All drawing operations can be
transformed by any affine transformation (scale,rotation,shear,
etc.)

开罗被实现为以C编程语言编写的库,但绑定可用于多种不同的programming languages.其中包括Perl,Python,Ruby等等.

它还有几个工具包绑定.例如GTK+ 2.8+全面支持开罗.

还有OpenGL的实验后端.其中的优点包括轻松集成功能,如PS-,PDF-,SVG支持到您的OpenGL应用程序(可能需要额外的库).

Cairo is free software and is available to be redistributed and/or modified under the terms of either the GNU Lesser General Public License (LGPL) version 2.1 or the Mozilla Public License (MPL) version 1.1 at your option.

原文地址:https://www.jb51.cc/bash/383985.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐