gdk_pixbuf2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +49 -40
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +50 -40
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +250 -168
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +25 -18
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +46 -83
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +29 -17
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +81 -77
- data/lib/1.8/gdk_pixbuf2.so +0 -0
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +40 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +200 -5
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +82 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +170 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +6 -1
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +5 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +42 -1
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +2 -2
- data/vendor/local/lib/gdk_pixbuf-2.0.lib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +4 -2
- data/vendor/local/manifest/{gdk-pixbuf-dev_2.22.1-1_win32.mft → gdk-pixbuf-dev_2.24.0-1_win32.mft} +12 -13
- data/vendor/local/manifest/{gdk-pixbuf_2.22.1-1_win32.mft → gdk-pixbuf_2.24.0-1_win32.mft} +2 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +181 -150
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +30 -9
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +35 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +13 -9
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +7 -7
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +251 -629
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +644 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +372 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +642 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +417 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +495 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +485 -184
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +168 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/{gdk-pixbuf-scaling.html → gdk-pixbuf-Scaling.html} +296 -190
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +617 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/{gdk-pixbuf-util.html → gdk-pixbuf-Utilities.html} +83 -93
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +63 -26
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +16 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +12 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +149 -128
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +184 -154
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +2 -1
- data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +2 -2
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +2 -2
- data/vendor/local/src/dieterv/packaging/gdk-pixbuf_2.24.0-1_win32.log +956 -0
- data/vendor/local/src/dieterv/packaging/gdk-pixbuf_2.24.0-1_win32.sh +97 -0
- metadata +26 -24
- data/ChangeLog +0 -482
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-animation.html +0 -654
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-creating.html +0 -406
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-file-loading.html +0 -402
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-file-saving.html +0 -685
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html +0 -460
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-inline.html +0 -516
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-refcounting.html +0 -132
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp +0 -175
- data/vendor/local/src/tml/packaging/gdk-pixbuf_2.22.1-1_win32.log +0 -1012
- data/vendor/local/src/tml/packaging/gdk-pixbuf_2.22.1-1_win32.sh +0 -256
@@ -0,0 +1,617 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>The GdkPixbuf Structure</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
7
|
+
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
|
+
<link rel="up" href="rn01.html" title="API Reference">
|
9
|
+
<link rel="prev" href="gdk-pixbuf-Versioning.html" title="Initialization and Versions">
|
10
|
+
<link rel="next" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html" title="Reference Counting and Memory Mangement">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.17.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
+
<tr valign="middle">
|
17
|
+
<td><a accesskey="p" href="gdk-pixbuf-Versioning.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
+
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
+
<th width="100%" align="center">GDK-PixBuf Reference Manual</th>
|
21
|
+
<td><a accesskey="n" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
+
</tr>
|
23
|
+
<tr><td colspan="5" class="shortcuts">
|
24
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.synopsis" class="shortcut">Top</a>
|
25
|
+
|
|
26
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.description" class="shortcut">Description</a>
|
27
|
+
|
|
28
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
+
|
|
30
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
31
|
+
|
|
32
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.properties" class="shortcut">Properties</a>
|
33
|
+
</td></tr>
|
34
|
+
</table>
|
35
|
+
<div class="refentry">
|
36
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure"></a><div class="titlepage"></div>
|
37
|
+
<div class="refnamediv"><table width="100%"><tr>
|
38
|
+
<td valign="top">
|
39
|
+
<h2><span class="refentrytitle"><a name="gdk-pixbuf-The-GdkPixbuf-Structure.top_of_page"></a>The GdkPixbuf Structure</span></h2>
|
40
|
+
<p>The GdkPixbuf Structure — Information that describes an image.</p>
|
41
|
+
</td>
|
42
|
+
<td valign="top" align="right"></td>
|
43
|
+
</tr></table></div>
|
44
|
+
<div class="refsynopsisdiv">
|
45
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.synopsis"></a><h2>Synopsis</h2>
|
46
|
+
<a name="GdkPixbuf"></a><pre class="synopsis">
|
47
|
+
#include <gdk-pixbuf/gdk-pixbuf.h>
|
48
|
+
|
49
|
+
enum <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufError" title="enum GdkPixbufError">GdkPixbufError</a>;
|
50
|
+
#define <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR">GDK_PIXBUF_ERROR</a>
|
51
|
+
enum <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace">GdkColorspace</a>;
|
52
|
+
enum <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufAlphaMode" title="enum GdkPixbufAlphaMode">GdkPixbufAlphaMode</a>;
|
53
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct" title="GdkPixbuf">GdkPixbuf</a>;
|
54
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-colorspace" title="gdk_pixbuf_get_colorspace ()">gdk_pixbuf_get_colorspace</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
55
|
+
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-n-channels" title="gdk_pixbuf_get_n_channels ()">gdk_pixbuf_get_n_channels</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
56
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-has-alpha" title="gdk_pixbuf_get_has_alpha ()">gdk_pixbuf_get_has_alpha</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
57
|
+
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-bits-per-sample" title="gdk_pixbuf_get_bits_per_sample ()">gdk_pixbuf_get_bits_per_sample</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
58
|
+
<span class="returnvalue">guchar</span> * <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels" title="gdk_pixbuf_get_pixels ()">gdk_pixbuf_get_pixels</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
59
|
+
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width" title="gdk_pixbuf_get_width ()">gdk_pixbuf_get_width</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
60
|
+
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height" title="gdk_pixbuf_get_height ()">gdk_pixbuf_get_height</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
61
|
+
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride" title="gdk_pixbuf_get_rowstride ()">gdk_pixbuf_get_rowstride</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
|
62
|
+
const <span class="returnvalue">gchar</span> * <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-option" title="gdk_pixbuf_get_option ()">gdk_pixbuf_get_option</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
63
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);
|
64
|
+
</pre>
|
65
|
+
</div>
|
66
|
+
<div class="refsect1">
|
67
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
68
|
+
<pre class="synopsis">
|
69
|
+
GObject
|
70
|
+
+----GdkPixbuf
|
71
|
+
</pre>
|
72
|
+
</div>
|
73
|
+
<div class="refsect1">
|
74
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
75
|
+
<p>
|
76
|
+
GdkPixbuf implements
|
77
|
+
GIcon.</p>
|
78
|
+
</div>
|
79
|
+
<div class="refsect1">
|
80
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.properties"></a><h2>Properties</h2>
|
81
|
+
<pre class="synopsis">
|
82
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--bits-per-sample" title='The "bits-per-sample" property'>bits-per-sample</a>" <span class="type">gint</span> : Read / Write / Construct Only
|
83
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--colorspace" title='The "colorspace" property'>colorspace</a>" <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> : Read / Write / Construct Only
|
84
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--has-alpha" title='The "has-alpha" property'>has-alpha</a>" <span class="type">gboolean</span> : Read / Write / Construct Only
|
85
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--height" title='The "height" property'>height</a>" <span class="type">gint</span> : Read / Write / Construct Only
|
86
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--n-channels" title='The "n-channels" property'>n-channels</a>" <span class="type">gint</span> : Read / Write / Construct Only
|
87
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixels" title='The "pixels" property'>pixels</a>" <span class="type">gpointer</span> : Read / Write / Construct Only
|
88
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--rowstride" title='The "rowstride" property'>rowstride</a>" <span class="type">gint</span> : Read / Write / Construct Only
|
89
|
+
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--width" title='The "width" property'>width</a>" <span class="type">gint</span> : Read / Write / Construct Only
|
90
|
+
</pre>
|
91
|
+
</div>
|
92
|
+
<div class="refsect1">
|
93
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.description"></a><h2>Description</h2>
|
94
|
+
<p>
|
95
|
+
The <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure contains
|
96
|
+
information that describes an image in memory.
|
97
|
+
</p>
|
98
|
+
<p>
|
99
|
+
</p>
|
100
|
+
<div class="section">
|
101
|
+
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
102
|
+
<a name="image-data"></a>Image Data</h2></div></div></div>
|
103
|
+
<p>
|
104
|
+
Image data in a pixbuf is stored in memory in uncompressed,
|
105
|
+
packed format. Rows in the image are stored top to bottom, and
|
106
|
+
in each row pixels are stored from left to right. There may be
|
107
|
+
padding at the end of a row. The "rowstride" value of a pixbuf,
|
108
|
+
as returned by <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride" title="gdk_pixbuf_get_rowstride ()"><code class="function">gdk_pixbuf_get_rowstride()</code></a>, indicates the number
|
109
|
+
of bytes between rows.
|
110
|
+
</p>
|
111
|
+
<p>
|
112
|
+
</p>
|
113
|
+
<div class="example">
|
114
|
+
<a name="put-pixel"></a><p class="title"><b>Example 1. put_pixel() example</b></p>
|
115
|
+
<div class="example-contents">
|
116
|
+
<p>
|
117
|
+
</p>
|
118
|
+
<p>
|
119
|
+
The following code illustrates a simple put_pixel()
|
120
|
+
function for RGB pixbufs with 8 bits per channel with an alpha
|
121
|
+
channel. It is not included in the gdk-pixbuf library for
|
122
|
+
performance reasons; rather than making several function calls
|
123
|
+
for each pixel, your own code can take shortcuts.
|
124
|
+
</p>
|
125
|
+
<p>
|
126
|
+
</p>
|
127
|
+
<pre class="programlisting">
|
128
|
+
static void
|
129
|
+
put_pixel (GdkPixbuf *pixbuf, int x, int y, guchar red, guchar green, guchar blue, guchar alpha)
|
130
|
+
{
|
131
|
+
int width, height, rowstride, n_channels;
|
132
|
+
guchar *pixels, *p;
|
133
|
+
|
134
|
+
n_channels = gdk_pixbuf_get_n_channels (pixbuf);
|
135
|
+
|
136
|
+
g_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB);
|
137
|
+
g_assert (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8);
|
138
|
+
g_assert (gdk_pixbuf_get_has_alpha (pixbuf));
|
139
|
+
g_assert (n_channels == 4);
|
140
|
+
|
141
|
+
width = gdk_pixbuf_get_width (pixbuf);
|
142
|
+
height = gdk_pixbuf_get_height (pixbuf);
|
143
|
+
|
144
|
+
g_assert (x >= 0 && x < width);
|
145
|
+
g_assert (y >= 0 && y < height);
|
146
|
+
|
147
|
+
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
|
148
|
+
pixels = gdk_pixbuf_get_pixels (pixbuf);
|
149
|
+
|
150
|
+
p = pixels + y * rowstride + x * n_channels;
|
151
|
+
p[0] = red;
|
152
|
+
p[1] = green;
|
153
|
+
p[2] = blue;
|
154
|
+
p[3] = alpha;
|
155
|
+
}
|
156
|
+
</pre>
|
157
|
+
<p>
|
158
|
+
</p>
|
159
|
+
<p>
|
160
|
+
This function will not work for pixbufs with images that are
|
161
|
+
other than 8 bits per sample or channel, but it will work for
|
162
|
+
most of the pixbufs that GTK+ uses.
|
163
|
+
</p>
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
<p><br class="example-break">
|
167
|
+
</p>
|
168
|
+
<p>
|
169
|
+
</p>
|
170
|
+
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
|
171
|
+
<h3 class="title">Note</h3>
|
172
|
+
If you are doing <code class="function">memcpy()</code> of raw pixbuf data, note that the
|
173
|
+
last row in the pixbuf may not be as wide as the full
|
174
|
+
rowstride, but rather just as wide as the pixel data needs to
|
175
|
+
be. That is, it is unsafe to do <code class="literal">memcpy (dest,
|
176
|
+
pixels, rowstride * height)</code> to copy a whole pixbuf.
|
177
|
+
Use <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-copy" title="gdk_pixbuf_copy ()"><code class="function">gdk_pixbuf_copy()</code></a> instead, or compute the width in bytes
|
178
|
+
of the last row as <code class="literal">width * ((n_channels *
|
179
|
+
bits_per_sample + 7) / 8)</code>.
|
180
|
+
</div>
|
181
|
+
<p>
|
182
|
+
</p>
|
183
|
+
</div>
|
184
|
+
<p>
|
185
|
+
</p>
|
186
|
+
</div>
|
187
|
+
<div class="refsect1">
|
188
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.details"></a><h2>Details</h2>
|
189
|
+
<div class="refsect2">
|
190
|
+
<a name="GdkPixbufError"></a><h3>enum GdkPixbufError</h3>
|
191
|
+
<pre class="programlisting">typedef enum {
|
192
|
+
/* image data hosed */
|
193
|
+
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
|
194
|
+
/* no mem to load image */
|
195
|
+
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
|
196
|
+
/* bad option passed to save routine */
|
197
|
+
GDK_PIXBUF_ERROR_BAD_OPTION,
|
198
|
+
/* unsupported image type (sort of an ENOSYS) */
|
199
|
+
GDK_PIXBUF_ERROR_UNKNOWN_TYPE,
|
200
|
+
/* unsupported operation (load, save) for image type */
|
201
|
+
GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION,
|
202
|
+
GDK_PIXBUF_ERROR_FAILED
|
203
|
+
} GdkPixbufError;
|
204
|
+
</pre>
|
205
|
+
<p>
|
206
|
+
An error code in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> domain. Many &gdk-pixbuf;
|
207
|
+
operations can cause errors in this domain, or in the <span class="type">G_FILE_ERROR</span>
|
208
|
+
domain.
|
209
|
+
</p>
|
210
|
+
<div class="variablelist"><table border="0">
|
211
|
+
<col align="left" valign="top">
|
212
|
+
<tbody>
|
213
|
+
<tr>
|
214
|
+
<td><p><a name="GDK-PIXBUF-ERROR-CORRUPT-IMAGE:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_CORRUPT_IMAGE</code></span></p></td>
|
215
|
+
<td>An image file was broken somehow.
|
216
|
+
</td>
|
217
|
+
</tr>
|
218
|
+
<tr>
|
219
|
+
<td><p><a name="GDK-PIXBUF-ERROR-INSUFFICIENT-MEMORY:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY</code></span></p></td>
|
220
|
+
<td>Not enough memory.
|
221
|
+
</td>
|
222
|
+
</tr>
|
223
|
+
<tr>
|
224
|
+
<td><p><a name="GDK-PIXBUF-ERROR-BAD-OPTION:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_BAD_OPTION</code></span></p></td>
|
225
|
+
<td>A bad option was passed to a pixbuf save module.
|
226
|
+
</td>
|
227
|
+
</tr>
|
228
|
+
<tr>
|
229
|
+
<td><p><a name="GDK-PIXBUF-ERROR-UNKNOWN-TYPE:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_UNKNOWN_TYPE</code></span></p></td>
|
230
|
+
<td>Unknown image type.
|
231
|
+
</td>
|
232
|
+
</tr>
|
233
|
+
<tr>
|
234
|
+
<td><p><a name="GDK-PIXBUF-ERROR-UNSUPPORTED-OPERATION:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION</code></span></p></td>
|
235
|
+
<td>Don't know how to perform the
|
236
|
+
given operation on the type of image at hand.
|
237
|
+
</td>
|
238
|
+
</tr>
|
239
|
+
<tr>
|
240
|
+
<td><p><a name="GDK-PIXBUF-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_FAILED</code></span></p></td>
|
241
|
+
<td>Generic failure code, something went wrong.
|
242
|
+
</td>
|
243
|
+
</tr>
|
244
|
+
</tbody>
|
245
|
+
</table></div>
|
246
|
+
</div>
|
247
|
+
<hr>
|
248
|
+
<div class="refsect2">
|
249
|
+
<a name="GDK-PIXBUF-ERROR:CAPS"></a><h3>GDK_PIXBUF_ERROR</h3>
|
250
|
+
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
|
251
|
+
</pre>
|
252
|
+
<p>
|
253
|
+
Error domain used for pixbuf operations. Indicates that the error code
|
254
|
+
will be in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufError" title="enum GdkPixbufError"><span class="type">GdkPixbufError</span></a> enumeration. See <span class="type">GError</span> for
|
255
|
+
information on error domains and error codes.
|
256
|
+
</p>
|
257
|
+
</div>
|
258
|
+
<hr>
|
259
|
+
<div class="refsect2">
|
260
|
+
<a name="GdkColorspace"></a><h3>enum GdkColorspace</h3>
|
261
|
+
<pre class="programlisting">typedef enum {
|
262
|
+
GDK_COLORSPACE_RGB
|
263
|
+
} GdkColorspace;
|
264
|
+
</pre>
|
265
|
+
<p>
|
266
|
+
This enumeration defines the color spaces that are supported by
|
267
|
+
the &gdk-pixbuf; library. Currently only RGB is supported.
|
268
|
+
</p>
|
269
|
+
<div class="variablelist"><table border="0">
|
270
|
+
<col align="left" valign="top">
|
271
|
+
<tbody><tr>
|
272
|
+
<td><p><a name="GDK-COLORSPACE-RGB:CAPS"></a><span class="term"><code class="literal">GDK_COLORSPACE_RGB</code></span></p></td>
|
273
|
+
<td>Indicates a red/green/blue additive color space.
|
274
|
+
</td>
|
275
|
+
</tr></tbody>
|
276
|
+
</table></div>
|
277
|
+
</div>
|
278
|
+
<hr>
|
279
|
+
<div class="refsect2">
|
280
|
+
<a name="GdkPixbufAlphaMode"></a><h3>enum GdkPixbufAlphaMode</h3>
|
281
|
+
<pre class="programlisting">typedef enum
|
282
|
+
{
|
283
|
+
GDK_PIXBUF_ALPHA_BILEVEL,
|
284
|
+
GDK_PIXBUF_ALPHA_FULL
|
285
|
+
} GdkPixbufAlphaMode;
|
286
|
+
</pre>
|
287
|
+
<p>
|
288
|
+
These values can be passed to
|
289
|
+
<code class="function">gdk_pixbuf_render_to_drawable_alpha()</code> to control how the alpha
|
290
|
+
channel of an image should be handled. This function can create a
|
291
|
+
bilevel clipping mask (black and white) and use it while painting
|
292
|
+
the image. In the future, when the X Window System gets an alpha
|
293
|
+
channel extension, it will be possible to do full alpha
|
294
|
+
compositing onto arbitrary drawables. For now both cases fall
|
295
|
+
back to a bilevel clipping mask.
|
296
|
+
</p>
|
297
|
+
<div class="variablelist"><table border="0">
|
298
|
+
<col align="left" valign="top">
|
299
|
+
<tbody>
|
300
|
+
<tr>
|
301
|
+
<td><p><a name="GDK-PIXBUF-ALPHA-BILEVEL:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ALPHA_BILEVEL</code></span></p></td>
|
302
|
+
<td>A bilevel clipping mask (black and white)
|
303
|
+
will be created and used to draw the image. Pixels below 0.5 opacity
|
304
|
+
will be considered fully transparent, and all others will be
|
305
|
+
considered fully opaque.
|
306
|
+
</td>
|
307
|
+
</tr>
|
308
|
+
<tr>
|
309
|
+
<td><p><a name="GDK-PIXBUF-ALPHA-FULL:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ALPHA_FULL</code></span></p></td>
|
310
|
+
<td>For now falls back to <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ALPHA-BILEVEL:CAPS"><span class="type">GDK_PIXBUF_ALPHA_BILEVEL</span></a>.
|
311
|
+
In the future it will do full alpha compositing.
|
312
|
+
</td>
|
313
|
+
</tr>
|
314
|
+
</tbody>
|
315
|
+
</table></div>
|
316
|
+
</div>
|
317
|
+
<hr>
|
318
|
+
<div class="refsect2">
|
319
|
+
<a name="GdkPixbuf-struct"></a><h3>GdkPixbuf</h3>
|
320
|
+
<pre class="programlisting">typedef struct _GdkPixbuf GdkPixbuf;</pre>
|
321
|
+
<p>
|
322
|
+
This is the main structure in the &gdk-pixbuf; library. It is
|
323
|
+
used to represent images. It contains information about the
|
324
|
+
image's pixel data, its color space, bits per sample, width and
|
325
|
+
height, and the rowstride (the number of bytes between the start of
|
326
|
+
one row and the start of the next).
|
327
|
+
</p>
|
328
|
+
</div>
|
329
|
+
<hr>
|
330
|
+
<div class="refsect2">
|
331
|
+
<a name="gdk-pixbuf-get-colorspace"></a><h3>gdk_pixbuf_get_colorspace ()</h3>
|
332
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a> gdk_pixbuf_get_colorspace (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
333
|
+
<p>
|
334
|
+
Queries the color space of a pixbuf.
|
335
|
+
</p>
|
336
|
+
<div class="variablelist"><table border="0">
|
337
|
+
<col align="left" valign="top">
|
338
|
+
<tbody>
|
339
|
+
<tr>
|
340
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
341
|
+
<td>A pixbuf.</td>
|
342
|
+
</tr>
|
343
|
+
<tr>
|
344
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
345
|
+
<td>Color space.</td>
|
346
|
+
</tr>
|
347
|
+
</tbody>
|
348
|
+
</table></div>
|
349
|
+
</div>
|
350
|
+
<hr>
|
351
|
+
<div class="refsect2">
|
352
|
+
<a name="gdk-pixbuf-get-n-channels"></a><h3>gdk_pixbuf_get_n_channels ()</h3>
|
353
|
+
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_n_channels (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
354
|
+
<p>
|
355
|
+
Queries the number of channels of a pixbuf.
|
356
|
+
</p>
|
357
|
+
<div class="variablelist"><table border="0">
|
358
|
+
<col align="left" valign="top">
|
359
|
+
<tbody>
|
360
|
+
<tr>
|
361
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
362
|
+
<td>A pixbuf.</td>
|
363
|
+
</tr>
|
364
|
+
<tr>
|
365
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
366
|
+
<td>Number of channels.</td>
|
367
|
+
</tr>
|
368
|
+
</tbody>
|
369
|
+
</table></div>
|
370
|
+
</div>
|
371
|
+
<hr>
|
372
|
+
<div class="refsect2">
|
373
|
+
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
|
374
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> gdk_pixbuf_get_has_alpha (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
375
|
+
<p>
|
376
|
+
Queries whether a pixbuf has an alpha channel (opacity information).
|
377
|
+
</p>
|
378
|
+
<div class="variablelist"><table border="0">
|
379
|
+
<col align="left" valign="top">
|
380
|
+
<tbody>
|
381
|
+
<tr>
|
382
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
383
|
+
<td>A pixbuf.</td>
|
384
|
+
</tr>
|
385
|
+
<tr>
|
386
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
387
|
+
<td>
|
388
|
+
<code class="literal">TRUE</code> if it has an alpha channel, <code class="literal">FALSE</code> otherwise.</td>
|
389
|
+
</tr>
|
390
|
+
</tbody>
|
391
|
+
</table></div>
|
392
|
+
</div>
|
393
|
+
<hr>
|
394
|
+
<div class="refsect2">
|
395
|
+
<a name="gdk-pixbuf-get-bits-per-sample"></a><h3>gdk_pixbuf_get_bits_per_sample ()</h3>
|
396
|
+
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_bits_per_sample (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
397
|
+
<p>
|
398
|
+
Queries the number of bits per color sample in a pixbuf.
|
399
|
+
</p>
|
400
|
+
<div class="variablelist"><table border="0">
|
401
|
+
<col align="left" valign="top">
|
402
|
+
<tbody>
|
403
|
+
<tr>
|
404
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
405
|
+
<td>A pixbuf.</td>
|
406
|
+
</tr>
|
407
|
+
<tr>
|
408
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
409
|
+
<td>Number of bits per color sample.</td>
|
410
|
+
</tr>
|
411
|
+
</tbody>
|
412
|
+
</table></div>
|
413
|
+
</div>
|
414
|
+
<hr>
|
415
|
+
<div class="refsect2">
|
416
|
+
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
|
417
|
+
<pre class="programlisting"><span class="returnvalue">guchar</span> * gdk_pixbuf_get_pixels (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
418
|
+
<p>
|
419
|
+
Queries a pointer to the pixel data of a pixbuf.
|
420
|
+
</p>
|
421
|
+
<div class="variablelist"><table border="0">
|
422
|
+
<col align="left" valign="top">
|
423
|
+
<tbody>
|
424
|
+
<tr>
|
425
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
426
|
+
<td>A pixbuf.</td>
|
427
|
+
</tr>
|
428
|
+
<tr>
|
429
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
430
|
+
<td>A pointer to the pixbuf's pixel data. Please see <a class="xref" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#image-data" title="Image Data">the section called “Image Data”</a>
|
431
|
+
for information about how the pixel data is stored in
|
432
|
+
memory.</td>
|
433
|
+
</tr>
|
434
|
+
</tbody>
|
435
|
+
</table></div>
|
436
|
+
</div>
|
437
|
+
<hr>
|
438
|
+
<div class="refsect2">
|
439
|
+
<a name="gdk-pixbuf-get-width"></a><h3>gdk_pixbuf_get_width ()</h3>
|
440
|
+
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_width (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
441
|
+
<p>
|
442
|
+
Queries the width of a pixbuf.
|
443
|
+
</p>
|
444
|
+
<div class="variablelist"><table border="0">
|
445
|
+
<col align="left" valign="top">
|
446
|
+
<tbody>
|
447
|
+
<tr>
|
448
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
449
|
+
<td>A pixbuf.</td>
|
450
|
+
</tr>
|
451
|
+
<tr>
|
452
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
453
|
+
<td>Width in pixels.</td>
|
454
|
+
</tr>
|
455
|
+
</tbody>
|
456
|
+
</table></div>
|
457
|
+
</div>
|
458
|
+
<hr>
|
459
|
+
<div class="refsect2">
|
460
|
+
<a name="gdk-pixbuf-get-height"></a><h3>gdk_pixbuf_get_height ()</h3>
|
461
|
+
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_height (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
462
|
+
<p>
|
463
|
+
Queries the height of a pixbuf.
|
464
|
+
</p>
|
465
|
+
<div class="variablelist"><table border="0">
|
466
|
+
<col align="left" valign="top">
|
467
|
+
<tbody>
|
468
|
+
<tr>
|
469
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
470
|
+
<td>A pixbuf.</td>
|
471
|
+
</tr>
|
472
|
+
<tr>
|
473
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
474
|
+
<td>Height in pixels.</td>
|
475
|
+
</tr>
|
476
|
+
</tbody>
|
477
|
+
</table></div>
|
478
|
+
</div>
|
479
|
+
<hr>
|
480
|
+
<div class="refsect2">
|
481
|
+
<a name="gdk-pixbuf-get-rowstride"></a><h3>gdk_pixbuf_get_rowstride ()</h3>
|
482
|
+
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_rowstride (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
483
|
+
<p>
|
484
|
+
Queries the rowstride of a pixbuf, which is the number of bytes between the start of a row
|
485
|
+
and the start of the next row.
|
486
|
+
</p>
|
487
|
+
<div class="variablelist"><table border="0">
|
488
|
+
<col align="left" valign="top">
|
489
|
+
<tbody>
|
490
|
+
<tr>
|
491
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
492
|
+
<td>A pixbuf.</td>
|
493
|
+
</tr>
|
494
|
+
<tr>
|
495
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
496
|
+
<td>Distance between row starts.</td>
|
497
|
+
</tr>
|
498
|
+
</tbody>
|
499
|
+
</table></div>
|
500
|
+
</div>
|
501
|
+
<hr>
|
502
|
+
<div class="refsect2">
|
503
|
+
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
|
504
|
+
<pre class="programlisting">const <span class="returnvalue">gchar</span> * gdk_pixbuf_get_option (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
505
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
|
506
|
+
<p>
|
507
|
+
Looks up <em class="parameter"><code>key</code></em> in the list of options that may have been attached to the
|
508
|
+
<em class="parameter"><code>pixbuf</code></em> when it was loaded, or that may have been attached by another
|
509
|
+
function using <a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-set-option" title="gdk_pixbuf_set_option ()"><code class="function">gdk_pixbuf_set_option()</code></a>.
|
510
|
+
</p>
|
511
|
+
<p>
|
512
|
+
For instance, the ANI loader provides "Title" and "Artist" options.
|
513
|
+
The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
|
514
|
+
options for cursor definitions. The PNG loader provides the tEXt ancillary
|
515
|
+
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
|
516
|
+
return an "orientation" option string that corresponds to the embedded
|
517
|
+
TIFF/Exif orientation tag (if present).
|
518
|
+
</p>
|
519
|
+
<div class="variablelist"><table border="0">
|
520
|
+
<col align="left" valign="top">
|
521
|
+
<tbody>
|
522
|
+
<tr>
|
523
|
+
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
524
|
+
<td>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
|
525
|
+
</td>
|
526
|
+
</tr>
|
527
|
+
<tr>
|
528
|
+
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
|
529
|
+
<td>a nul-terminated string.</td>
|
530
|
+
</tr>
|
531
|
+
<tr>
|
532
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
533
|
+
<td>the value associated with <em class="parameter"><code>key</code></em>. This is a nul-terminated
|
534
|
+
string that should not be freed or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em> was not found.</td>
|
535
|
+
</tr>
|
536
|
+
</tbody>
|
537
|
+
</table></div>
|
538
|
+
</div>
|
539
|
+
</div>
|
540
|
+
<div class="refsect1">
|
541
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.property-details"></a><h2>Property Details</h2>
|
542
|
+
<div class="refsect2">
|
543
|
+
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal">"bits-per-sample"</code> property</h3>
|
544
|
+
<pre class="programlisting"> "bits-per-sample" <span class="type">gint</span> : Read / Write / Construct Only</pre>
|
545
|
+
<p>
|
546
|
+
The number of bits per sample.
|
547
|
+
Currently only 8 bit per sample are supported.
|
548
|
+
</p>
|
549
|
+
<p>Allowed values: [1,16]</p>
|
550
|
+
<p>Default value: 8</p>
|
551
|
+
</div>
|
552
|
+
<hr>
|
553
|
+
<div class="refsect2">
|
554
|
+
<a name="GdkPixbuf--colorspace"></a><h3>The <code class="literal">"colorspace"</code> property</h3>
|
555
|
+
<pre class="programlisting"> "colorspace" <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> : Read / Write / Construct Only</pre>
|
556
|
+
<p>The colorspace in which the samples are interpreted.</p>
|
557
|
+
<p>Default value: GDK_COLORSPACE_RGB</p>
|
558
|
+
</div>
|
559
|
+
<hr>
|
560
|
+
<div class="refsect2">
|
561
|
+
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">"has-alpha"</code> property</h3>
|
562
|
+
<pre class="programlisting"> "has-alpha" <span class="type">gboolean</span> : Read / Write / Construct Only</pre>
|
563
|
+
<p>Whether the pixbuf has an alpha channel.</p>
|
564
|
+
<p>Default value: FALSE</p>
|
565
|
+
</div>
|
566
|
+
<hr>
|
567
|
+
<div class="refsect2">
|
568
|
+
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">"height"</code> property</h3>
|
569
|
+
<pre class="programlisting"> "height" <span class="type">gint</span> : Read / Write / Construct Only</pre>
|
570
|
+
<p>The number of rows of the pixbuf.</p>
|
571
|
+
<p>Allowed values: >= 1</p>
|
572
|
+
<p>Default value: 1</p>
|
573
|
+
</div>
|
574
|
+
<hr>
|
575
|
+
<div class="refsect2">
|
576
|
+
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">"n-channels"</code> property</h3>
|
577
|
+
<pre class="programlisting"> "n-channels" <span class="type">gint</span> : Read / Write / Construct Only</pre>
|
578
|
+
<p>
|
579
|
+
The number of samples per pixel.
|
580
|
+
Currently, only 3 or 4 samples per pixel are supported.
|
581
|
+
</p>
|
582
|
+
<p>Allowed values: >= 0</p>
|
583
|
+
<p>Default value: 3</p>
|
584
|
+
</div>
|
585
|
+
<hr>
|
586
|
+
<div class="refsect2">
|
587
|
+
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">"pixels"</code> property</h3>
|
588
|
+
<pre class="programlisting"> "pixels" <span class="type">gpointer</span> : Read / Write / Construct Only</pre>
|
589
|
+
<p>A pointer to the pixel data of the pixbuf.</p>
|
590
|
+
</div>
|
591
|
+
<hr>
|
592
|
+
<div class="refsect2">
|
593
|
+
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">"rowstride"</code> property</h3>
|
594
|
+
<pre class="programlisting"> "rowstride" <span class="type">gint</span> : Read / Write / Construct Only</pre>
|
595
|
+
<p>
|
596
|
+
The number of bytes between the start of a row and
|
597
|
+
the start of the next row. This number must (obviously)
|
598
|
+
be at least as large as the width of the pixbuf.
|
599
|
+
</p>
|
600
|
+
<p>Allowed values: >= 1</p>
|
601
|
+
<p>Default value: 1</p>
|
602
|
+
</div>
|
603
|
+
<hr>
|
604
|
+
<div class="refsect2">
|
605
|
+
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">"width"</code> property</h3>
|
606
|
+
<pre class="programlisting"> "width" <span class="type">gint</span> : Read / Write / Construct Only</pre>
|
607
|
+
<p>The number of columns of the pixbuf.</p>
|
608
|
+
<p>Allowed values: >= 1</p>
|
609
|
+
<p>Default value: 1</p>
|
610
|
+
</div>
|
611
|
+
</div>
|
612
|
+
</div>
|
613
|
+
<div class="footer">
|
614
|
+
<hr>
|
615
|
+
Generated by GTK-Doc V1.17.1</div>
|
616
|
+
</body>
|
617
|
+
</html>
|