
gtk
文章平均质量分 82
intruder83
这个作者很懒,什么都没留下…
展开
-
Cairo 图形指南(1) —— 基本绘图
Cairo 图形指南(1) —— 基本绘图分类: 嵌入式GTK笔记 2011-09-13 16:50 265人阅读 评论(0)收藏 举报这一部分讲述如何绘制一些简单的图元,包括直线、填充与笔画操作、虚线、线端(Cap)与线的交合等图形的绘制方法。直线段直线段是非常基础的矢量图形对象。画一条直线段,需要调用两个函数:cairo_move_to()转载 2012-03-29 17:31:08 · 648 阅读 · 0 评论 -
The Cairo graphics tutorial -------Cairo backends
The Cairo library supports various backends. In this section of the Cairo graphics tutorial, we will use Cairo to create a PNG image, PDF file, SVG file and we will draw on a GTK window.PNG im转载 2012-03-30 08:15:46 · 538 阅读 · 0 评论 -
The Cairo graphics tutorial -------Shapes and fills in Cairo
In this part of the Cairo tutorial, we will create some basic and more advanced shapes. We will fill them withsolid colors, patterns and gradients.Basic shapesThe Cairo API has several fun转载 2012-03-30 08:18:45 · 577 阅读 · 0 评论 -
The Cairo graphics tutorial -------Transparency
In this part of the Cairo C API tutorial, we will talk about transparency. We will provide some basic definitions andtwo interesting transparency effects.Transparency is the quality of being a转载 2012-03-30 08:19:55 · 456 阅读 · 0 评论 -
The Cairo graphics tutorial -------Compositing
In this part of the Cairo graphics programming tutorial, we will define compositing operations.Compositing is the combining of visual elements from separate sources into single images. They ar转载 2012-03-30 08:20:47 · 361 阅读 · 0 评论 -
The Cairo graphics tutorial -------Transformations
In this part of the Cairo graphics programming tutorial, we will talk about transformations.An affine transform is composed of zero or more linear transformations (rotation, scaling or shear)转载 2012-03-30 08:22:56 · 504 阅读 · 0 评论 -
The Cairo graphics tutorial -------Images in Cairo
In this part of the Cairo graphics tutorial, we will talk about the images. We will show how to display an image on the GTK window. We will also create some effects with images.Displaying an i转载 2012-03-30 08:24:49 · 744 阅读 · 0 评论 -
The Cairo graphics tutorial -------Custom GTK widget
In this part of the Cairo graphics tutorial, we will create a custom GTK widget, where we will use the Cairo library.CPU widgetIn the next example we will create a CPU widget. /* cpu.h *转载 2012-03-30 08:32:00 · 412 阅读 · 0 评论 -
GTK+ 教程和资源集合
本贴以http://www.gtkforums.com/about988.html为蓝本整理并翻译。欢迎来到GTK+ 教程和资源这个页面收集了关于GTK+编程的一些资料(包括文档、教程和实例),并非所有的内容都是讲述GTK+的,但是,在这里的资料都是与GTK+相关的。注意:所有这些资料/教程都是使用c语言。C Programming 2nd Edition如果你转载 2012-04-11 10:52:09 · 3392 阅读 · 0 评论 -
The Cairo graphics tutorial -------Cairo definitions
Cairo definitionsIn this part of the Cairo graphics tutorial, we will provide some useful definitions for the Cairo graphics library.This will help us better understand the Cairo drawing model.Con转载 2012-03-30 08:14:42 · 390 阅读 · 0 评论 -
The Cairo graphics tutorial -------Introduction
Welcome to the Cairo graphics tutorial. This tutorial will teach you basics and some advanced topics of the Cairo 2D vector drawing library. In most examples we will use the GTK+ programming library.T转载 2012-03-30 08:13:29 · 386 阅读 · 0 评论 -
The Cairo graphics tutorial -------Text in Cairo
In this part of the Cairo graphics tutorial, we will work with text.SoulmateIn the first example, we will display some lyrics on the GTK+ window.#include #include static gbooleanon_转载 2012-03-30 08:23:44 · 449 阅读 · 0 评论 -
Cairo 图形指南 (2) —— 文本
本篇讲述如何处理文本。灵魂伙伴第一个示例是在 GTK+ 窗口中显示《灵魂伙伴》的部分歌词。[html] view plaincopyprint?#include cairo.h> #include gtk/gtk.h> staticgboolean on_expose_event(GtkWidget *widget, GdkEv转载 2012-03-29 17:33:14 · 1269 阅读 · 0 评论 -
Cairo 图形指南 (3) —— 变换
这一篇讲述变换(Transformation) 仿射变换是由一些线性变换与平移构成的。线性变换可以写为单个矩阵的形式。旋转是让一个刚体绕一点运动的变换。缩放变换是让物体的形状扩大与减小,并且在各个方向上的缩放因子都相同。平移变换将每个点沿着指定的方向移动常量距离。错切对于给定轴线,沿垂直于它的方向对物体进行移动的变换,并且在轴线的一侧的移动距离大于另一侧。——上述内容来自维基百科全书平移转载 2012-03-29 17:34:55 · 1730 阅读 · 0 评论 -
Cairo 图形指南 (4) —— 裁剪与遮蔽
在这一篇中讲述裁剪(Clipping)与遮蔽(Masking)。裁剪在下面的示例中,对一幅图像进行裁剪。[html] view plaincopyprint?#include cairo.h> #include gtk/gtk.h> #include math.h> cairo_surface_t *image;转载 2012-03-29 17:36:32 · 1524 阅读 · 0 评论 -
Cairo 图形指南 (6) —— 透明
这一篇讲述有关透明的一些基本知识,并提供两个有趣的透明效果。透明是透过某种材质的可见度。理解透明最简单的方式就是想像一下玻璃或者水。从技术上讲,光线可以穿过玻璃,因此我们可以看到玻璃之后的物体。在计算机图形学中,可以使用alpha 混合方式来实现透明效果。Alpha 混合,是通过将图像与背景组合实现部分透明的视觉效果。混合过程中使用了一种叫做 alpha 通道的东西。Alpha 通道在图形转载 2012-03-29 17:48:24 · 524 阅读 · 0 评论 -
Cairo 图形指南 (5) —— 图像
在这一篇里,要讲述图像的处理。先是演示如何在 GTK+ 窗口中显示一幅图像,然后再制造一些特效。图像的显示在第一个例子里,显示了一幅图像。[html] view plaincopyprint?#includecairo.h> #includegtk/gtk.h> cairo_surface_t *image; sta转载 2012-03-29 17:37:58 · 743 阅读 · 0 评论 -
Cairo 图形指南 (7) —— 合成
合成 (Compositing) 可以将一些单独的源 (source) 所生成可视元素组合成到单幅图像中去,主要用于创建所有的可视元素作为同一场景的一部分这样一种假象。合成在电影工业中被广为使用,用于创建人群、不寻常 的世界等画面,因为这样的画面在现实中的制作代价非常昂贵甚至难以实现。Cairo 图形库提供了 14 种不同的合成操作。#include #include static转载 2012-03-29 17:51:44 · 489 阅读 · 0 评论 -
The Cairo graphics tutorial -------Basic drawing in Cairo
In this part of the Cairo graphics tutorial, we will draw some basic primitives. We will draw simple lines, use fill and stroke operations, we will talk about dashes, line caps and line joins.转载 2012-03-30 08:16:50 · 485 阅读 · 0 评论 -
The Cairo graphics tutorial -------Clipping and masking
In this part of the Cairo tutorial, we will talk about clipping and masking.ClippingClipping is restricting of drawing to a certain area. This is done for effeciency reasons and to cre转载 2012-03-30 08:21:48 · 649 阅读 · 0 评论 -
ibus输入法"没有输入窗口"的问题
我的主机原来用的是fcitx,前几天这个输入法出了问题,只要一打开就死机,一直没找到问题。没办法只能换输入法了,于是就换回系统自带的ibus,安装过程如下:sudo apt-get install ibussudo apt-get install ibus-pinyinsudo pat-get install ibus-table-wubi上面的三步做完之后,在右上角就出现了一个小原创 2012-07-13 09:46:53 · 4621 阅读 · 2 评论