跨平台绘图库 [英] Cross-platform drawing library

查看:462
本文介绍了跨平台绘图库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一个很好的跨平台2D绘图库,可以从C ++调用,并可以用来绘制一些相当简单的几何;

I've been looking for a good cross-platform 2D drawing library that can be called from C++ and can be used to draw some fairly simple geometry; lines, rectangles, circles, and text (horizontal and vertical) for some charts, and save the output to PNG.

我认为一个商业软件包比开源软件更好因为我们不想担心许可问题(除非有BSD样式许可证没有信用条款)。我看了看开罗图形似乎很有希望,但文本渲染看起来像是扯淡的盒子,升级文本后端带来了我们在黑暗的许可证土地。

I think a commercial package would be preferable over open source because we would prefer not to have to worry about licensing issues (unless there's something with a BSD style license with no credit clause). I've looked at Cairo Graphics which seemed promising, but the text rendering looks like crap out of the box, and upgrading the text back-end brings us into murky license land.

我需要它为Windows,Mac和Linux。优选地,相当轻量且易于集成的东西。我已经考虑过Qt,但是对于我们的应用来说太重了。

I need it for Windows, Mac and Linux. Preferably something fairly lightweight and simple to integrate. I've thought about Qt but that's way too heavy for our application.

任何想法都会非常棒。

推荐答案

尝试反谷物几何。从描述:


反谷物几何(AGG)是一个开源,免费图形库,用工业标准C ++编写。使用AGG的条款和条件在许可页面上描述。 AGG不依赖于任何图形API或技术。基本上,你可以认为AGG是一个渲染引擎,从一些矢量数据产生内存中的像素图像。但是,当然,AGG可以做得更多。 AGG的想法和理念是:

Anti-Grain Geometry (AGG) is an Open Source, free of charge graphic library, written in industrially standard C++. The terms and conditions of use AGG are described on The License page. AGG doesn't depend on any graphic API or technology. Basically, you can think of AGG as of a rendering engine that produces pixel images in memory from some vectorial data. But of course, AGG can do much more than that. The ideas and the philosophy of AGG are:




  • 抗锯齿。

  • 子像素的准确性。

  • 最高的质量。

  • 和兼容性。

  • 可靠性和稳定性(包括数值稳定性) )。

    • Anti-Aliasing.
    • Subpixel Accuracy.
    • The highest possible quality.
    • High performance.
    • Platform independence and compatibility.
    • Flexibility and extensibility.
    • Lightweight design.
    • Reliability and stability (including numerical stability).
    • 这篇关于跨平台绘图库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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