免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3885 | 回复: 8
打印 上一主题 下一主题

linux下的有比较好用的绘图工具包吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-09 15:00 |只看该作者 |倒序浏览
请问linux下有没有类似windows下GDI一样的绘图函数库?
只要能绘图就可以了,不需要窗口等其他的东西;

论坛徽章:
0
2 [报告]
发表于 2008-04-09 15:18 |只看该作者
SDL

论坛徽章:
0
3 [报告]
发表于 2008-04-09 15:19 |只看该作者
GDK 库(-lgdk),Xlib 库的封装(wrapper)。

I. API Reference

    General - Library initialization and miscellaneous functions
    Multi-head Support Overview - Overview of GdkDisplay and GdkScreen
    GdkDisplay - Controls the keyboard/mouse pointer grabs and a set of GdkScreens
    GdkDisplayManager - Maintains a list of all open GdkDisplays
    GdkScreen - Object representing a physical screen
    Points, Rectangles and Regions - Simple graphical data types
    Graphics Contexts - Objects to encapsulate drawing properties
    Drawing Primitives - Functions for drawing points, lines, arcs, and text
    Bitmaps and Pixmaps - Offscreen drawables
    GdkRGB - Renders RGB, grayscale, or indexed image data to a GdkDrawable
    Images - A client-side area for bit-mapped graphics
    Pixbufs - Functions for rendering pixbufs on drawables
    Colormaps and Colors - Manipulation of colors and colormaps
    Visuals - Low-level display hardware information
    Fonts - Loading and manipulating fonts
    Cursors - Standard and pixmap cursors
    Windows - Onscreen display areas in the target window system
    Events - Functions for handling events from the window system
    Event Structures - Data structures specific to each type of event
    Key Values - Functions for manipulating keyboard codes
    Selections - Functions for transfering data via the X selection mechanism
    Drag and Drop - Functions for controlling drag and drop handling
    Properties and Atoms - Functions to manipulate properties on windows
    Threads - Functions for using GDK in multi-threaded programs
    Input - Callbacks on file descriptors
    Input Devices - Functions for handling extended input devices
    Pango Interaction - Using Pango in GDK
    Cairo Interaction - Functions to support using Cairo
    X Window System Interaction - X backend-specific functions

[ 本帖最后由 westgarden 于 2008-4-9 15:23 编辑 ]

论坛徽章:
38
2017金鸡报晓
日期:2017-02-08 10:39:4215-16赛季CBA联赛之深圳
日期:2023-02-16 14:39:0220周年集字徽章-年
日期:2022-08-31 14:25:28黑曼巴
日期:2022-08-17 18:57:0919周年集字徽章-年
日期:2022-04-25 13:02:5920周年集字徽章-20	
日期:2022-03-29 11:10:4620周年集字徽章-年
日期:2022-03-14 22:35:1820周年集字徽章-周	
日期:2022-03-09 12:51:3220周年集字徽章-年
日期:2022-02-10 13:13:4420周年集字徽章-周	
日期:2022-02-03 12:09:4420周年集字徽章-20	
日期:2022-01-25 20:14:2720周年集字徽章-周	
日期:2022-01-13 15:12:33
4 [报告]
发表于 2008-04-09 15:48 |只看该作者
cairo就干这事.

论坛徽章:
0
5 [报告]
发表于 2008-04-09 16:29 |只看该作者
我再请教一下:
(1)gdk可以在控制台模式下工作吗?
(2)gdk是linux缺省安装的绘图工具包吗?
(3)gdk能否在kde和gnome环境下都能运行?

论坛徽章:
0
6 [报告]
发表于 2008-04-09 20:45 |只看该作者
opengl,和sdl多用于三维场景下;我其实只想要类似gdi这样的东西;能用画笔画个圆,画条线之类的;
请大侠多指教

论坛徽章:
0
7 [报告]
发表于 2008-04-10 09:49 |只看该作者
wo ding

论坛徽章:
0
8 [报告]
发表于 2008-04-10 12:18 |只看该作者
看来楼主对GDK库不甚了解。
GNOME对楼主而言不会陌生吧,它们的关系是这样的:

GDK
^
  |
GTK
^
  |
GNOME

清楚了吗?
对GDK有信心了吗?

论坛徽章:
0
9 [报告]
发表于 2008-04-10 18:17 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP