gdk_pixbuf2 2.2.0-x86-mingw32 → 2.2.1-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/2.0/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-core.h +15 -30
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +23 -23
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +4 -4
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +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/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +1 -1
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +81 -81
- 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 +2 -2
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +338 -185
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +55 -54
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +63 -63
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +95 -88
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +84 -84
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +33 -32
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +60 -60
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +9 -9
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +19 -19
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +116 -82
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +1 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +13 -11
- 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 +11 -13
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
@@ -60,7 +60,7 @@
|
|
60
60
|
</tr>
|
61
61
|
<tr>
|
62
62
|
<td class="function_type">
|
63
|
-
<a href="
|
63
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
64
64
|
</td>
|
65
65
|
<td class="function_name">
|
66
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>
|
@@ -76,7 +76,7 @@
|
|
76
76
|
</tr>
|
77
77
|
<tr>
|
78
78
|
<td class="function_type">
|
79
|
-
<a href="
|
79
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
80
80
|
</td>
|
81
81
|
<td class="function_name">
|
82
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>
|
@@ -84,7 +84,7 @@
|
|
84
84
|
</tr>
|
85
85
|
<tr>
|
86
86
|
<td class="function_type">
|
87
|
-
<a href="
|
87
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
88
88
|
</td>
|
89
89
|
<td class="function_name">
|
90
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>
|
@@ -116,14 +116,14 @@
|
|
116
116
|
</tr>
|
117
117
|
<tr>
|
118
118
|
<td class="function_type">
|
119
|
-
<a href="
|
119
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
120
120
|
</td>
|
121
121
|
<td class="function_name">
|
122
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
123
|
</td>
|
124
124
|
</tr>
|
125
125
|
<tr>
|
126
|
-
<td class="function_type">const <a href="
|
126
|
+
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
127
127
|
</td>
|
128
128
|
<td class="function_name">
|
129
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>
|
@@ -142,7 +142,7 @@
|
|
142
142
|
</colgroup>
|
143
143
|
<tbody>
|
144
144
|
<tr>
|
145
|
-
<td class="property_type"><a href="
|
145
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
146
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
147
|
<td class="property_flags">Read / Write / Construct Only</td>
|
148
148
|
</tr>
|
@@ -152,32 +152,32 @@
|
|
152
152
|
<td class="property_flags">Read / Write / Construct Only</td>
|
153
153
|
</tr>
|
154
154
|
<tr>
|
155
|
-
<td class="property_type"><a href="
|
155
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
156
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
157
|
<td class="property_flags">Read / Write / Construct Only</td>
|
158
158
|
</tr>
|
159
159
|
<tr>
|
160
|
-
<td class="property_type"><a href="
|
160
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
161
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
162
|
<td class="property_flags">Read / Write / Construct Only</td>
|
163
163
|
</tr>
|
164
164
|
<tr>
|
165
|
-
<td class="property_type"><a href="
|
165
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
166
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
167
|
<td class="property_flags">Read / Write / Construct Only</td>
|
168
168
|
</tr>
|
169
169
|
<tr>
|
170
|
-
<td class="property_type"><a href="
|
170
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
|
171
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
172
|
<td class="property_flags">Read / Write / Construct Only</td>
|
173
173
|
</tr>
|
174
174
|
<tr>
|
175
|
-
<td class="property_type"><a href="
|
175
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
176
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
177
|
<td class="property_flags">Read / Write / Construct Only</td>
|
178
178
|
</tr>
|
179
179
|
<tr>
|
180
|
-
<td class="property_type"><a href="
|
180
|
+
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
181
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
182
|
<td class="property_flags">Read / Write / Construct Only</td>
|
183
183
|
</tr>
|
@@ -217,7 +217,7 @@
|
|
217
217
|
</div>
|
218
218
|
<div class="refsect1">
|
219
219
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
220
|
-
<pre class="screen"> <a href="
|
220
|
+
<pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
221
221
|
<span class="lineart">╰──</span> GdkPixbuf
|
222
222
|
</pre>
|
223
223
|
</div>
|
@@ -225,7 +225,7 @@
|
|
225
225
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
226
226
|
<p>
|
227
227
|
GdkPixbuf implements
|
228
|
-
<a href="
|
228
|
+
<a href="http://library.gnome.org/devel/gio/unstable/GIcon.html">GIcon</a> and <a href="http://library.gnome.org/devel/gio/unstable/GLoadableIcon.html">GLoadableIcon</a>.</p>
|
229
229
|
</div>
|
230
230
|
<div class="refsect1">
|
231
231
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.includes"></a><h2>Includes</h2>
|
@@ -236,64 +236,98 @@ GdkPixbuf implements
|
|
236
236
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.description"></a><h2>Description</h2>
|
237
237
|
<p>The <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure contains
|
238
238
|
information that describes an image in memory.</p>
|
239
|
-
<
|
240
|
-
|
241
|
-
|
242
|
-
Image data in a pixbuf is stored in memory in uncompressed,
|
239
|
+
<div class="refsect3">
|
240
|
+
<a name="image-data"></a><h4>Image Data</h4>
|
241
|
+
<p>Image data in a pixbuf is stored in memory in uncompressed,
|
243
242
|
packed format. Rows in the image are stored top to bottom, and
|
244
243
|
in each row pixels are stored from left to right. There may be
|
245
244
|
padding at the end of a row. The "rowstride" value of a pixbuf,
|
246
245
|
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
246
|
of bytes between rows.</p>
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
<p>The following code illustrates a simple put_pixel(
|
247
|
+
</div>
|
248
|
+
<div class="refsect3">
|
249
|
+
<a name="put-pixel"></a><h4>put_pixel() Example</h4>
|
250
|
+
<p>The following code illustrates a simple <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#put-pixel" title="put_pixel() Example"><code class="function">put_pixel()</code></a>
|
252
251
|
function for RGB pixbufs with 8 bits per channel with an alpha
|
253
252
|
channel. It is not included in the gdk-pixbuf library for
|
254
253
|
performance reasons; rather than making several function calls
|
255
254
|
for each pixel, your own code can take shortcuts.</p>
|
256
|
-
<
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
255
|
+
<div class="informalexample">
|
256
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
257
|
+
<tbody>
|
258
|
+
<tr>
|
259
|
+
<td class="listing_lines" align="right"><pre>1
|
260
|
+
2
|
261
|
+
3
|
262
|
+
4
|
263
|
+
5
|
264
|
+
6
|
265
|
+
7
|
266
|
+
8
|
267
|
+
9
|
268
|
+
10
|
269
|
+
11
|
270
|
+
12
|
271
|
+
13
|
272
|
+
14
|
273
|
+
15
|
274
|
+
16
|
275
|
+
17
|
276
|
+
18
|
277
|
+
19
|
278
|
+
20
|
279
|
+
21
|
280
|
+
22
|
281
|
+
23
|
282
|
+
24
|
283
|
+
25
|
284
|
+
26
|
285
|
+
27
|
286
|
+
28</pre></td>
|
287
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
288
|
+
<span class="function">put_pixel</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> </span><span class="type">int</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> </span><span class="type">int</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> red</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> green</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> blue</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> alpha</span><span class="symbol">)</span>
|
289
|
+
<span class="cbracket">{</span>
|
290
|
+
<span class="normal"> </span><span class="type">int</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">,</span><span class="normal"> rowstride</span><span class="symbol">,</span><span class="normal"> n_channels</span><span class="symbol">;</span>
|
291
|
+
<span class="normal"> </span><span class="usertype">guchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixels</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">p</span><span class="symbol">;</span>
|
292
|
+
|
293
|
+
<span class="normal"> n_channels </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-n-channels">gdk_pixbuf_get_n_channels</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
294
|
+
|
295
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-colorspace">gdk_pixbuf_get_colorspace</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> GDK_COLORSPACE_RGB</span><span class="symbol">);</span>
|
296
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-bits-per-sample">gdk_pixbuf_get_bits_per_sample</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">==</span><span class="normal"> </span><span class="number">8</span><span class="symbol">);</span>
|
297
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-has-alpha">gdk_pixbuf_get_has_alpha</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">));</span>
|
298
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">n_channels </span><span class="symbol">==</span><span class="normal"> </span><span class="number">4</span><span class="symbol">);</span>
|
299
|
+
|
300
|
+
<span class="normal"> width </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width">gdk_pixbuf_get_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
301
|
+
<span class="normal"> height </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height">gdk_pixbuf_get_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
302
|
+
|
303
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">x </span><span class="symbol">>=</span><span class="normal"> </span><span class="number">0</span><span class="normal"> </span><span class="symbol">&&</span><span class="normal"> x </span><span class="symbol"><</span><span class="normal"> width</span><span class="symbol">);</span>
|
304
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Testing.html#g-assert">g_assert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">y </span><span class="symbol">>=</span><span class="normal"> </span><span class="number">0</span><span class="normal"> </span><span class="symbol">&&</span><span class="normal"> y </span><span class="symbol"><</span><span class="normal"> height</span><span class="symbol">);</span>
|
305
|
+
|
306
|
+
<span class="normal"> rowstride </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-rowstride">gdk_pixbuf_get_rowstride</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
307
|
+
<span class="normal"> pixels </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-pixels">gdk_pixbuf_get_pixels</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">);</span>
|
308
|
+
|
309
|
+
<span class="normal"> p </span><span class="symbol">=</span><span class="normal"> pixels </span><span class="symbol">+</span><span class="normal"> y </span><span class="symbol">*</span><span class="normal"> rowstride </span><span class="symbol">+</span><span class="normal"> x </span><span class="symbol">*</span><span class="normal"> n_channels</span><span class="symbol">;</span>
|
310
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> red</span><span class="symbol">;</span>
|
311
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">1</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> green</span><span class="symbol">;</span>
|
312
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">2</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> blue</span><span class="symbol">;</span>
|
313
|
+
<span class="normal"> p</span><span class="symbol">[</span><span class="number">3</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> alpha</span><span class="symbol">;</span>
|
314
|
+
<span class="cbracket">}</span></pre></td>
|
315
|
+
</tr>
|
316
|
+
</tbody>
|
317
|
+
</table>
|
318
|
+
</div>
|
319
|
+
|
320
|
+
<p></p>
|
280
321
|
<p>This function will not work for pixbufs with images that are
|
281
322
|
other than 8 bits per sample or channel, but it will work for
|
282
|
-
most of the pixbufs that GTK+ uses
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
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>
|
323
|
+
most of the pixbufs that GTK+ uses.</p>
|
324
|
+
<p>If you are doing <code class="function">memcpy()</code> of raw pixbuf data, note that the last row
|
325
|
+
in the pixbuf may not be as wide as the full rowstride, but rather
|
326
|
+
just as wide as the pixel data needs to be. That is, it is unsafe to
|
327
|
+
do <code class="literal">memcpy (dest, pixels, rowstride * height)</code> to copy a whole pixbuf.
|
328
|
+
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 of the
|
329
|
+
last row as <code class="literal">width * ((n_channels * bits_per_sample + 7) / 8)</code>.</p>
|
330
|
+
</div>
|
297
331
|
</div>
|
298
332
|
<div class="refsect1">
|
299
333
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.functions_details"></a><h2>Functions</h2>
|
@@ -353,7 +387,7 @@ gdk_pixbuf_get_n_channels (<em class="parameter"><code>const <a class="link" hre
|
|
353
387
|
<hr>
|
354
388
|
<div class="refsect2">
|
355
389
|
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
|
356
|
-
<pre class="programlisting"><a href="
|
390
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
357
391
|
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
392
|
<p>Queries whether a pixbuf has an alpha channel (opacity information).</p>
|
359
393
|
<div class="refsect3">
|
@@ -373,7 +407,7 @@ gdk_pixbuf_get_has_alpha (<em class="parameter"><code>const <a class="link" href
|
|
373
407
|
</div>
|
374
408
|
<div class="refsect3">
|
375
409
|
<a name="id-1.2.4.11.4.6"></a><h4>Returns</h4>
|
376
|
-
<p> <a href="
|
410
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it has an alpha channel, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
377
411
|
<p></p>
|
378
412
|
</div>
|
379
413
|
</div>
|
@@ -407,7 +441,7 @@ gdk_pixbuf_get_bits_per_sample (<em class="parameter"><code>const <a class="link
|
|
407
441
|
<hr>
|
408
442
|
<div class="refsect2">
|
409
443
|
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
|
410
|
-
<pre class="programlisting"><a href="
|
444
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
411
445
|
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
446
|
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
413
447
|
<div class="refsect3">
|
@@ -436,9 +470,9 @@ about how the pixel data is stored in memory. </p>
|
|
436
470
|
<hr>
|
437
471
|
<div class="refsect2">
|
438
472
|
<a name="gdk-pixbuf-get-pixels-with-length"></a><h3>gdk_pixbuf_get_pixels_with_length ()</h3>
|
439
|
-
<pre class="programlisting"><a href="
|
473
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
440
474
|
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="
|
475
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *length</code></em>);</pre>
|
442
476
|
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
443
477
|
<div class="refsect3">
|
444
478
|
<a name="id-1.2.4.11.7.5"></a><h4>Parameters</h4>
|
@@ -557,7 +591,7 @@ the start of a row and the start of the next row.</p>
|
|
557
591
|
<hr>
|
558
592
|
<div class="refsect2">
|
559
593
|
<a name="gdk-pixbuf-get-byte-length"></a><h3>gdk_pixbuf_get_byte_length ()</h3>
|
560
|
-
<pre class="programlisting"><a href="
|
594
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
561
595
|
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
596
|
<p>Returns the length of the pixel data, in bytes.</p>
|
563
597
|
<div class="refsect3">
|
@@ -585,9 +619,9 @@ gdk_pixbuf_get_byte_length (<em class="parameter"><code>const <a class="link" hr
|
|
585
619
|
<hr>
|
586
620
|
<div class="refsect2">
|
587
621
|
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
|
588
|
-
<pre class="programlisting">const <a href="
|
622
|
+
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
589
623
|
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="
|
624
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
|
591
625
|
<p>Looks up <em class="parameter"><code>key</code></em>
|
592
626
|
in the list of options that may have been attached to the
|
593
627
|
<em class="parameter"><code>pixbuf</code></em>
|
@@ -625,7 +659,7 @@ TIFF/Exif orientation tag (if present).</p>
|
|
625
659
|
<a name="id-1.2.4.11.12.7"></a><h4>Returns</h4>
|
626
660
|
<p> the value associated with <em class="parameter"><code>key</code></em>
|
627
661
|
. This is a nul-terminated
|
628
|
-
string that should not be freed or <a href="
|
662
|
+
string that should not be freed or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em>
|
629
663
|
was not found.</p>
|
630
664
|
<p></p>
|
631
665
|
</div>
|
@@ -635,8 +669,8 @@ was not found.</p>
|
|
635
669
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.other_details"></a><h2>Types and Values</h2>
|
636
670
|
<div class="refsect2">
|
637
671
|
<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
|
639
|
-
operations can cause errors in this domain, or in the <a href="
|
672
|
+
<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
|
673
|
+
operations can cause errors in this domain, or in the <a href="http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a>
|
640
674
|
domain.</p>
|
641
675
|
<div class="refsect3">
|
642
676
|
<a name="id-1.2.4.12.2.4"></a><h4>Members</h4>
|
@@ -700,14 +734,14 @@ domain.</p>
|
|
700
734
|
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
|
701
735
|
</pre>
|
702
736
|
<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="
|
737
|
+
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="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for
|
704
738
|
information on error domains and error codes.</p>
|
705
739
|
</div>
|
706
740
|
<hr>
|
707
741
|
<div class="refsect2">
|
708
742
|
<a name="GdkColorspace"></a><h3>enum GdkColorspace</h3>
|
709
743
|
<p>This enumeration defines the color spaces that are supported by
|
710
|
-
the
|
744
|
+
the gdk-pixbuf library. Currently only RGB is supported.</p>
|
711
745
|
<div class="refsect3">
|
712
746
|
<a name="id-1.2.4.12.4.4"></a><h4>Members</h4>
|
713
747
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -772,7 +806,7 @@ back to a bilevel clipping mask.</p>
|
|
772
806
|
<div class="refsect2">
|
773
807
|
<a name="GdkPixbuf-struct"></a><h3>GdkPixbuf</h3>
|
774
808
|
<pre class="programlisting">typedef struct _GdkPixbuf GdkPixbuf;</pre>
|
775
|
-
<p>This is the main structure in the
|
809
|
+
<p>This is the main structure in the gdk-pixbuf library. It is
|
776
810
|
used to represent images. It contains information about the
|
777
811
|
image's pixel data, its color space, bits per sample, width and
|
778
812
|
height, and the rowstride (the number of bytes between the start of
|
@@ -783,7 +817,7 @@ one row and the start of the next).</p>
|
|
783
817
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.property-details"></a><h2>Property Details</h2>
|
784
818
|
<div class="refsect2">
|
785
819
|
<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="
|
820
|
+
<pre class="programlisting"> “bits-per-sample” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
787
821
|
<p>The number of bits per sample.
|
788
822
|
|
789
823
|
Currently only 8 bit per sample are supported.</p>
|
@@ -802,7 +836,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
802
836
|
<hr>
|
803
837
|
<div class="refsect2">
|
804
838
|
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">“has-alpha”</code> property</h3>
|
805
|
-
<pre class="programlisting"> “has-alpha” <a href="
|
839
|
+
<pre class="programlisting"> “has-alpha” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
806
840
|
<p>Whether the pixbuf has an alpha channel.</p>
|
807
841
|
<p>Flags: Read / Write / Construct Only</p>
|
808
842
|
<p>Default value: FALSE</p>
|
@@ -810,7 +844,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
810
844
|
<hr>
|
811
845
|
<div class="refsect2">
|
812
846
|
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">“height”</code> property</h3>
|
813
|
-
<pre class="programlisting"> “height” <a href="
|
847
|
+
<pre class="programlisting"> “height” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
814
848
|
<p>The number of rows of the pixbuf.</p>
|
815
849
|
<p>Flags: Read / Write / Construct Only</p>
|
816
850
|
<p>Allowed values: >= 1</p>
|
@@ -819,7 +853,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
819
853
|
<hr>
|
820
854
|
<div class="refsect2">
|
821
855
|
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">“n-channels”</code> property</h3>
|
822
|
-
<pre class="programlisting"> “n-channels” <a href="
|
856
|
+
<pre class="programlisting"> “n-channels” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
823
857
|
<p>The number of samples per pixel.
|
824
858
|
|
825
859
|
Currently, only 3 or 4 samples per pixel are supported.</p>
|
@@ -830,14 +864,14 @@ Currently, only 3 or 4 samples per pixel are supported.</p>
|
|
830
864
|
<hr>
|
831
865
|
<div class="refsect2">
|
832
866
|
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">“pixels”</code> property</h3>
|
833
|
-
<pre class="programlisting"> “pixels” <a href="
|
867
|
+
<pre class="programlisting"> “pixels” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
|
834
868
|
<p>A pointer to the pixel data of the pixbuf.</p>
|
835
869
|
<p>Flags: Read / Write / Construct Only</p>
|
836
870
|
</div>
|
837
871
|
<hr>
|
838
872
|
<div class="refsect2">
|
839
873
|
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">“rowstride”</code> property</h3>
|
840
|
-
<pre class="programlisting"> “rowstride” <a href="
|
874
|
+
<pre class="programlisting"> “rowstride” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
841
875
|
<p>The number of bytes between the start of a row and
|
842
876
|
|
843
877
|
the start of the next row. This number must (obviously)
|
@@ -849,7 +883,7 @@ be at least as large as the width of the pixbuf.</p>
|
|
849
883
|
<hr>
|
850
884
|
<div class="refsect2">
|
851
885
|
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">“width”</code> property</h3>
|
852
|
-
<pre class="programlisting"> “width” <a href="
|
886
|
+
<pre class="programlisting"> “width” <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
853
887
|
<p>The number of columns of the pixbuf.</p>
|
854
888
|
<p>Flags: Read / Write / Construct Only</p>
|
855
889
|
<p>Allowed values: >= 1</p>
|
@@ -100,16 +100,16 @@ performed by these functions instead.</p>
|
|
100
100
|
<a name="gdk-pixbuf-add-alpha"></a><h3>gdk_pixbuf_add_alpha ()</h3>
|
101
101
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
102
102
|
gdk_pixbuf_add_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>,
|
103
|
-
<em class="parameter"><code><a href="
|
104
|
-
<em class="parameter"><code><a href="
|
105
|
-
<em class="parameter"><code><a href="
|
106
|
-
<em class="parameter"><code><a href="
|
103
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> substitute_color</code></em>,
|
104
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> r</code></em>,
|
105
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> g</code></em>,
|
106
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> b</code></em>);</pre>
|
107
107
|
<p>Takes an existing pixbuf and adds an alpha channel to it.
|
108
108
|
If the existing pixbuf already had an alpha channel, the channel
|
109
109
|
values are copied from the original; otherwise, the alpha channel
|
110
110
|
is initialized to 255 (full opacity).</p>
|
111
111
|
<p>If <em class="parameter"><code>substitute_color</code></em>
|
112
|
-
is <a href="
|
112
|
+
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then the color specified by (<em class="parameter"><code>r</code></em>
|
113
113
|
, <em class="parameter"><code>g</code></em>
|
114
114
|
, <em class="parameter"><code>b</code></em>
|
115
115
|
) will be
|
@@ -132,7 +132,7 @@ substitute color, all white pixels will become fully transparent.</p>
|
|
132
132
|
<tr>
|
133
133
|
<td class="parameter_name"><p>substitute_color</p></td>
|
134
134
|
<td class="parameter_description"><p>Whether to set a color to zero opacity. If this
|
135
|
-
is <a href="
|
135
|
+
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, then the (<em class="parameter"><code>r</code></em>
|
136
136
|
, <em class="parameter"><code>g</code></em>
|
137
137
|
, <em class="parameter"><code>b</code></em>
|
138
138
|
) arguments will be ignored.</p></td>
|
@@ -244,8 +244,8 @@ Therefore, you can not use this function to scroll a pixbuf.</p>
|
|
244
244
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
245
245
|
gdk_pixbuf_saturate_and_pixelate (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src</code></em>,
|
246
246
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *dest</code></em>,
|
247
|
-
<em class="parameter"><code><a href="
|
248
|
-
<em class="parameter"><code><a href="
|
247
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> saturation</code></em>,
|
248
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> pixelate</code></em>);</pre>
|
249
249
|
<p>Modifies saturation and optionally pixelates <em class="parameter"><code>src</code></em>
|
250
250
|
, placing the result in
|
251
251
|
<em class="parameter"><code>dest</code></em>
|
@@ -257,7 +257,7 @@ gdk_pixbuf_saturate_and_pixelate (<em class="parameter"><code>const <a class="li
|
|
257
257
|
saturation is reduced (the image turns toward grayscale); if greater than
|
258
258
|
1.0, saturation is increased (the image gets more vivid colors). If <em class="parameter"><code>pixelate</code></em>
|
259
259
|
|
260
|
-
is <a href="
|
260
|
+
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then pixels are faded in a checkerboard pattern to create a
|
261
261
|
pixelated image. <em class="parameter"><code>src</code></em>
|
262
262
|
and <em class="parameter"><code>dest</code></em>
|
263
263
|
must have the same image format, size, and
|
@@ -337,7 +337,7 @@ input pixbuf (with an increased reference count). </p>
|
|
337
337
|
<a name="gdk-pixbuf-fill"></a><h3>gdk_pixbuf_fill ()</h3>
|
338
338
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
339
339
|
gdk_pixbuf_fill (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
340
|
-
<em class="parameter"><code><a href="
|
340
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> pixel</code></em>);</pre>
|
341
341
|
<p>Clears a pixbuf to the given RGBA value, converting the RGBA value into
|
342
342
|
the pixbuf's pixel format. The alpha will be ignored if the pixbuf
|
343
343
|
doesn't have an alpha channel.</p>
|