gdk_pixbuf2 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-pixdata.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 +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +2 -2
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +1 -3
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +1 -1
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +1 -1
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +30 -27
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +557 -416
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +10 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +9 -11
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +22 -24
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +10 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +16 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +14 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +11 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +165 -167
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +768 -578
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +546 -428
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +549 -474
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +321 -265
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +467 -349
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +887 -662
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +122 -91
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +656 -518
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +631 -484
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +247 -171
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +110 -89
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +119 -98
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +275 -230
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +784 -581
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +86 -55
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +153 -192
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +98 -97
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +247 -94
- 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/csb/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/km/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/tg/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 +1 -1
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -1
- metadata +4 -4
@@ -8,21 +8,17 @@
|
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-Versioning.html" title="Initialization and Versions">
|
10
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.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
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="
|
16
|
-
<td width="100%" align="left">
|
17
|
-
<a href="#" class="shortcut">Top</a>
|
18
|
-
|
19
|
-
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.
|
20
|
-
|
21
|
-
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.
|
22
|
-
|
|
23
|
-
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
24
|
-
|
|
25
|
-
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.properties" class="shortcut">Properties</a>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
|
20
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
|
21
|
+
<a href="#gdk-pixbuf-The-GdkPixbuf-Structure.properties" class="shortcut">Properties</a></span>
|
26
22
|
</td>
|
27
23
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
28
24
|
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
@@ -36,38 +32,193 @@
|
|
36
32
|
<h2><span class="refentrytitle"><a name="gdk-pixbuf-The-GdkPixbuf-Structure.top_of_page"></a>The GdkPixbuf Structure</span></h2>
|
37
33
|
<p>The GdkPixbuf Structure — Information that describes an image.</p>
|
38
34
|
</td>
|
39
|
-
<td valign="top" align="right"></td>
|
35
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
40
36
|
</tr></table></div>
|
41
|
-
<div class="
|
42
|
-
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.
|
43
|
-
<
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a>
|
52
|
-
|
53
|
-
<
|
54
|
-
<
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<
|
59
|
-
<span class="returnvalue">int</span>
|
60
|
-
|
61
|
-
<
|
62
|
-
|
63
|
-
|
64
|
-
</
|
37
|
+
<div class="refsect1">
|
38
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.functions"></a><h2>Functions</h2>
|
39
|
+
<div class="informaltable"><table width="100%" border="0">
|
40
|
+
<colgroup>
|
41
|
+
<col width="150px" class="functions_return">
|
42
|
+
<col class="functions_name">
|
43
|
+
</colgroup>
|
44
|
+
<tbody>
|
45
|
+
<tr>
|
46
|
+
<td class="function_type">
|
47
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a>
|
48
|
+
</td>
|
49
|
+
<td class="function_name">
|
50
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-colorspace" title="gdk_pixbuf_get_colorspace ()">gdk_pixbuf_get_colorspace</a> <span class="c_punctuation">()</span>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
<tr>
|
54
|
+
<td class="function_type">
|
55
|
+
<span class="returnvalue">int</span>
|
56
|
+
</td>
|
57
|
+
<td class="function_name">
|
58
|
+
<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> <span class="c_punctuation">()</span>
|
59
|
+
</td>
|
60
|
+
</tr>
|
61
|
+
<tr>
|
62
|
+
<td class="function_type">
|
63
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
64
|
+
</td>
|
65
|
+
<td class="function_name">
|
66
|
+
<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> <span class="c_punctuation">()</span>
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
<tr>
|
70
|
+
<td class="function_type">
|
71
|
+
<span class="returnvalue">int</span>
|
72
|
+
</td>
|
73
|
+
<td class="function_name">
|
74
|
+
<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> <span class="c_punctuation">()</span>
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
<tr>
|
78
|
+
<td class="function_type">
|
79
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
80
|
+
</td>
|
81
|
+
<td class="function_name">
|
82
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels" title="gdk_pixbuf_get_pixels ()">gdk_pixbuf_get_pixels</a> <span class="c_punctuation">()</span>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
<tr>
|
86
|
+
<td class="function_type">
|
87
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
88
|
+
</td>
|
89
|
+
<td class="function_name">
|
90
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels-with-length" title="gdk_pixbuf_get_pixels_with_length ()">gdk_pixbuf_get_pixels_with_length</a> <span class="c_punctuation">()</span>
|
91
|
+
</td>
|
92
|
+
</tr>
|
93
|
+
<tr>
|
94
|
+
<td class="function_type">
|
95
|
+
<span class="returnvalue">int</span>
|
96
|
+
</td>
|
97
|
+
<td class="function_name">
|
98
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width" title="gdk_pixbuf_get_width ()">gdk_pixbuf_get_width</a> <span class="c_punctuation">()</span>
|
99
|
+
</td>
|
100
|
+
</tr>
|
101
|
+
<tr>
|
102
|
+
<td class="function_type">
|
103
|
+
<span class="returnvalue">int</span>
|
104
|
+
</td>
|
105
|
+
<td class="function_name">
|
106
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height" title="gdk_pixbuf_get_height ()">gdk_pixbuf_get_height</a> <span class="c_punctuation">()</span>
|
107
|
+
</td>
|
108
|
+
</tr>
|
109
|
+
<tr>
|
110
|
+
<td class="function_type">
|
111
|
+
<span class="returnvalue">int</span>
|
112
|
+
</td>
|
113
|
+
<td class="function_name">
|
114
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride" title="gdk_pixbuf_get_rowstride ()">gdk_pixbuf_get_rowstride</a> <span class="c_punctuation">()</span>
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
<tr>
|
118
|
+
<td class="function_type">
|
119
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
120
|
+
</td>
|
121
|
+
<td class="function_name">
|
122
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-byte-length" title="gdk_pixbuf_get_byte_length ()">gdk_pixbuf_get_byte_length</a> <span class="c_punctuation">()</span>
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
<tr>
|
126
|
+
<td class="function_type">const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
127
|
+
</td>
|
128
|
+
<td class="function_name">
|
129
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-option" title="gdk_pixbuf_get_option ()">gdk_pixbuf_get_option</a> <span class="c_punctuation">()</span>
|
130
|
+
</td>
|
131
|
+
</tr>
|
132
|
+
</tbody>
|
133
|
+
</table></div>
|
134
|
+
</div>
|
135
|
+
<div class="refsect1">
|
136
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.properties"></a><h2>Properties</h2>
|
137
|
+
<div class="informaltable"><table border="0">
|
138
|
+
<colgroup>
|
139
|
+
<col width="150px" class="properties_type">
|
140
|
+
<col width="300px" class="properties_name">
|
141
|
+
<col width="200px" class="properties_flags">
|
142
|
+
</colgroup>
|
143
|
+
<tbody>
|
144
|
+
<tr>
|
145
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
146
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--bits-per-sample" title="The “bits-per-sample” property">bits-per-sample</a></td>
|
147
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
148
|
+
</tr>
|
149
|
+
<tr>
|
150
|
+
<td class="property_type"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a></td>
|
151
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--colorspace" title="The “colorspace” property">colorspace</a></td>
|
152
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
153
|
+
</tr>
|
154
|
+
<tr>
|
155
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
156
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--has-alpha" title="The “has-alpha” property">has-alpha</a></td>
|
157
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
158
|
+
</tr>
|
159
|
+
<tr>
|
160
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
161
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--height" title="The “height” property">height</a></td>
|
162
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
163
|
+
</tr>
|
164
|
+
<tr>
|
165
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
166
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--n-channels" title="The “n-channels” property">n-channels</a></td>
|
167
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
168
|
+
</tr>
|
169
|
+
<tr>
|
170
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
|
171
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixels" title="The “pixels” property">pixels</a></td>
|
172
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
173
|
+
</tr>
|
174
|
+
<tr>
|
175
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
176
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--rowstride" title="The “rowstride” property">rowstride</a></td>
|
177
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
178
|
+
</tr>
|
179
|
+
<tr>
|
180
|
+
<td class="property_type"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
181
|
+
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--width" title="The “width” property">width</a></td>
|
182
|
+
<td class="property_flags">Read / Write / Construct Only</td>
|
183
|
+
</tr>
|
184
|
+
</tbody>
|
185
|
+
</table></div>
|
186
|
+
</div>
|
187
|
+
<a name="GdkPixbuf"></a><div class="refsect1">
|
188
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.other"></a><h2>Types and Values</h2>
|
189
|
+
<div class="informaltable"><table width="100%" border="0">
|
190
|
+
<colgroup>
|
191
|
+
<col width="150px" class="name">
|
192
|
+
<col class="description">
|
193
|
+
</colgroup>
|
194
|
+
<tbody>
|
195
|
+
<tr>
|
196
|
+
<td class="datatype_keyword">enum</td>
|
197
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufError" title="enum GdkPixbufError">GdkPixbufError</a></td>
|
198
|
+
</tr>
|
199
|
+
<tr>
|
200
|
+
<td class="define_keyword">#define</td>
|
201
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR">GDK_PIXBUF_ERROR</a></td>
|
202
|
+
</tr>
|
203
|
+
<tr>
|
204
|
+
<td class="datatype_keyword">enum</td>
|
205
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace">GdkColorspace</a></td>
|
206
|
+
</tr>
|
207
|
+
<tr>
|
208
|
+
<td class="datatype_keyword">enum</td>
|
209
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufAlphaMode" title="enum GdkPixbufAlphaMode">GdkPixbufAlphaMode</a></td>
|
210
|
+
</tr>
|
211
|
+
<tr>
|
212
|
+
<td class="datatype_keyword"> </td>
|
213
|
+
<td class="function_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct" title="GdkPixbuf">GdkPixbuf</a></td>
|
214
|
+
</tr>
|
215
|
+
</tbody>
|
216
|
+
</table></div>
|
65
217
|
</div>
|
66
218
|
<div class="refsect1">
|
67
219
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
68
|
-
<pre class="
|
69
|
-
|
70
|
-
+----GdkPixbuf
|
220
|
+
<pre class="screen"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
221
|
+
<span class="lineart">╰──</span> GdkPixbuf
|
71
222
|
</pre>
|
72
223
|
</div>
|
73
224
|
<div class="refsect1">
|
@@ -77,634 +228,630 @@ GdkPixbuf implements
|
|
77
228
|
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GIcon.html">GIcon</a> and <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html">GLoadableIcon</a>.</p>
|
78
229
|
</div>
|
79
230
|
<div class="refsect1">
|
80
|
-
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.
|
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>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : 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>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only
|
85
|
-
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--height" title='The "height" property'>height</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : 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>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
|
87
|
-
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixels" title='The "pixels" property'>pixels</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write / Construct Only
|
88
|
-
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--rowstride" title='The "rowstride" property'>rowstride</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
|
89
|
-
"<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--width" title='The "width" property'>width</a>" <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
|
231
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.includes"></a><h2>Includes</h2>
|
232
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
90
233
|
</pre>
|
91
234
|
</div>
|
92
235
|
<div class="refsect1">
|
93
236
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.description"></a><h2>Description</h2>
|
94
|
-
<p>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
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>
|
237
|
+
<p>The <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure contains
|
238
|
+
information that describes an image in memory.</p>
|
239
|
+
<p><section id="image-data">
|
240
|
+
<title>Image Data</title>
|
241
|
+
<para>
|
104
242
|
Image data in a pixbuf is stored in memory in uncompressed,
|
105
243
|
packed format. Rows in the image are stored top to bottom, and
|
106
244
|
in each row pixels are stored from left to right. There may be
|
107
245
|
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
|
109
|
-
of bytes between rows
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<
|
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()
|
246
|
+
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
|
247
|
+
of bytes between rows.</p>
|
248
|
+
<p><example id="put-pixel">
|
249
|
+
<title>put_pixel(<!-- -->) example</title>
|
250
|
+
<para></p>
|
251
|
+
<p>The following code illustrates a simple put_pixel(<!-- -->)
|
120
252
|
function for RGB pixbufs with 8 bits per channel with an alpha
|
121
253
|
channel. It is not included in the gdk-pixbuf library for
|
122
254
|
performance reasons; rather than making several function calls
|
123
|
-
for each pixel, your own code can take shortcuts
|
124
|
-
|
125
|
-
<p>
|
126
|
-
</p>
|
127
|
-
<pre class="programlisting">
|
255
|
+
for each pixel, your own code can take shortcuts.</p>
|
256
|
+
<p><programlisting>
|
128
257
|
static void
|
129
258
|
put_pixel (GdkPixbuf *pixbuf, int x, int y, guchar red, guchar green, guchar blue, guchar alpha)
|
130
259
|
{
|
131
260
|
int width, height, rowstride, n_channels;
|
132
|
-
guchar *pixels, *p
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
g_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB);
|
261
|
+
guchar *pixels, *p;</p>
|
262
|
+
<p> n_channels = gdk_pixbuf_get_n_channels (pixbuf);</p>
|
263
|
+
<p> g_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB);
|
137
264
|
g_assert (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8);
|
138
265
|
g_assert (gdk_pixbuf_get_has_alpha (pixbuf));
|
139
|
-
g_assert (n_channels == 4)
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
|
148
|
-
pixels = gdk_pixbuf_get_pixels (pixbuf);
|
149
|
-
|
150
|
-
p = pixels + y * rowstride + x * n_channels;
|
266
|
+
g_assert (n_channels == 4);</p>
|
267
|
+
<p> width = gdk_pixbuf_get_width (pixbuf);
|
268
|
+
height = gdk_pixbuf_get_height (pixbuf);</p>
|
269
|
+
<p> g_assert (x >= 0 && x < width);
|
270
|
+
g_assert (y >= 0 && y < height);</p>
|
271
|
+
<p> rowstride = gdk_pixbuf_get_rowstride (pixbuf);
|
272
|
+
pixels = gdk_pixbuf_get_pixels (pixbuf);</p>
|
273
|
+
<p> p = pixels + y * rowstride + x * n_channels;
|
151
274
|
p[0] = red;
|
152
275
|
p[1] = green;
|
153
276
|
p[2] = blue;
|
154
277
|
p[3] = alpha;
|
155
278
|
}
|
156
|
-
|
157
|
-
<p>
|
158
|
-
</p>
|
159
|
-
<p>
|
160
|
-
This function will not work for pixbufs with images that are
|
279
|
+
</programlisting></p>
|
280
|
+
<p>This function will not work for pixbufs with images that are
|
161
281
|
other than 8 bits per sample or channel, but it will work for
|
162
282
|
most of the pixbufs that GTK+ uses.
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
<p><br class="example-break">
|
167
|
-
</p>
|
168
|
-
<p>
|
169
|
-
</p>
|
170
|
-
<div class="note">
|
171
|
-
<h3 class="title">Note</h3>
|
283
|
+
</para>
|
284
|
+
</example></p>
|
285
|
+
<p><note>
|
172
286
|
If you are doing <code class="function">memcpy()</code> of raw pixbuf data, note that the
|
173
287
|
last row in the pixbuf may not be as wide as the full
|
174
288
|
rowstride, but rather just as wide as the pixel data needs to
|
175
|
-
be. That is, it is unsafe to do
|
176
|
-
pixels, rowstride * height)
|
177
|
-
Use <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-copy" title="gdk_pixbuf_copy
|
178
|
-
of the last row as
|
179
|
-
bits_per_sample + 7) / 8)
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
</div>
|
184
|
-
<p>
|
185
|
-
</p>
|
289
|
+
be. That is, it is unsafe to do <literal>memcpy (dest,
|
290
|
+
pixels, rowstride * height)</literal> to copy a whole pixbuf.
|
291
|
+
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
|
292
|
+
of the last row as <literal>width * ((n_channels *
|
293
|
+
bits_per_sample + 7) / 8)</literal>.
|
294
|
+
</note>
|
295
|
+
</para>
|
296
|
+
</section></p>
|
186
297
|
</div>
|
187
298
|
<div class="refsect1">
|
188
|
-
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.
|
299
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.functions_details"></a><h2>Functions</h2>
|
189
300
|
<div class="refsect2">
|
190
|
-
<a name="
|
191
|
-
<pre class="programlisting"
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
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 <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a>
|
208
|
-
domain.
|
209
|
-
</p>
|
210
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
301
|
+
<a name="gdk-pixbuf-get-colorspace"></a><h3>gdk_pixbuf_get_colorspace ()</h3>
|
302
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a>
|
303
|
+
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>
|
304
|
+
<p>Queries the color space of a pixbuf.</p>
|
305
|
+
<div class="refsect3">
|
306
|
+
<a name="id-1.2.4.11.2.5"></a><h4>Parameters</h4>
|
307
|
+
<div class="informaltable"><table width="100%" border="0">
|
211
308
|
<colgroup>
|
212
|
-
<col
|
213
|
-
<col>
|
309
|
+
<col width="150px" class="parameters_name">
|
310
|
+
<col class="parameters_description">
|
311
|
+
<col width="200px" class="parameters_annotations">
|
214
312
|
</colgroup>
|
215
|
-
<tbody>
|
216
|
-
<
|
217
|
-
<td
|
218
|
-
<td>
|
219
|
-
</
|
220
|
-
</tr>
|
221
|
-
<tr>
|
222
|
-
<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>
|
223
|
-
<td>Not enough memory.
|
224
|
-
</td>
|
225
|
-
</tr>
|
226
|
-
<tr>
|
227
|
-
<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>
|
228
|
-
<td>A bad option was passed to a pixbuf save module.
|
229
|
-
</td>
|
230
|
-
</tr>
|
231
|
-
<tr>
|
232
|
-
<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>
|
233
|
-
<td>Unknown image type.
|
234
|
-
</td>
|
235
|
-
</tr>
|
236
|
-
<tr>
|
237
|
-
<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>
|
238
|
-
<td>Don't know how to perform the
|
239
|
-
given operation on the type of image at hand.
|
240
|
-
</td>
|
241
|
-
</tr>
|
242
|
-
<tr>
|
243
|
-
<td><p><a name="GDK-PIXBUF-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ERROR_FAILED</code></span></p></td>
|
244
|
-
<td>Generic failure code, something went wrong.
|
245
|
-
</td>
|
246
|
-
</tr>
|
247
|
-
</tbody>
|
313
|
+
<tbody><tr>
|
314
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
315
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
316
|
+
<td class="parameter_annotations"> </td>
|
317
|
+
</tr></tbody>
|
248
318
|
</table></div>
|
249
319
|
</div>
|
250
|
-
<
|
251
|
-
<
|
252
|
-
<
|
253
|
-
<
|
254
|
-
</
|
255
|
-
<p>
|
256
|
-
Error domain used for pixbuf operations. Indicates that the error code
|
257
|
-
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 <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for
|
258
|
-
information on error domains and error codes.
|
259
|
-
</p>
|
320
|
+
<div class="refsect3">
|
321
|
+
<a name="id-1.2.4.11.2.6"></a><h4>Returns</h4>
|
322
|
+
<p> Color space.</p>
|
323
|
+
<p></p>
|
324
|
+
</div>
|
260
325
|
</div>
|
261
326
|
<hr>
|
262
327
|
<div class="refsect2">
|
263
|
-
<a name="
|
264
|
-
<pre class="programlisting">
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
<
|
269
|
-
|
270
|
-
the &gdk-pixbuf; library. Currently only RGB is supported.
|
271
|
-
</p>
|
272
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
328
|
+
<a name="gdk-pixbuf-get-n-channels"></a><h3>gdk_pixbuf_get_n_channels ()</h3>
|
329
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
330
|
+
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>
|
331
|
+
<p>Queries the number of channels of a pixbuf.</p>
|
332
|
+
<div class="refsect3">
|
333
|
+
<a name="id-1.2.4.11.3.5"></a><h4>Parameters</h4>
|
334
|
+
<div class="informaltable"><table width="100%" border="0">
|
273
335
|
<colgroup>
|
274
|
-
<col
|
275
|
-
<col>
|
336
|
+
<col width="150px" class="parameters_name">
|
337
|
+
<col class="parameters_description">
|
338
|
+
<col width="200px" class="parameters_annotations">
|
276
339
|
</colgroup>
|
277
340
|
<tbody><tr>
|
278
|
-
<td
|
279
|
-
<td>
|
280
|
-
</td>
|
341
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
342
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
343
|
+
<td class="parameter_annotations"> </td>
|
281
344
|
</tr></tbody>
|
282
345
|
</table></div>
|
283
346
|
</div>
|
347
|
+
<div class="refsect3">
|
348
|
+
<a name="id-1.2.4.11.3.6"></a><h4>Returns</h4>
|
349
|
+
<p> Number of channels.</p>
|
350
|
+
<p></p>
|
351
|
+
</div>
|
352
|
+
</div>
|
284
353
|
<hr>
|
285
354
|
<div class="refsect2">
|
286
|
-
<a name="
|
287
|
-
<pre class="programlisting"
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
</
|
292
|
-
<
|
293
|
-
These values can be passed to
|
294
|
-
<a href="http://library.gnome.org/devel/gdk3/gdk2-Pixbufs.html#gdk-pixbuf-render-to-drawable-alpha"><code class="function">gdk_pixbuf_render_to_drawable_alpha()</code></a> to control how the alpha
|
295
|
-
channel of an image should be handled. This function can create a
|
296
|
-
bilevel clipping mask (black and white) and use it while painting
|
297
|
-
the image. In the future, when the X Window System gets an alpha
|
298
|
-
channel extension, it will be possible to do full alpha
|
299
|
-
compositing onto arbitrary drawables. For now both cases fall
|
300
|
-
back to a bilevel clipping mask.
|
301
|
-
</p>
|
302
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
355
|
+
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
|
356
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
357
|
+
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>
|
358
|
+
<p>Queries whether a pixbuf has an alpha channel (opacity information).</p>
|
359
|
+
<div class="refsect3">
|
360
|
+
<a name="id-1.2.4.11.4.5"></a><h4>Parameters</h4>
|
361
|
+
<div class="informaltable"><table width="100%" border="0">
|
303
362
|
<colgroup>
|
304
|
-
<col
|
305
|
-
<col>
|
363
|
+
<col width="150px" class="parameters_name">
|
364
|
+
<col class="parameters_description">
|
365
|
+
<col width="200px" class="parameters_annotations">
|
306
366
|
</colgroup>
|
307
|
-
<tbody>
|
308
|
-
<
|
309
|
-
<td
|
310
|
-
<td>
|
311
|
-
|
312
|
-
will be considered fully transparent, and all others will be
|
313
|
-
considered fully opaque.
|
314
|
-
</td>
|
315
|
-
</tr>
|
316
|
-
<tr>
|
317
|
-
<td><p><a name="GDK-PIXBUF-ALPHA-FULL:CAPS"></a><span class="term"><code class="literal">GDK_PIXBUF_ALPHA_FULL</code></span></p></td>
|
318
|
-
<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>.
|
319
|
-
In the future it will do full alpha compositing.
|
320
|
-
</td>
|
321
|
-
</tr>
|
322
|
-
</tbody>
|
367
|
+
<tbody><tr>
|
368
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
369
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
370
|
+
<td class="parameter_annotations"> </td>
|
371
|
+
</tr></tbody>
|
323
372
|
</table></div>
|
324
373
|
</div>
|
374
|
+
<div class="refsect3">
|
375
|
+
<a name="id-1.2.4.11.4.6"></a><h4>Returns</h4>
|
376
|
+
<p> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it has an alpha channel, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
377
|
+
<p></p>
|
378
|
+
</div>
|
379
|
+
</div>
|
325
380
|
<hr>
|
326
381
|
<div class="refsect2">
|
327
|
-
<a name="
|
328
|
-
<pre class="programlisting"
|
329
|
-
<
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
382
|
+
<a name="gdk-pixbuf-get-bits-per-sample"></a><h3>gdk_pixbuf_get_bits_per_sample ()</h3>
|
383
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
384
|
+
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>
|
385
|
+
<p>Queries the number of bits per color sample in a pixbuf.</p>
|
386
|
+
<div class="refsect3">
|
387
|
+
<a name="id-1.2.4.11.5.5"></a><h4>Parameters</h4>
|
388
|
+
<div class="informaltable"><table width="100%" border="0">
|
389
|
+
<colgroup>
|
390
|
+
<col width="150px" class="parameters_name">
|
391
|
+
<col class="parameters_description">
|
392
|
+
<col width="200px" class="parameters_annotations">
|
393
|
+
</colgroup>
|
394
|
+
<tbody><tr>
|
395
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
396
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
397
|
+
<td class="parameter_annotations"> </td>
|
398
|
+
</tr></tbody>
|
399
|
+
</table></div>
|
400
|
+
</div>
|
401
|
+
<div class="refsect3">
|
402
|
+
<a name="id-1.2.4.11.5.6"></a><h4>Returns</h4>
|
403
|
+
<p> Number of bits per color sample.</p>
|
404
|
+
<p></p>
|
405
|
+
</div>
|
336
406
|
</div>
|
337
407
|
<hr>
|
338
408
|
<div class="refsect2">
|
339
|
-
<a name="gdk-pixbuf-get-
|
340
|
-
<pre class="programlisting"><a
|
341
|
-
<
|
342
|
-
Queries the
|
343
|
-
|
344
|
-
<
|
409
|
+
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
|
410
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
411
|
+
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>
|
412
|
+
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
413
|
+
<div class="refsect3">
|
414
|
+
<a name="id-1.2.4.11.6.5"></a><h4>Parameters</h4>
|
415
|
+
<div class="informaltable"><table width="100%" border="0">
|
345
416
|
<colgroup>
|
346
|
-
<col
|
347
|
-
<col>
|
417
|
+
<col width="150px" class="parameters_name">
|
418
|
+
<col class="parameters_description">
|
419
|
+
<col width="200px" class="parameters_annotations">
|
348
420
|
</colgroup>
|
349
|
-
<tbody>
|
350
|
-
<
|
351
|
-
<td
|
352
|
-
<td>
|
353
|
-
</tr>
|
354
|
-
<tr>
|
355
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
356
|
-
<td>Color space.</td>
|
357
|
-
</tr>
|
358
|
-
</tbody>
|
421
|
+
<tbody><tr>
|
422
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
423
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
424
|
+
<td class="parameter_annotations"> </td>
|
425
|
+
</tr></tbody>
|
359
426
|
</table></div>
|
360
427
|
</div>
|
428
|
+
<div class="refsect3">
|
429
|
+
<a name="id-1.2.4.11.6.6"></a><h4>Returns</h4>
|
430
|
+
<p> A pointer to the pixbuf's pixel data.
|
431
|
+
Please see the section on <a class="ulink" href="image-data" target="_top">image data</a> for information
|
432
|
+
about how the pixel data is stored in memory. </p>
|
433
|
+
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>]</span></p>
|
434
|
+
</div>
|
435
|
+
</div>
|
361
436
|
<hr>
|
362
437
|
<div class="refsect2">
|
363
|
-
<a name="gdk-pixbuf-get-
|
364
|
-
<pre class="programlisting"><
|
365
|
-
<
|
366
|
-
|
367
|
-
|
368
|
-
<div class="
|
438
|
+
<a name="gdk-pixbuf-get-pixels-with-length"></a><h3>gdk_pixbuf_get_pixels_with_length ()</h3>
|
439
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
440
|
+
gdk_pixbuf_get_pixels_with_length (<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>,
|
441
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *length</code></em>);</pre>
|
442
|
+
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
443
|
+
<div class="refsect3">
|
444
|
+
<a name="id-1.2.4.11.7.5"></a><h4>Parameters</h4>
|
445
|
+
<div class="informaltable"><table width="100%" border="0">
|
369
446
|
<colgroup>
|
370
|
-
<col
|
371
|
-
<col>
|
447
|
+
<col width="150px" class="parameters_name">
|
448
|
+
<col class="parameters_description">
|
449
|
+
<col width="200px" class="parameters_annotations">
|
372
450
|
</colgroup>
|
373
451
|
<tbody>
|
374
452
|
<tr>
|
375
|
-
<td
|
376
|
-
<td>A pixbuf.</td>
|
453
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
454
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
455
|
+
<td class="parameter_annotations"> </td>
|
377
456
|
</tr>
|
378
457
|
<tr>
|
379
|
-
<td
|
380
|
-
<td>
|
458
|
+
<td class="parameter_name"><p>length</p></td>
|
459
|
+
<td class="parameter_description"><p> The length of the binary data. </p></td>
|
460
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
381
461
|
</tr>
|
382
462
|
</tbody>
|
383
463
|
</table></div>
|
384
464
|
</div>
|
465
|
+
<div class="refsect3">
|
466
|
+
<a name="id-1.2.4.11.7.6"></a><h4>Returns</h4>
|
467
|
+
<p> A pointer to the pixbuf's
|
468
|
+
pixel data. Please see the section on <a class="ulink" href="image-data" target="_top">image data</a>
|
469
|
+
for information about how the pixel data is stored in memory.</p>
|
470
|
+
<p>Rename to: gdk_pixbuf_get_pixels. </p>
|
471
|
+
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
|
472
|
+
</div>
|
473
|
+
<p class="since">Since 2.26</p>
|
474
|
+
</div>
|
385
475
|
<hr>
|
386
476
|
<div class="refsect2">
|
387
|
-
<a name="gdk-pixbuf-get-
|
388
|
-
<pre class="programlisting"><
|
389
|
-
<
|
390
|
-
Queries
|
391
|
-
|
392
|
-
<
|
477
|
+
<a name="gdk-pixbuf-get-width"></a><h3>gdk_pixbuf_get_width ()</h3>
|
478
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
479
|
+
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>
|
480
|
+
<p>Queries the width of a pixbuf.</p>
|
481
|
+
<div class="refsect3">
|
482
|
+
<a name="id-1.2.4.11.8.5"></a><h4>Parameters</h4>
|
483
|
+
<div class="informaltable"><table width="100%" border="0">
|
393
484
|
<colgroup>
|
394
|
-
<col
|
395
|
-
<col>
|
485
|
+
<col width="150px" class="parameters_name">
|
486
|
+
<col class="parameters_description">
|
487
|
+
<col width="200px" class="parameters_annotations">
|
396
488
|
</colgroup>
|
397
|
-
<tbody>
|
398
|
-
<
|
399
|
-
<td
|
400
|
-
<td>
|
401
|
-
</tr>
|
402
|
-
<tr>
|
403
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
404
|
-
<td>
|
405
|
-
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it has an alpha channel, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
|
406
|
-
</tr>
|
407
|
-
</tbody>
|
489
|
+
<tbody><tr>
|
490
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
491
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
492
|
+
<td class="parameter_annotations"> </td>
|
493
|
+
</tr></tbody>
|
408
494
|
</table></div>
|
409
495
|
</div>
|
496
|
+
<div class="refsect3">
|
497
|
+
<a name="id-1.2.4.11.8.6"></a><h4>Returns</h4>
|
498
|
+
<p> Width in pixels.</p>
|
499
|
+
<p></p>
|
500
|
+
</div>
|
501
|
+
</div>
|
410
502
|
<hr>
|
411
503
|
<div class="refsect2">
|
412
|
-
<a name="gdk-pixbuf-get-
|
413
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
414
|
-
<
|
415
|
-
Queries the
|
416
|
-
|
417
|
-
<
|
504
|
+
<a name="gdk-pixbuf-get-height"></a><h3>gdk_pixbuf_get_height ()</h3>
|
505
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
506
|
+
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>
|
507
|
+
<p>Queries the height of a pixbuf.</p>
|
508
|
+
<div class="refsect3">
|
509
|
+
<a name="id-1.2.4.11.9.5"></a><h4>Parameters</h4>
|
510
|
+
<div class="informaltable"><table width="100%" border="0">
|
418
511
|
<colgroup>
|
419
|
-
<col
|
420
|
-
<col>
|
512
|
+
<col width="150px" class="parameters_name">
|
513
|
+
<col class="parameters_description">
|
514
|
+
<col width="200px" class="parameters_annotations">
|
421
515
|
</colgroup>
|
422
|
-
<tbody>
|
423
|
-
<
|
424
|
-
<td
|
425
|
-
<td>
|
426
|
-
</tr>
|
427
|
-
<tr>
|
428
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
429
|
-
<td>Number of bits per color sample.</td>
|
430
|
-
</tr>
|
431
|
-
</tbody>
|
516
|
+
<tbody><tr>
|
517
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
518
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
519
|
+
<td class="parameter_annotations"> </td>
|
520
|
+
</tr></tbody>
|
432
521
|
</table></div>
|
433
522
|
</div>
|
523
|
+
<div class="refsect3">
|
524
|
+
<a name="id-1.2.4.11.9.6"></a><h4>Returns</h4>
|
525
|
+
<p> Height in pixels.</p>
|
526
|
+
<p></p>
|
527
|
+
</div>
|
528
|
+
</div>
|
434
529
|
<hr>
|
435
530
|
<div class="refsect2">
|
436
|
-
<a name="gdk-pixbuf-get-
|
437
|
-
<pre class="programlisting"><
|
438
|
-
<
|
439
|
-
Queries a
|
440
|
-
|
441
|
-
<div class="
|
531
|
+
<a name="gdk-pixbuf-get-rowstride"></a><h3>gdk_pixbuf_get_rowstride ()</h3>
|
532
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
533
|
+
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>
|
534
|
+
<p>Queries the rowstride of a pixbuf, which is the number of bytes between
|
535
|
+
the start of a row and the start of the next row.</p>
|
536
|
+
<div class="refsect3">
|
537
|
+
<a name="id-1.2.4.11.10.5"></a><h4>Parameters</h4>
|
538
|
+
<div class="informaltable"><table width="100%" border="0">
|
442
539
|
<colgroup>
|
443
|
-
<col
|
444
|
-
<col>
|
540
|
+
<col width="150px" class="parameters_name">
|
541
|
+
<col class="parameters_description">
|
542
|
+
<col width="200px" class="parameters_annotations">
|
445
543
|
</colgroup>
|
446
|
-
<tbody>
|
447
|
-
<
|
448
|
-
<td
|
449
|
-
<td>
|
450
|
-
</tr>
|
451
|
-
<tr>
|
452
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
453
|
-
<td>A pointer to the pixbuf's pixel data.
|
454
|
-
Please see <a class="xref" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#image-data" title="Image Data">the section called “Image Data”</a> for information about how
|
455
|
-
the pixel data is stored in memory. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>]</span>
|
456
|
-
</td>
|
457
|
-
</tr>
|
458
|
-
</tbody>
|
544
|
+
<tbody><tr>
|
545
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
546
|
+
<td class="parameter_description"><p>A pixbuf.</p></td>
|
547
|
+
<td class="parameter_annotations"> </td>
|
548
|
+
</tr></tbody>
|
459
549
|
</table></div>
|
460
550
|
</div>
|
551
|
+
<div class="refsect3">
|
552
|
+
<a name="id-1.2.4.11.10.6"></a><h4>Returns</h4>
|
553
|
+
<p> Distance between row starts.</p>
|
554
|
+
<p></p>
|
555
|
+
</div>
|
556
|
+
</div>
|
461
557
|
<hr>
|
462
558
|
<div class="refsect2">
|
463
|
-
<a name="gdk-pixbuf-get-
|
464
|
-
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#
|
465
|
-
|
466
|
-
<p>
|
467
|
-
|
468
|
-
</
|
469
|
-
<div class="
|
559
|
+
<a name="gdk-pixbuf-get-byte-length"></a><h3>gdk_pixbuf_get_byte_length ()</h3>
|
560
|
+
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
561
|
+
gdk_pixbuf_get_byte_length (<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>
|
562
|
+
<p>Returns the length of the pixel data, in bytes.</p>
|
563
|
+
<div class="refsect3">
|
564
|
+
<a name="id-1.2.4.11.11.5"></a><h4>Parameters</h4>
|
565
|
+
<div class="informaltable"><table width="100%" border="0">
|
470
566
|
<colgroup>
|
471
|
-
<col
|
472
|
-
<col>
|
567
|
+
<col width="150px" class="parameters_name">
|
568
|
+
<col class="parameters_description">
|
569
|
+
<col width="200px" class="parameters_annotations">
|
473
570
|
</colgroup>
|
474
|
-
<tbody>
|
475
|
-
<
|
476
|
-
<td
|
477
|
-
<td>
|
478
|
-
</tr>
|
479
|
-
<tr>
|
480
|
-
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
481
|
-
<td>The length of the binary data. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
482
|
-
</td>
|
483
|
-
</tr>
|
484
|
-
<tr>
|
485
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
486
|
-
<td>A pointer to the pixbuf's
|
487
|
-
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>
|
488
|
-
for information about how the pixel data is stored in
|
489
|
-
memory.
|
490
|
-
Rename to: gdk_pixbuf_get_pixels. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span>
|
491
|
-
</td>
|
492
|
-
</tr>
|
493
|
-
</tbody>
|
571
|
+
<tbody><tr>
|
572
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
573
|
+
<td class="parameter_description"><p>A pixbuf</p></td>
|
574
|
+
<td class="parameter_annotations"> </td>
|
575
|
+
</tr></tbody>
|
494
576
|
</table></div>
|
577
|
+
</div>
|
578
|
+
<div class="refsect3">
|
579
|
+
<a name="id-1.2.4.11.11.6"></a><h4>Returns</h4>
|
580
|
+
<p> The length of the pixel data.</p>
|
581
|
+
<p></p>
|
582
|
+
</div>
|
495
583
|
<p class="since">Since 2.26</p>
|
496
584
|
</div>
|
497
585
|
<hr>
|
498
586
|
<div class="refsect2">
|
499
|
-
<a name="gdk-pixbuf-get-
|
500
|
-
<pre class="programlisting"
|
501
|
-
<
|
502
|
-
|
503
|
-
|
504
|
-
|
587
|
+
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
|
588
|
+
<pre class="programlisting">const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
589
|
+
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>,
|
590
|
+
<em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
|
591
|
+
<p>Looks up <em class="parameter"><code>key</code></em>
|
592
|
+
in the list of options that may have been attached to the
|
593
|
+
<em class="parameter"><code>pixbuf</code></em>
|
594
|
+
when it was loaded, or that may have been attached by another
|
595
|
+
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>.</p>
|
596
|
+
<p>For instance, the ANI loader provides "Title" and "Artist" options.
|
597
|
+
The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
|
598
|
+
options for cursor definitions. The PNG loader provides the tEXt ancillary
|
599
|
+
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
|
600
|
+
return an "orientation" option string that corresponds to the embedded
|
601
|
+
TIFF/Exif orientation tag (if present).</p>
|
602
|
+
<div class="refsect3">
|
603
|
+
<a name="id-1.2.4.11.12.6"></a><h4>Parameters</h4>
|
604
|
+
<div class="informaltable"><table width="100%" border="0">
|
505
605
|
<colgroup>
|
506
|
-
<col
|
507
|
-
<col>
|
606
|
+
<col width="150px" class="parameters_name">
|
607
|
+
<col class="parameters_description">
|
608
|
+
<col width="200px" class="parameters_annotations">
|
508
609
|
</colgroup>
|
509
610
|
<tbody>
|
510
611
|
<tr>
|
511
|
-
<td
|
512
|
-
<td>
|
612
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
613
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a></p></td>
|
614
|
+
<td class="parameter_annotations"> </td>
|
513
615
|
</tr>
|
514
616
|
<tr>
|
515
|
-
<td
|
516
|
-
<td>
|
617
|
+
<td class="parameter_name"><p>key</p></td>
|
618
|
+
<td class="parameter_description"><p>a nul-terminated string.</p></td>
|
619
|
+
<td class="parameter_annotations"> </td>
|
517
620
|
</tr>
|
518
621
|
</tbody>
|
519
622
|
</table></div>
|
520
623
|
</div>
|
521
|
-
<
|
624
|
+
<div class="refsect3">
|
625
|
+
<a name="id-1.2.4.11.12.7"></a><h4>Returns</h4>
|
626
|
+
<p> the value associated with <em class="parameter"><code>key</code></em>
|
627
|
+
. This is a nul-terminated
|
628
|
+
string that should not be freed or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em>
|
629
|
+
was not found.</p>
|
630
|
+
<p></p>
|
631
|
+
</div>
|
632
|
+
</div>
|
633
|
+
</div>
|
634
|
+
<div class="refsect1">
|
635
|
+
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.other_details"></a><h2>Types and Values</h2>
|
522
636
|
<div class="refsect2">
|
523
|
-
<a name="
|
524
|
-
<
|
525
|
-
<
|
526
|
-
|
527
|
-
|
528
|
-
<
|
637
|
+
<a name="GdkPixbufError"></a><h3>enum GdkPixbufError</h3>
|
638
|
+
<p>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;
|
639
|
+
operations can cause errors in this domain, or in the <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a>
|
640
|
+
domain.</p>
|
641
|
+
<div class="refsect3">
|
642
|
+
<a name="id-1.2.4.12.2.4"></a><h4>Members</h4>
|
643
|
+
<div class="informaltable"><table width="100%" border="0">
|
529
644
|
<colgroup>
|
530
|
-
<col
|
531
|
-
<col>
|
645
|
+
<col width="300px" class="enum_members_name">
|
646
|
+
<col class="enum_members_description">
|
647
|
+
<col width="200px" class="enum_members_annotations">
|
532
648
|
</colgroup>
|
533
649
|
<tbody>
|
534
650
|
<tr>
|
535
|
-
<td
|
536
|
-
<td
|
651
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-CORRUPT-IMAGE:CAPS"></a>GDK_PIXBUF_ERROR_CORRUPT_IMAGE</p></td>
|
652
|
+
<td class="enum_member_description">
|
653
|
+
<p>An image file was broken somehow.</p>
|
654
|
+
</td>
|
655
|
+
<td class="enum_member_annotations"> </td>
|
537
656
|
</tr>
|
538
657
|
<tr>
|
539
|
-
<td
|
540
|
-
<td
|
658
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-INSUFFICIENT-MEMORY:CAPS"></a>GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY</p></td>
|
659
|
+
<td class="enum_member_description">
|
660
|
+
<p>Not enough memory.</p>
|
661
|
+
</td>
|
662
|
+
<td class="enum_member_annotations"> </td>
|
541
663
|
</tr>
|
542
|
-
</tbody>
|
543
|
-
</table></div>
|
544
|
-
</div>
|
545
|
-
<hr>
|
546
|
-
<div class="refsect2">
|
547
|
-
<a name="gdk-pixbuf-get-rowstride"></a><h3>gdk_pixbuf_get_rowstride ()</h3>
|
548
|
-
<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>
|
549
|
-
<p>
|
550
|
-
Queries the rowstride of a pixbuf, which is the number of bytes between the start of a row
|
551
|
-
and the start of the next row.
|
552
|
-
</p>
|
553
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
554
|
-
<colgroup>
|
555
|
-
<col align="left" valign="top">
|
556
|
-
<col>
|
557
|
-
</colgroup>
|
558
|
-
<tbody>
|
559
664
|
<tr>
|
560
|
-
<td
|
561
|
-
<td
|
665
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-BAD-OPTION:CAPS"></a>GDK_PIXBUF_ERROR_BAD_OPTION</p></td>
|
666
|
+
<td class="enum_member_description">
|
667
|
+
<p>A bad option was passed to a pixbuf save module.</p>
|
668
|
+
</td>
|
669
|
+
<td class="enum_member_annotations"> </td>
|
562
670
|
</tr>
|
563
671
|
<tr>
|
564
|
-
<td
|
565
|
-
<td
|
672
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-UNKNOWN-TYPE:CAPS"></a>GDK_PIXBUF_ERROR_UNKNOWN_TYPE</p></td>
|
673
|
+
<td class="enum_member_description">
|
674
|
+
<p>Unknown image type.</p>
|
675
|
+
</td>
|
676
|
+
<td class="enum_member_annotations"> </td>
|
677
|
+
</tr>
|
678
|
+
<tr>
|
679
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-UNSUPPORTED-OPERATION:CAPS"></a>GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION</p></td>
|
680
|
+
<td class="enum_member_description">
|
681
|
+
<p>Don't know how to perform the
|
682
|
+
given operation on the type of image at hand.</p>
|
683
|
+
</td>
|
684
|
+
<td class="enum_member_annotations"> </td>
|
685
|
+
</tr>
|
686
|
+
<tr>
|
687
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ERROR-FAILED:CAPS"></a>GDK_PIXBUF_ERROR_FAILED</p></td>
|
688
|
+
<td class="enum_member_description">
|
689
|
+
<p>Generic failure code, something went wrong.</p>
|
690
|
+
</td>
|
691
|
+
<td class="enum_member_annotations"> </td>
|
566
692
|
</tr>
|
567
693
|
</tbody>
|
568
694
|
</table></div>
|
569
695
|
</div>
|
696
|
+
</div>
|
570
697
|
<hr>
|
571
698
|
<div class="refsect2">
|
572
|
-
<a name="
|
573
|
-
<pre class="programlisting"
|
574
|
-
|
575
|
-
|
576
|
-
</
|
577
|
-
|
699
|
+
<a name="GDK-PIXBUF-ERROR:CAPS"></a><h3>GDK_PIXBUF_ERROR</h3>
|
700
|
+
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
|
701
|
+
</pre>
|
702
|
+
<p>Error domain used for pixbuf operations. Indicates that the error code
|
703
|
+
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 <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for
|
704
|
+
information on error domains and error codes.</p>
|
705
|
+
</div>
|
706
|
+
<hr>
|
707
|
+
<div class="refsect2">
|
708
|
+
<a name="GdkColorspace"></a><h3>enum GdkColorspace</h3>
|
709
|
+
<p>This enumeration defines the color spaces that are supported by
|
710
|
+
the &gdk-pixbuf; library. Currently only RGB is supported.</p>
|
711
|
+
<div class="refsect3">
|
712
|
+
<a name="id-1.2.4.12.4.4"></a><h4>Members</h4>
|
713
|
+
<div class="informaltable"><table width="100%" border="0">
|
578
714
|
<colgroup>
|
579
|
-
<col
|
580
|
-
<col>
|
715
|
+
<col width="300px" class="enum_members_name">
|
716
|
+
<col class="enum_members_description">
|
717
|
+
<col width="200px" class="enum_members_annotations">
|
581
718
|
</colgroup>
|
582
|
-
<tbody>
|
583
|
-
<
|
584
|
-
<td
|
585
|
-
<
|
586
|
-
</
|
587
|
-
<
|
588
|
-
|
589
|
-
<td>The length of the pixel data.</td>
|
590
|
-
</tr>
|
591
|
-
</tbody>
|
719
|
+
<tbody><tr>
|
720
|
+
<td class="enum_member_name"><p><a name="GDK-COLORSPACE-RGB:CAPS"></a>GDK_COLORSPACE_RGB</p></td>
|
721
|
+
<td class="enum_member_description">
|
722
|
+
<p>Indicates a red/green/blue additive color space.</p>
|
723
|
+
</td>
|
724
|
+
<td class="enum_member_annotations"> </td>
|
725
|
+
</tr></tbody>
|
592
726
|
</table></div>
|
593
|
-
|
727
|
+
</div>
|
594
728
|
</div>
|
595
729
|
<hr>
|
596
730
|
<div class="refsect2">
|
597
|
-
<a name="
|
598
|
-
<
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
|
610
|
-
return an "orientation" option string that corresponds to the embedded
|
611
|
-
TIFF/Exif orientation tag (if present).
|
612
|
-
</p>
|
613
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
731
|
+
<a name="GdkPixbufAlphaMode"></a><h3>enum GdkPixbufAlphaMode</h3>
|
732
|
+
<p>These values can be passed to
|
733
|
+
<a href="http://library.gnome.org/devel/gdk3/gdk2-Pixbufs.html#gdk-pixbuf-render-to-drawable-alpha"><code class="function">gdk_pixbuf_render_to_drawable_alpha()</code></a> to control how the alpha
|
734
|
+
channel of an image should be handled. This function can create a
|
735
|
+
bilevel clipping mask (black and white) and use it while painting
|
736
|
+
the image. In the future, when the X Window System gets an alpha
|
737
|
+
channel extension, it will be possible to do full alpha
|
738
|
+
compositing onto arbitrary drawables. For now both cases fall
|
739
|
+
back to a bilevel clipping mask.</p>
|
740
|
+
<div class="refsect3">
|
741
|
+
<a name="id-1.2.4.12.5.4"></a><h4>Members</h4>
|
742
|
+
<div class="informaltable"><table width="100%" border="0">
|
614
743
|
<colgroup>
|
615
|
-
<col
|
616
|
-
<col>
|
744
|
+
<col width="300px" class="enum_members_name">
|
745
|
+
<col class="enum_members_description">
|
746
|
+
<col width="200px" class="enum_members_annotations">
|
617
747
|
</colgroup>
|
618
748
|
<tbody>
|
619
749
|
<tr>
|
620
|
-
<td
|
621
|
-
<td
|
750
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ALPHA-BILEVEL:CAPS"></a>GDK_PIXBUF_ALPHA_BILEVEL</p></td>
|
751
|
+
<td class="enum_member_description">
|
752
|
+
<p>A bilevel clipping mask (black and white)
|
753
|
+
will be created and used to draw the image. Pixels below 0.5 opacity
|
754
|
+
will be considered fully transparent, and all others will be
|
755
|
+
considered fully opaque.</p>
|
622
756
|
</td>
|
757
|
+
<td class="enum_member_annotations"> </td>
|
623
758
|
</tr>
|
624
759
|
<tr>
|
625
|
-
<td
|
626
|
-
<td
|
627
|
-
</
|
628
|
-
|
629
|
-
|
630
|
-
<td
|
631
|
-
string that should not be freed or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em> was not found.</td>
|
760
|
+
<td class="enum_member_name"><p><a name="GDK-PIXBUF-ALPHA-FULL:CAPS"></a>GDK_PIXBUF_ALPHA_FULL</p></td>
|
761
|
+
<td class="enum_member_description">
|
762
|
+
<p>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>.
|
763
|
+
In the future it will do full alpha compositing.</p>
|
764
|
+
</td>
|
765
|
+
<td class="enum_member_annotations"> </td>
|
632
766
|
</tr>
|
633
767
|
</tbody>
|
634
768
|
</table></div>
|
635
769
|
</div>
|
636
770
|
</div>
|
771
|
+
<hr>
|
772
|
+
<div class="refsect2">
|
773
|
+
<a name="GdkPixbuf-struct"></a><h3>GdkPixbuf</h3>
|
774
|
+
<pre class="programlisting">typedef struct _GdkPixbuf GdkPixbuf;</pre>
|
775
|
+
<p>This is the main structure in the &gdk-pixbuf; library. It is
|
776
|
+
used to represent images. It contains information about the
|
777
|
+
image's pixel data, its color space, bits per sample, width and
|
778
|
+
height, and the rowstride (the number of bytes between the start of
|
779
|
+
one row and the start of the next).</p>
|
780
|
+
</div>
|
781
|
+
</div>
|
637
782
|
<div class="refsect1">
|
638
783
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.property-details"></a><h2>Property Details</h2>
|
639
784
|
<div class="refsect2">
|
640
|
-
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal"
|
641
|
-
<pre class="programlisting">
|
642
|
-
<p>
|
643
|
-
The number of bits per sample.
|
785
|
+
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal">“bits-per-sample”</code> property</h3>
|
786
|
+
<pre class="programlisting"> “bits-per-sample” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
787
|
+
<p>The number of bits per sample.
|
644
788
|
|
645
|
-
Currently only 8 bit per sample are supported
|
646
|
-
</p>
|
789
|
+
Currently only 8 bit per sample are supported.</p>
|
790
|
+
<p>Flags: Read / Write / Construct Only</p>
|
647
791
|
<p>Allowed values: [1,16]</p>
|
648
792
|
<p>Default value: 8</p>
|
649
793
|
</div>
|
650
794
|
<hr>
|
651
795
|
<div class="refsect2">
|
652
|
-
<a name="GdkPixbuf--colorspace"></a><h3>The <code class="literal"
|
653
|
-
<pre class="programlisting">
|
796
|
+
<a name="GdkPixbuf--colorspace"></a><h3>The <code class="literal">“colorspace”</code> property</h3>
|
797
|
+
<pre class="programlisting"> “colorspace” <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a></pre>
|
654
798
|
<p>The colorspace in which the samples are interpreted.</p>
|
799
|
+
<p>Flags: Read / Write / Construct Only</p>
|
655
800
|
<p>Default value: GDK_COLORSPACE_RGB</p>
|
656
801
|
</div>
|
657
802
|
<hr>
|
658
803
|
<div class="refsect2">
|
659
|
-
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal"
|
660
|
-
<pre class="programlisting">
|
804
|
+
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">“has-alpha”</code> property</h3>
|
805
|
+
<pre class="programlisting"> “has-alpha” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
661
806
|
<p>Whether the pixbuf has an alpha channel.</p>
|
807
|
+
<p>Flags: Read / Write / Construct Only</p>
|
662
808
|
<p>Default value: FALSE</p>
|
663
809
|
</div>
|
664
810
|
<hr>
|
665
811
|
<div class="refsect2">
|
666
|
-
<a name="GdkPixbuf--height"></a><h3>The <code class="literal"
|
667
|
-
<pre class="programlisting">
|
812
|
+
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">“height”</code> property</h3>
|
813
|
+
<pre class="programlisting"> “height” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
668
814
|
<p>The number of rows of the pixbuf.</p>
|
815
|
+
<p>Flags: Read / Write / Construct Only</p>
|
669
816
|
<p>Allowed values: >= 1</p>
|
670
817
|
<p>Default value: 1</p>
|
671
818
|
</div>
|
672
819
|
<hr>
|
673
820
|
<div class="refsect2">
|
674
|
-
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal"
|
675
|
-
<pre class="programlisting">
|
676
|
-
<p>
|
677
|
-
The number of samples per pixel.
|
821
|
+
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">“n-channels”</code> property</h3>
|
822
|
+
<pre class="programlisting"> “n-channels” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
823
|
+
<p>The number of samples per pixel.
|
678
824
|
|
679
|
-
Currently, only 3 or 4 samples per pixel are supported
|
680
|
-
</p>
|
825
|
+
Currently, only 3 or 4 samples per pixel are supported.</p>
|
826
|
+
<p>Flags: Read / Write / Construct Only</p>
|
681
827
|
<p>Allowed values: >= 0</p>
|
682
828
|
<p>Default value: 3</p>
|
683
829
|
</div>
|
684
830
|
<hr>
|
685
831
|
<div class="refsect2">
|
686
|
-
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal"
|
687
|
-
<pre class="programlisting">
|
832
|
+
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">“pixels”</code> property</h3>
|
833
|
+
<pre class="programlisting"> “pixels” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
|
688
834
|
<p>A pointer to the pixel data of the pixbuf.</p>
|
835
|
+
<p>Flags: Read / Write / Construct Only</p>
|
689
836
|
</div>
|
690
837
|
<hr>
|
691
838
|
<div class="refsect2">
|
692
|
-
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal"
|
693
|
-
<pre class="programlisting">
|
694
|
-
<p>
|
695
|
-
The number of bytes between the start of a row and
|
839
|
+
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">“rowstride”</code> property</h3>
|
840
|
+
<pre class="programlisting"> “rowstride” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
841
|
+
<p>The number of bytes between the start of a row and
|
696
842
|
|
697
843
|
the start of the next row. This number must (obviously)
|
698
|
-
be at least as large as the width of the pixbuf
|
699
|
-
</p>
|
844
|
+
be at least as large as the width of the pixbuf.</p>
|
845
|
+
<p>Flags: Read / Write / Construct Only</p>
|
700
846
|
<p>Allowed values: >= 1</p>
|
701
847
|
<p>Default value: 1</p>
|
702
848
|
</div>
|
703
849
|
<hr>
|
704
850
|
<div class="refsect2">
|
705
|
-
<a name="GdkPixbuf--width"></a><h3>The <code class="literal"
|
706
|
-
<pre class="programlisting">
|
851
|
+
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">“width”</code> property</h3>
|
852
|
+
<pre class="programlisting"> “width” <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
707
853
|
<p>The number of columns of the pixbuf.</p>
|
854
|
+
<p>Flags: Read / Write / Construct Only</p>
|
708
855
|
<p>Allowed values: >= 1</p>
|
709
856
|
<p>Default value: 1</p>
|
710
857
|
</div>
|
@@ -712,6 +859,6 @@ be at least as large as the width of the pixbuf.
|
|
712
859
|
</div>
|
713
860
|
<div class="footer">
|
714
861
|
<hr>
|
715
|
-
Generated by GTK-Doc V1.
|
862
|
+
Generated by GTK-Doc V1.20.1</div>
|
716
863
|
</body>
|
717
864
|
</html>
|