gdk_pixbuf2 3.0.8-x64-mingw32 → 3.0.9-x64-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/gdk_pixbuf2.rb +11 -69
- data/lib/gdk_pixbuf2/deprecated.rb +160 -0
- data/lib/gdk_pixbuf2/loader.rb +51 -0
- data/lib/gdk_pixbuf2/pixbuf-loader.rb +24 -0
- data/lib/gdk_pixbuf2/pixbuf.rb +282 -0
- data/lib/gdk_pixbuf2/version.rb +33 -0
- data/sample/anim.rb +2 -2
- data/sample/composite.rb +41 -11
- data/sample/flip.rb +2 -2
- data/sample/format.rb +2 -4
- data/sample/loader.rb +3 -3
- data/sample/rotate.rb +4 -4
- data/sample/save.rb +3 -3
- data/sample/scale.rb +14 -6
- data/sample/simpleanim.rb +10 -4
- data/sample/utils.rb +7 -4
- data/sample/xpm.rb +9 -9
- data/test/fixture/floppybuddy.gif +0 -0
- data/test/fixture/gnome-logo-icon.png +0 -0
- data/test/fixture/image.gresource +0 -0
- data/test/fixture/image.gresource.xml +6 -0
- data/test/gdk_pixbuf2-test-utils.rb +11 -0
- data/test/run-test.rb +6 -3
- data/test/test-animation.rb +30 -0
- data/test/test-loader.rb +31 -0
- data/test/test-pixbuf.rb +334 -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/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/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +89 -89
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +85 -85
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +46 -46
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +13 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +52 -52
- 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-X-Drawables-to-Pixbufs.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +4 -4
- metadata +17 -25
- data/README +0 -29
- data/ext/gdk_pixbuf2/depend +0 -11
- data/ext/gdk_pixbuf2/extconf.rb +0 -68
- data/ext/gdk_pixbuf2/gdk_pixbuf2.def +0 -2
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +0 -179
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +0 -164
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +0 -737
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +0 -41
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +0 -42
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +0 -35
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +0 -93
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +0 -71
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +0 -53
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +0 -213
- data/extconf.rb +0 -49
- data/lib/2.2/gdk_pixbuf2.so +0 -0
- data/lib/2.3/gdk_pixbuf2.so +0 -0
- data/sample/inline.rb +0 -37
- data/sample/pixdata.rb +0 -39
- data/test/test-version.rb +0 -47
@@ -76,14 +76,14 @@
|
|
76
76
|
<p><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structures are reference counted. This means that an
|
77
77
|
application can share a single pixbuf among many parts of the
|
78
78
|
code. When a piece of the program needs to keep a pointer to a
|
79
|
-
pixbuf, it should add a reference to it by calling <a href="
|
79
|
+
pixbuf, it should add a reference to it by calling <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>.
|
80
80
|
When it no longer needs the pixbuf, it should subtract a reference
|
81
|
-
by calling <a href="
|
81
|
+
by calling <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. The pixbuf will be destroyed when
|
82
82
|
its reference count drops to zero. Newly-created <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
|
83
83
|
structures start with a reference count of one.</p>
|
84
|
-
<div class="blockquote"><blockquote class="blockquote"><p>As <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> is derived from <a href="
|
85
|
-
<a class="link" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html#gdk-pixbuf-unref" title="gdk_pixbuf_unref ()"><code class="function">gdk_pixbuf_unref()</code></a> are deprecated in favour of <a href="
|
86
|
-
and <a href="
|
84
|
+
<div class="blockquote"><blockquote class="blockquote"><p>As <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> is derived from <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> now, <a class="link" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html#gdk-pixbuf-ref" title="gdk_pixbuf_ref ()"><code class="function">gdk_pixbuf_ref()</code></a> and
|
85
|
+
<a class="link" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html#gdk-pixbuf-unref" title="gdk_pixbuf_unref ()"><code class="function">gdk_pixbuf_unref()</code></a> are deprecated in favour of <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>
|
86
|
+
and <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> resp.</p></blockquote></div>
|
87
87
|
<p>Finalizing a pixbuf means to free its pixel data and to free the
|
88
88
|
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure itself. Most of the library functions that
|
89
89
|
create <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structures create the pixel data by themselves
|
@@ -91,7 +91,7 @@ and define the way it should be freed; you do not need to worry
|
|
91
91
|
about those.</p>
|
92
92
|
<p>To provide preallocated pixel data, use
|
93
93
|
<a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-bytes" title="gdk_pixbuf_new_from_bytes ()"><code class="function">gdk_pixbuf_new_from_bytes()</code></a>. The <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-data" title="gdk_pixbuf_new_from_data ()"><code class="function">gdk_pixbuf_new_from_data()</code></a> API is
|
94
|
-
an older variant that predates the existence of <a href="
|
94
|
+
an older variant that predates the existence of <a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a>.</p>
|
95
95
|
</div>
|
96
96
|
<div class="refsect1">
|
97
97
|
<a name="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.functions_details"></a><h2>Functions</h2>
|
@@ -101,7 +101,7 @@ an older variant that predates the existence of <a href="/home/vagrant/ruby-gnom
|
|
101
101
|
gdk_pixbuf_ref (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
102
102
|
<div class="warning">
|
103
103
|
<p><code class="literal">gdk_pixbuf_ref</code> has been deprecated since version 2.0 and should not be used in newly-written code.</p>
|
104
|
-
<p>Use <a href="
|
104
|
+
<p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>.</p>
|
105
105
|
</div>
|
106
106
|
<p>Adds a reference to a pixbuf.</p>
|
107
107
|
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
@@ -133,7 +133,7 @@ argument.</p>
|
|
133
133
|
gdk_pixbuf_unref (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
134
134
|
<div class="warning">
|
135
135
|
<p><code class="literal">gdk_pixbuf_unref</code> has been deprecated since version 2.0 and should not be used in newly-written code.</p>
|
136
|
-
<p>Use <a href="
|
136
|
+
<p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
137
137
|
</div>
|
138
138
|
<p>Removes a reference from a pixbuf.</p>
|
139
139
|
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
@@ -157,8 +157,8 @@ gdk_pixbuf_unref (<em class="parameter"><code><a class="link" href="gdk-pixbuf-T
|
|
157
157
|
<div class="refsect2">
|
158
158
|
<a name="GdkPixbufDestroyNotify"></a><h3>GdkPixbufDestroyNotify ()</h3>
|
159
159
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
160
|
-
<span class="c_punctuation">(</span>*GdkPixbufDestroyNotify<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="
|
161
|
-
<em class="parameter"><code><a href="
|
160
|
+
<span class="c_punctuation">(</span>*GdkPixbufDestroyNotify<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *pixels</code></em>,
|
161
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
162
162
|
<p>A function of this type is responsible for freeing the pixel array
|
163
163
|
of a pixbuf. The <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-data" title="gdk_pixbuf_new_from_data ()"><code class="function">gdk_pixbuf_new_from_data()</code></a> function lets you
|
164
164
|
pass in a pre-allocated pixel array so that a pixbuf can be
|
@@ -182,12 +182,12 @@ as calling <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-scale" title
|
|
182
182
|
22
|
183
183
|
23
|
184
184
|
24</pre></td>
|
185
|
-
<td class="listing_code"><pre class="programlisting"><span class="normal"><a href="
|
185
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
186
186
|
<span class="function">expose_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">GdkEventExpose</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
187
187
|
<span class="cbracket">{</span>
|
188
188
|
<span class="normal"> </span><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">dest</span><span class="symbol">;</span>
|
189
189
|
|
190
|
-
<span class="normal"> dest </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new">gdk_pixbuf_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-COLORSPACE-RGB:CAPS">GDK_COLORSPACE_RGB</a></span><span class="symbol">,</span><span class="normal"> <a href="
|
190
|
+
<span class="normal"> dest </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new">gdk_pixbuf_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-COLORSPACE-RGB:CAPS">GDK_COLORSPACE_RGB</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">8</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">area</span><span class="symbol">.</span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">area</span><span class="symbol">.</span><span class="normal">height</span><span class="symbol">);</span>
|
191
191
|
|
192
192
|
<span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Scaling.html#gdk-pixbuf-composite-color">gdk_pixbuf_composite_color</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> dest</span><span class="symbol">,</span>
|
193
193
|
<span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">area</span><span class="symbol">.</span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">area</span><span class="symbol">.</span><span class="normal">height</span><span class="symbol">,</span>
|
@@ -204,7 +204,7 @@ as calling <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-scale" title
|
|
204
204
|
<span class="normal"> </span>
|
205
205
|
<span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html#gdk-pixbuf-unref">gdk_pixbuf_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">dest</span><span class="symbol">);</span>
|
206
206
|
<span class="normal"> </span>
|
207
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="
|
207
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
|
208
208
|
<span class="cbracket">}</span></pre></td>
|
209
209
|
</tr>
|
210
210
|
</tbody>
|
@@ -275,7 +275,7 @@ and <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-composite" title="g
|
|
275
275
|
</div>
|
276
276
|
<div class="refsect3">
|
277
277
|
<a name="gdk-pixbuf-scale-simple.returns"></a><h4>Returns</h4>
|
278
|
-
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="
|
278
|
+
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be
|
279
279
|
allocated for it. </p>
|
280
280
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
281
281
|
</div>
|
@@ -393,8 +393,8 @@ gdk_pixbuf_composite_color_simple (<em class="parameter"><code>const <a class="l
|
|
393
393
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-Scaling.html#GdkInterpType" title="enum GdkInterpType"><span class="type">GdkInterpType</span></a> interp_type</code></em>,
|
394
394
|
<em class="parameter"><code><span class="type">int</span> overall_alpha</code></em>,
|
395
395
|
<em class="parameter"><code><span class="type">int</span> check_size</code></em>,
|
396
|
-
<em class="parameter"><code><a href="
|
397
|
-
<em class="parameter"><code><a href="
|
396
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color1</code></em>,
|
397
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color2</code></em>);</pre>
|
398
398
|
<p>Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> by scaling <em class="parameter"><code>src</code></em>
|
399
399
|
to <em class="parameter"><code>dest_width</code></em>
|
400
400
|
x
|
@@ -457,7 +457,7 @@ gdk_pixbuf_composite_color_simple (<em class="parameter"><code>const <a class="l
|
|
457
457
|
</div>
|
458
458
|
<div class="refsect3">
|
459
459
|
<a name="gdk-pixbuf-composite-color-simple.returns"></a><h4>Returns</h4>
|
460
|
-
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="
|
460
|
+
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be
|
461
461
|
allocated for it. </p>
|
462
462
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
463
463
|
</div>
|
@@ -589,8 +589,8 @@ gdk_pixbuf_composite_color (<em class="parameter"><code>const <a class="link" hr
|
|
589
589
|
<em class="parameter"><code><span class="type">int</span> check_x</code></em>,
|
590
590
|
<em class="parameter"><code><span class="type">int</span> check_y</code></em>,
|
591
591
|
<em class="parameter"><code><span class="type">int</span> check_size</code></em>,
|
592
|
-
<em class="parameter"><code><a href="
|
593
|
-
<em class="parameter"><code><a href="
|
592
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color1</code></em>,
|
593
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color2</code></em>);</pre>
|
594
594
|
<p>Creates a transformation of the source image <em class="parameter"><code>src</code></em>
|
595
595
|
by scaling by
|
596
596
|
<em class="parameter"><code>scale_x</code></em>
|
@@ -742,7 +742,7 @@ result in a new pixbuf.</p>
|
|
742
742
|
</div>
|
743
743
|
<div class="refsect3">
|
744
744
|
<a name="gdk-pixbuf-rotate-simple.returns"></a><h4>Returns</h4>
|
745
|
-
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="
|
745
|
+
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
746
746
|
if not enough memory could be allocated for it. </p>
|
747
747
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
748
748
|
</div>
|
@@ -753,7 +753,7 @@ if not enough memory could be allocated for it. </p>
|
|
753
753
|
<a name="gdk-pixbuf-flip"></a><h3>gdk_pixbuf_flip ()</h3>
|
754
754
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
755
755
|
gdk_pixbuf_flip (<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>,
|
756
|
-
<em class="parameter"><code><a href="
|
756
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> horizontal</code></em>);</pre>
|
757
757
|
<p>Flips a pixbuf horizontally or vertically and returns the
|
758
758
|
result in a new pixbuf.</p>
|
759
759
|
<div class="refsect3">
|
@@ -772,7 +772,7 @@ result in a new pixbuf.</p>
|
|
772
772
|
</tr>
|
773
773
|
<tr>
|
774
774
|
<td class="parameter_name"><p>horizontal</p></td>
|
775
|
-
<td class="parameter_description"><p><a href="
|
775
|
+
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to flip horizontally, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to flip vertically</p></td>
|
776
776
|
<td class="parameter_annotations"> </td>
|
777
777
|
</tr>
|
778
778
|
</tbody>
|
@@ -780,7 +780,7 @@ result in a new pixbuf.</p>
|
|
780
780
|
</div>
|
781
781
|
<div class="refsect3">
|
782
782
|
<a name="gdk-pixbuf-flip.returns"></a><h4>Returns</h4>
|
783
|
-
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="
|
783
|
+
<p> the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
784
784
|
if not enough memory could be allocated for it. </p>
|
785
785
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
786
786
|
</div>
|
@@ -60,7 +60,7 @@
|
|
60
60
|
</tr>
|
61
61
|
<tr>
|
62
62
|
<td class="function_type">
|
63
|
-
<a href="
|
63
|
+
<a href="https://developer.gnome.org/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="https://developer.gnome.org/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="https://developer.gnome.org/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="https://developer.gnome.org/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="https://developer.gnome.org/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>
|
@@ -131,7 +131,7 @@
|
|
131
131
|
</tr>
|
132
132
|
<tr>
|
133
133
|
<td class="function_type">
|
134
|
-
<a href="
|
134
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
135
135
|
</td>
|
136
136
|
<td class="function_name">
|
137
137
|
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-set-option" title="gdk_pixbuf_set_option ()">gdk_pixbuf_set_option</a> <span class="c_punctuation">()</span>
|
@@ -139,14 +139,14 @@
|
|
139
139
|
</tr>
|
140
140
|
<tr>
|
141
141
|
<td class="function_type">
|
142
|
-
<a href="
|
142
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *
|
143
143
|
</td>
|
144
144
|
<td class="function_name">
|
145
145
|
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-options" title="gdk_pixbuf_get_options ()">gdk_pixbuf_get_options</a> <span class="c_punctuation">()</span>
|
146
146
|
</td>
|
147
147
|
</tr>
|
148
148
|
<tr>
|
149
|
-
<td class="function_type">const <a href="
|
149
|
+
<td class="function_type">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
150
150
|
</td>
|
151
151
|
<td class="function_name">
|
152
152
|
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-read-pixels" title="gdk_pixbuf_read_pixels ()">gdk_pixbuf_read_pixels</a> <span class="c_punctuation">()</span>
|
@@ -165,7 +165,7 @@
|
|
165
165
|
</colgroup>
|
166
166
|
<tbody>
|
167
167
|
<tr>
|
168
|
-
<td class="property_type"><a href="
|
168
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
169
169
|
<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>
|
170
170
|
<td class="property_flags">Read / Write / Construct Only</td>
|
171
171
|
</tr>
|
@@ -175,38 +175,38 @@
|
|
175
175
|
<td class="property_flags">Read / Write / Construct Only</td>
|
176
176
|
</tr>
|
177
177
|
<tr>
|
178
|
-
<td class="property_type"><a href="
|
178
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
|
179
179
|
<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>
|
180
180
|
<td class="property_flags">Read / Write / Construct Only</td>
|
181
181
|
</tr>
|
182
182
|
<tr>
|
183
|
-
<td class="property_type"><a href="
|
183
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
184
184
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--height" title="The “height” property">height</a></td>
|
185
185
|
<td class="property_flags">Read / Write / Construct Only</td>
|
186
186
|
</tr>
|
187
187
|
<tr>
|
188
|
-
<td class="property_type"><a href="
|
188
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
189
189
|
<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>
|
190
190
|
<td class="property_flags">Read / Write / Construct Only</td>
|
191
191
|
</tr>
|
192
192
|
<tr>
|
193
193
|
<td class="property_type">
|
194
|
-
<a href="
|
194
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *</td>
|
195
195
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixel-bytes" title="The “pixel-bytes” property">pixel-bytes</a></td>
|
196
196
|
<td class="property_flags">Read / Write / Construct Only</td>
|
197
197
|
</tr>
|
198
198
|
<tr>
|
199
|
-
<td class="property_type"><a href="
|
199
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></td>
|
200
200
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixels" title="The “pixels” property">pixels</a></td>
|
201
201
|
<td class="property_flags">Read / Write / Construct Only</td>
|
202
202
|
</tr>
|
203
203
|
<tr>
|
204
|
-
<td class="property_type"><a href="
|
204
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
205
205
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--rowstride" title="The “rowstride” property">rowstride</a></td>
|
206
206
|
<td class="property_flags">Read / Write / Construct Only</td>
|
207
207
|
</tr>
|
208
208
|
<tr>
|
209
|
-
<td class="property_type"><a href="
|
209
|
+
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
|
210
210
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--width" title="The “width” property">width</a></td>
|
211
211
|
<td class="property_flags">Read / Write / Construct Only</td>
|
212
212
|
</tr>
|
@@ -246,7 +246,7 @@
|
|
246
246
|
</div>
|
247
247
|
<div class="refsect1">
|
248
248
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
249
|
-
<pre class="screen"> <a href="
|
249
|
+
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
250
250
|
<span class="lineart">╰──</span> GdkPixbuf
|
251
251
|
</pre>
|
252
252
|
</div>
|
@@ -254,7 +254,7 @@
|
|
254
254
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
255
255
|
<p>
|
256
256
|
GdkPixbuf implements
|
257
|
-
<a href="
|
257
|
+
<a href="https://developer.gnome.org/gio/unstable/GIcon.html#GIcon-struct">GIcon</a> and <a href="https://developer.gnome.org/gio/unstable/GLoadableIcon.html#GLoadableIcon-struct">GLoadableIcon</a>.</p>
|
258
258
|
</div>
|
259
259
|
<div class="refsect1">
|
260
260
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.includes"></a><h2>Includes</h2>
|
@@ -321,16 +321,16 @@ for each pixel, your own code can take shortcuts.</p>
|
|
321
321
|
|
322
322
|
<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>
|
323
323
|
|
324
|
-
<span class="normal"> </span><span class="function"><a href="
|
325
|
-
<span class="normal"> </span><span class="function"><a href="
|
326
|
-
<span class="normal"> </span><span class="function"><a href="
|
327
|
-
<span class="normal"> </span><span class="function"><a href="
|
324
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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"> <a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-COLORSPACE-RGB:CAPS">GDK_COLORSPACE_RGB</a></span><span class="symbol">);</span>
|
325
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
326
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
327
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
328
328
|
|
329
329
|
<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>
|
330
330
|
<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>
|
331
331
|
|
332
|
-
<span class="normal"> </span><span class="function"><a href="
|
333
|
-
<span class="normal"> </span><span class="function"><a href="
|
332
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
333
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
334
334
|
|
335
335
|
<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>
|
336
336
|
<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>
|
@@ -414,7 +414,7 @@ gdk_pixbuf_get_n_channels (<em class="parameter"><code>const <a class="link" hre
|
|
414
414
|
<hr>
|
415
415
|
<div class="refsect2">
|
416
416
|
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
|
417
|
-
<pre class="programlisting"><a href="
|
417
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
418
418
|
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>
|
419
419
|
<p>Queries whether a pixbuf has an alpha channel (opacity information).</p>
|
420
420
|
<div class="refsect3">
|
@@ -434,7 +434,7 @@ gdk_pixbuf_get_has_alpha (<em class="parameter"><code>const <a class="link" href
|
|
434
434
|
</div>
|
435
435
|
<div class="refsect3">
|
436
436
|
<a name="gdk-pixbuf-get-has-alpha.returns"></a><h4>Returns</h4>
|
437
|
-
<p> <a href="
|
437
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it has an alpha channel, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
438
438
|
</div>
|
439
439
|
</div>
|
440
440
|
<hr>
|
@@ -466,7 +466,7 @@ gdk_pixbuf_get_bits_per_sample (<em class="parameter"><code>const <a class="link
|
|
466
466
|
<hr>
|
467
467
|
<div class="refsect2">
|
468
468
|
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
|
469
|
-
<pre class="programlisting"><a href="
|
469
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
470
470
|
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>
|
471
471
|
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
472
472
|
<div class="refsect3">
|
@@ -497,9 +497,9 @@ pixbuf was created from read-only data. </p>
|
|
497
497
|
<hr>
|
498
498
|
<div class="refsect2">
|
499
499
|
<a name="gdk-pixbuf-get-pixels-with-length"></a><h3>gdk_pixbuf_get_pixels_with_length ()</h3>
|
500
|
-
<pre class="programlisting"><a href="
|
500
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *
|
501
501
|
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>,
|
502
|
-
<em class="parameter"><code><a href="
|
502
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *length</code></em>);</pre>
|
503
503
|
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
504
504
|
<p><span class="annotation">[<acronym title="Rename the original symbol's name to SYMBOL."><span class="acronym">rename-to</span></acronym> gdk_pixbuf_get_pixels]</span></p>
|
505
505
|
<div class="refsect3">
|
@@ -617,7 +617,7 @@ the start of a row and the start of the next row.</p>
|
|
617
617
|
<hr>
|
618
618
|
<div class="refsect2">
|
619
619
|
<a name="gdk-pixbuf-get-byte-length"></a><h3>gdk_pixbuf_get_byte_length ()</h3>
|
620
|
-
<pre class="programlisting"><a href="
|
620
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
|
621
621
|
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>
|
622
622
|
<p>Returns the length of the pixel data, in bytes.</p>
|
623
623
|
<div class="refsect3">
|
@@ -644,9 +644,9 @@ gdk_pixbuf_get_byte_length (<em class="parameter"><code>const <a class="link" hr
|
|
644
644
|
<hr>
|
645
645
|
<div class="refsect2">
|
646
646
|
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
|
647
|
-
<pre class="programlisting">const <a href="
|
647
|
+
<pre class="programlisting">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
648
648
|
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>,
|
649
|
-
<em class="parameter"><code>const <a href="
|
649
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
|
650
650
|
<p>Looks up <em class="parameter"><code>key</code></em>
|
651
651
|
in the list of options that may have been attached to the
|
652
652
|
<em class="parameter"><code>pixbuf</code></em>
|
@@ -687,22 +687,22 @@ contains image density information in dots per inch.</p>
|
|
687
687
|
<a name="gdk-pixbuf-get-option.returns"></a><h4>Returns</h4>
|
688
688
|
<p> the value associated with <em class="parameter"><code>key</code></em>
|
689
689
|
. This is a nul-terminated
|
690
|
-
string that should not be freed or <a href="
|
690
|
+
string that should not be freed or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em>
|
691
691
|
was not found.</p>
|
692
692
|
</div>
|
693
693
|
</div>
|
694
694
|
<hr>
|
695
695
|
<div class="refsect2">
|
696
696
|
<a name="gdk-pixbuf-set-option"></a><h3>gdk_pixbuf_set_option ()</h3>
|
697
|
-
<pre class="programlisting"><a href="
|
697
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
698
698
|
gdk_pixbuf_set_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>,
|
699
|
-
<em class="parameter"><code>const <a href="
|
700
|
-
<em class="parameter"><code>const <a href="
|
699
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
|
700
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
|
701
701
|
<p>Attaches a key/value pair as an option to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. If <em class="parameter"><code>key</code></em>
|
702
702
|
already
|
703
703
|
exists in the list of options attached to <em class="parameter"><code>pixbuf</code></em>
|
704
704
|
, the new value is
|
705
|
-
ignored and <a href="
|
705
|
+
ignored and <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned.</p>
|
706
706
|
<div class="refsect3">
|
707
707
|
<a name="gdk-pixbuf-set-option.parameters"></a><h4>Parameters</h4>
|
708
708
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -732,16 +732,16 @@ ignored and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gt
|
|
732
732
|
</div>
|
733
733
|
<div class="refsect3">
|
734
734
|
<a name="gdk-pixbuf-set-option.returns"></a><h4>Returns</h4>
|
735
|
-
<p> <a href="
|
735
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</p>
|
736
736
|
</div>
|
737
737
|
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
|
738
738
|
</div>
|
739
739
|
<hr>
|
740
740
|
<div class="refsect2">
|
741
741
|
<a name="gdk-pixbuf-get-options"></a><h3>gdk_pixbuf_get_options ()</h3>
|
742
|
-
<pre class="programlisting"><a href="
|
742
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *
|
743
743
|
gdk_pixbuf_get_options (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
744
|
-
<p>Returns a <a href="
|
744
|
+
<p>Returns a <a href="https://developer.gnome.org/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> with a list of all the options that may have been
|
745
745
|
attached to the <em class="parameter"><code>pixbuf</code></em>
|
746
746
|
when it was loaded, or that may have been
|
747
747
|
attached by another function using <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-set-option" title="gdk_pixbuf_set_option ()"><code class="function">gdk_pixbuf_set_option()</code></a>.</p>
|
@@ -763,7 +763,7 @@ attached by another function using <a class="link" href="gdk-pixbuf-The-GdkPixbu
|
|
763
763
|
</div>
|
764
764
|
<div class="refsect3">
|
765
765
|
<a name="gdk-pixbuf-get-options.returns"></a><h4>Returns</h4>
|
766
|
-
<p> a <a href="
|
766
|
+
<p> a <a href="https://developer.gnome.org/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> of key/values. </p>
|
767
767
|
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8 utf8]</span></p>
|
768
768
|
</div>
|
769
769
|
<p class="since">Since: <a class="link" href="api-index-2-32.html#api-index-2.32">2.32</a></p>
|
@@ -771,7 +771,7 @@ attached by another function using <a class="link" href="gdk-pixbuf-The-GdkPixbu
|
|
771
771
|
<hr>
|
772
772
|
<div class="refsect2">
|
773
773
|
<a name="gdk-pixbuf-read-pixels"></a><h3>gdk_pixbuf_read_pixels ()</h3>
|
774
|
-
<pre class="programlisting">const <a href="
|
774
|
+
<pre class="programlisting">const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
775
775
|
gdk_pixbuf_read_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>
|
776
776
|
<p>Returns a read-only pointer to the raw pixel data; must not be
|
777
777
|
modified. This function allows skipping the implicit copy that
|
@@ -800,7 +800,7 @@ pixbuf.</p>
|
|
800
800
|
<div class="refsect2">
|
801
801
|
<a name="GdkPixbufError"></a><h3>enum GdkPixbufError</h3>
|
802
802
|
<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
|
803
|
-
operations can cause errors in this domain, or in the <a href="
|
803
|
+
operations can cause errors in this domain, or in the <a href="https://developer.gnome.org/glib/unstable/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a>
|
804
804
|
domain.</p>
|
805
805
|
<div class="refsect3">
|
806
806
|
<a name="GdkPixbufError.members"></a><h4>Members</h4>
|
@@ -871,7 +871,7 @@ domain.</p>
|
|
871
871
|
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
|
872
872
|
</pre>
|
873
873
|
<p>Error domain used for pixbuf operations. Indicates that the error code
|
874
|
-
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="
|
874
|
+
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="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for
|
875
875
|
information on error domains and error codes.</p>
|
876
876
|
</div>
|
877
877
|
<hr>
|
@@ -954,7 +954,7 @@ one row and the start of the next).</p>
|
|
954
954
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.property-details"></a><h2>Property Details</h2>
|
955
955
|
<div class="refsect2">
|
956
956
|
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal">“bits-per-sample”</code> property</h3>
|
957
|
-
<pre class="programlisting"> “bits-per-sample” <a href="
|
957
|
+
<pre class="programlisting"> “bits-per-sample” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
958
958
|
<p>The number of bits per sample.
|
959
959
|
|
960
960
|
Currently only 8 bit per sample are supported.</p>
|
@@ -973,7 +973,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
973
973
|
<hr>
|
974
974
|
<div class="refsect2">
|
975
975
|
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">“has-alpha”</code> property</h3>
|
976
|
-
<pre class="programlisting"> “has-alpha” <a href="
|
976
|
+
<pre class="programlisting"> “has-alpha” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
|
977
977
|
<p>Whether the pixbuf has an alpha channel.</p>
|
978
978
|
<p>Flags: Read / Write / Construct Only</p>
|
979
979
|
<p>Default value: FALSE</p>
|
@@ -981,7 +981,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
981
981
|
<hr>
|
982
982
|
<div class="refsect2">
|
983
983
|
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">“height”</code> property</h3>
|
984
|
-
<pre class="programlisting"> “height” <a href="
|
984
|
+
<pre class="programlisting"> “height” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
985
985
|
<p>The number of rows of the pixbuf.</p>
|
986
986
|
<p>Flags: Read / Write / Construct Only</p>
|
987
987
|
<p>Allowed values: >= 1</p>
|
@@ -990,7 +990,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
990
990
|
<hr>
|
991
991
|
<div class="refsect2">
|
992
992
|
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">“n-channels”</code> property</h3>
|
993
|
-
<pre class="programlisting"> “n-channels” <a href="
|
993
|
+
<pre class="programlisting"> “n-channels” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
994
994
|
<p>The number of samples per pixel.
|
995
995
|
|
996
996
|
Currently, only 3 or 4 samples per pixel are supported.</p>
|
@@ -1001,21 +1001,21 @@ Currently, only 3 or 4 samples per pixel are supported.</p>
|
|
1001
1001
|
<hr>
|
1002
1002
|
<div class="refsect2">
|
1003
1003
|
<a name="GdkPixbuf--pixel-bytes"></a><h3>The <code class="literal">“pixel-bytes”</code> property</h3>
|
1004
|
-
<pre class="programlisting"> “pixel-bytes” <a href="
|
1004
|
+
<pre class="programlisting"> “pixel-bytes” <a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *</pre>
|
1005
1005
|
<p>Readonly pixel data.</p>
|
1006
1006
|
<p>Flags: Read / Write / Construct Only</p>
|
1007
1007
|
</div>
|
1008
1008
|
<hr>
|
1009
1009
|
<div class="refsect2">
|
1010
1010
|
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">“pixels”</code> property</h3>
|
1011
|
-
<pre class="programlisting"> “pixels” <a href="
|
1011
|
+
<pre class="programlisting"> “pixels” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a></pre>
|
1012
1012
|
<p>A pointer to the pixel data of the pixbuf.</p>
|
1013
1013
|
<p>Flags: Read / Write / Construct Only</p>
|
1014
1014
|
</div>
|
1015
1015
|
<hr>
|
1016
1016
|
<div class="refsect2">
|
1017
1017
|
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">“rowstride”</code> property</h3>
|
1018
|
-
<pre class="programlisting"> “rowstride” <a href="
|
1018
|
+
<pre class="programlisting"> “rowstride” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
1019
1019
|
<p>The number of bytes between the start of a row and
|
1020
1020
|
|
1021
1021
|
the start of the next row. This number must (obviously)
|
@@ -1027,7 +1027,7 @@ be at least as large as the width of the pixbuf.</p>
|
|
1027
1027
|
<hr>
|
1028
1028
|
<div class="refsect2">
|
1029
1029
|
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">“width”</code> property</h3>
|
1030
|
-
<pre class="programlisting"> “width” <a href="
|
1030
|
+
<pre class="programlisting"> “width” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
|
1031
1031
|
<p>The number of columns of the pixbuf.</p>
|
1032
1032
|
<p>Flags: Read / Write / Construct Only</p>
|
1033
1033
|
<p>Allowed values: >= 1</p>
|