加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-16 01:24:04 所属栏目:安全 来源:网络整理
导读:说,我想编写一个大量使用SVG的桌面应用程序.我对渲染引擎,GUI工具包,库等的选择是什么? 我想要: 在Linux / Unix / Mac(无处不在抗锯齿)下运行顺利 开源 与标准SVG(例如不透明度,嵌入式光栅图形)兼容 使用现代动态语言(Python,Ruby,Lisp等) 例如在这个意义
说,我想编写一个大量使用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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读