gdk_pixbuf2 3.2.5-x86-mingw32 → 3.2.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING.LIB +502 -0
- data/README.md +30 -0
- data/Rakefile +5 -5
- data/gdk_pixbuf2.gemspec +42 -0
- data/lib/gdk_pixbuf2/deprecated.rb +9 -7
- data/lib/gdk_pixbuf2/loader.rb +10 -1
- data/lib/gdk_pixbuf2/pixbuf.rb +14 -12
- data/test/test-pixbuf.rb +2 -2
- 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/gdk-pixbuf-thumbnailer.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-features.h +2 -2
- 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/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 +3 -3
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +24 -20
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +4 -2
- 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 +75 -74
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +108 -105
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +133 -133
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +34 -34
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +43 -43
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +55 -55
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +14 -14
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +82 -82
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +15 -15
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +2 -2
- data/vendor/local/share/locale/ca@valencia/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/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/el/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/es/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/fur/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/he/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/id/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/kk/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/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/nb/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/oc/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/pt_BR/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/sr/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/tr/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 -135
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -73
- metadata +7 -18
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-Inline-data.html" title="Inline data">
|
10
10
|
<link rel="next" href="gdk-pixbuf-gdk-pixbuf-rendering.html" title="Rendering">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -119,7 +119,7 @@
|
|
119
119
|
</div>
|
120
120
|
<div class="refsect1">
|
121
121
|
<a name="gdk-pixbuf-Scaling.includes"></a><h2>Includes</h2>
|
122
|
-
<pre class="synopsis">#include <gdk-pixbuf/gdk-
|
122
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixdata.h>
|
123
123
|
</pre>
|
124
124
|
</div>
|
125
125
|
<div class="refsect1">
|
@@ -152,7 +152,7 @@ setting the <code class="literal">GDK_DISABLE_MEDIALIB</code> environment variab
|
|
152
152
|
<tbody>
|
153
153
|
<tr>
|
154
154
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
155
|
-
<td class="listing_code"><pre class="programlisting">Cd
|
155
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">Cd </span><span class="symbol">=</span><span class="normal"> Cs·As </span><span class="symbol">+</span><span class="normal"> </span><span class="function">Cd</span><span class="symbol">(</span><span class="number">1</span><span class="symbol">-</span><span class="normal">As</span><span class="symbol">)</span></pre></td>
|
156
156
|
</tr>
|
157
157
|
</tbody>
|
158
158
|
</table>
|
@@ -199,30 +199,30 @@ as calling <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-scale" title
|
|
199
199
|
22
|
200
200
|
23
|
201
201
|
24</pre></td>
|
202
|
-
<td class="listing_code"><pre class="programlisting">gboolean
|
203
|
-
<span class="function">expose_cb</span>
|
204
|
-
<span class="
|
205
|
-
GdkPixbuf
|
202
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">gboolean</span>
|
203
|
+
<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>
|
204
|
+
<span class="cbracket">{</span>
|
205
|
+
<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>
|
206
206
|
|
207
|
-
dest
|
207
|
+
<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"> FALSE</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>
|
208
208
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
209
|
+
<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>
|
210
|
+
<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>
|
211
|
+
<span class="normal"> </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">x</span><span class="symbol">,</span><span class="normal"> </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">y</span><span class="symbol">,</span>
|
212
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="type">double</span><span class="symbol">)</span><span class="normal"> widget</span><span class="symbol">-></span><span class="normal">allocation</span><span class="symbol">.</span><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>
|
213
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="type">double</span><span class="symbol">)</span><span class="normal"> widget</span><span class="symbol">-></span><span class="normal">allocation</span><span class="symbol">.</span><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>
|
214
|
+
<span class="normal"> <a href="gdk-pixbuf-Scaling.html#GDK-INTERP-BILINEAR:CAPS">GDK_INTERP_BILINEAR</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">255</span><span class="symbol">,</span>
|
215
|
+
<span class="normal"> event</span><span class="symbol">-></span><span class="normal">area</span><span class="symbol">.</span><span class="normal">x</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">y</span><span class="symbol">,</span><span class="normal"> </span><span class="number">16</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0xaaaaaa</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0x555555</span><span class="symbol">);</span>
|
216
216
|
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
<span class="
|
217
|
+
<span class="normal"> </span><span class="function">gdk_draw_pixbuf</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">-></span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> widget</span><span class="symbol">-></span><span class="normal">style</span><span class="symbol">-></span><span class="normal">fg_gc</span><span class="symbol">[</span><span class="normal">GTK_STATE_NORMAL</span><span class="symbol">],</span><span class="normal"> dest</span><span class="symbol">,</span>
|
218
|
+
<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">x</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">y</span><span class="symbol">,</span>
|
219
|
+
<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>
|
220
|
+
<span class="normal"> GDK_RGB_DITHER_NORMAL</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">x</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">y</span><span class="symbol">);</span>
|
221
|
+
<span class="normal"> </span>
|
222
|
+
<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>
|
223
|
+
<span class="normal"> </span>
|
224
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
225
|
+
<span class="cbracket">}</span></pre></td>
|
226
226
|
</tr>
|
227
227
|
</tbody>
|
228
228
|
</table>
|
@@ -298,9 +298,9 @@ and <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-composite" title="g
|
|
298
298
|
</div>
|
299
299
|
<div class="refsect3">
|
300
300
|
<a name="gdk-pixbuf-scale-simple.returns"></a><h4>Returns</h4>
|
301
|
-
<p>
|
301
|
+
<p>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code> if not enough memory could be
|
302
302
|
allocated for it. </p>
|
303
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
303
|
+
<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>
|
304
304
|
</div>
|
305
305
|
</div>
|
306
306
|
<hr>
|
@@ -416,8 +416,8 @@ gdk_pixbuf_composite_color_simple (<em class="parameter"><code>const <a class="l
|
|
416
416
|
<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>,
|
417
417
|
<em class="parameter"><code><span class="type">int</span> overall_alpha</code></em>,
|
418
418
|
<em class="parameter"><code><span class="type">int</span> check_size</code></em>,
|
419
|
-
<em class="parameter"><code><
|
420
|
-
<em class="parameter"><code><
|
419
|
+
<em class="parameter"><code><span class="type">guint32</span> color1</code></em>,
|
420
|
+
<em class="parameter"><code><span class="type">guint32</span> color2</code></em>);</pre>
|
421
421
|
<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>
|
422
422
|
to <em class="parameter"><code>dest_width</code></em>
|
423
423
|
x
|
@@ -480,7 +480,7 @@ gdk_pixbuf_composite_color_simple (<em class="parameter"><code>const <a class="l
|
|
480
480
|
</div>
|
481
481
|
<div class="refsect3">
|
482
482
|
<a name="gdk-pixbuf-composite-color-simple.returns"></a><h4>Returns</h4>
|
483
|
-
<p>
|
483
|
+
<p>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code> if not enough memory could be
|
484
484
|
allocated for it. </p>
|
485
485
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
486
486
|
</div>
|
@@ -612,8 +612,8 @@ gdk_pixbuf_composite_color (<em class="parameter"><code>const <a class="link" hr
|
|
612
612
|
<em class="parameter"><code><span class="type">int</span> check_x</code></em>,
|
613
613
|
<em class="parameter"><code><span class="type">int</span> check_y</code></em>,
|
614
614
|
<em class="parameter"><code><span class="type">int</span> check_size</code></em>,
|
615
|
-
<em class="parameter"><code><
|
616
|
-
<em class="parameter"><code><
|
615
|
+
<em class="parameter"><code><span class="type">guint32</span> color1</code></em>,
|
616
|
+
<em class="parameter"><code><span class="type">guint32</span> color2</code></em>);</pre>
|
617
617
|
<p>Creates a transformation of the source image <em class="parameter"><code>src</code></em>
|
618
618
|
by scaling by
|
619
619
|
<em class="parameter"><code>scale_x</code></em>
|
@@ -771,7 +771,7 @@ result in a new pixbuf.</p>
|
|
771
771
|
</div>
|
772
772
|
<div class="refsect3">
|
773
773
|
<a name="gdk-pixbuf-rotate-simple.returns"></a><h4>Returns</h4>
|
774
|
-
<p>
|
774
|
+
<p>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code>
|
775
775
|
if not enough memory could be allocated for it. </p>
|
776
776
|
<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>
|
777
777
|
</div>
|
@@ -782,7 +782,7 @@ if not enough memory could be allocated for it. </p>
|
|
782
782
|
<a name="gdk-pixbuf-flip"></a><h3>gdk_pixbuf_flip ()</h3>
|
783
783
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
784
784
|
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>,
|
785
|
-
<em class="parameter"><code><
|
785
|
+
<em class="parameter"><code><span class="type">gboolean</span> horizontal</code></em>);</pre>
|
786
786
|
<p>Flips a pixbuf horizontally or vertically and returns the
|
787
787
|
result in a new pixbuf.</p>
|
788
788
|
<div class="refsect3">
|
@@ -801,7 +801,7 @@ result in a new pixbuf.</p>
|
|
801
801
|
</tr>
|
802
802
|
<tr>
|
803
803
|
<td class="parameter_name"><p>horizontal</p></td>
|
804
|
-
<td class="parameter_description"><p><
|
804
|
+
<td class="parameter_description"><p><code class="literal">TRUE</code> to flip horizontally, <code class="literal">FALSE</code> to flip vertically</p></td>
|
805
805
|
<td class="parameter_annotations"> </td>
|
806
806
|
</tr>
|
807
807
|
</tbody>
|
@@ -809,7 +809,7 @@ result in a new pixbuf.</p>
|
|
809
809
|
</div>
|
810
810
|
<div class="refsect3">
|
811
811
|
<a name="gdk-pixbuf-flip.returns"></a><h4>Returns</h4>
|
812
|
-
<p>
|
812
|
+
<p>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <code class="literal">NULL</code>
|
813
813
|
if not enough memory could be allocated for it. </p>
|
814
814
|
<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>
|
815
815
|
</div>
|
@@ -939,6 +939,6 @@ To make them easier to use, their numerical values are the actual degrees.</p>
|
|
939
939
|
</div>
|
940
940
|
</div>
|
941
941
|
<div class="footer">
|
942
|
-
<hr>Generated by GTK-Doc V1.
|
942
|
+
<hr>Generated by GTK-Doc V1.27</div>
|
943
943
|
</body>
|
944
944
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-Versioning.html" title="Initialization and Versions">
|
10
10
|
<link rel="next" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html" title="Reference Counting and Memory Mangement">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -60,7 +60,7 @@
|
|
60
60
|
</tr>
|
61
61
|
<tr>
|
62
62
|
<td class="function_type">
|
63
|
-
<
|
63
|
+
<span class="returnvalue">gboolean</span>
|
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
|
-
<
|
79
|
+
<span class="returnvalue">guchar</span> *
|
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
|
-
<
|
87
|
+
<span class="returnvalue">guchar</span> *
|
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
|
-
<
|
119
|
+
<span class="returnvalue">gsize</span>
|
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 <
|
126
|
+
<td class="function_type">const <span class="returnvalue">gchar</span> *
|
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
|
-
<
|
134
|
+
<span class="returnvalue">gboolean</span>
|
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,7 +139,7 @@
|
|
139
139
|
</tr>
|
140
140
|
<tr>
|
141
141
|
<td class="function_type">
|
142
|
-
<
|
142
|
+
<span class="returnvalue">gboolean</span>
|
143
143
|
</td>
|
144
144
|
<td class="function_name">
|
145
145
|
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-remove-option" title="gdk_pixbuf_remove_option ()">gdk_pixbuf_remove_option</a> <span class="c_punctuation">()</span>
|
@@ -147,7 +147,7 @@
|
|
147
147
|
</tr>
|
148
148
|
<tr>
|
149
149
|
<td class="function_type">
|
150
|
-
<
|
150
|
+
<span class="returnvalue">GHashTable</span> *
|
151
151
|
</td>
|
152
152
|
<td class="function_name">
|
153
153
|
<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>
|
@@ -155,14 +155,14 @@
|
|
155
155
|
</tr>
|
156
156
|
<tr>
|
157
157
|
<td class="function_type">
|
158
|
-
<
|
158
|
+
<span class="returnvalue">gboolean</span>
|
159
159
|
</td>
|
160
160
|
<td class="function_name">
|
161
161
|
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-copy-options" title="gdk_pixbuf_copy_options ()">gdk_pixbuf_copy_options</a> <span class="c_punctuation">()</span>
|
162
162
|
</td>
|
163
163
|
</tr>
|
164
164
|
<tr>
|
165
|
-
<td class="function_type">const <
|
165
|
+
<td class="function_type">const <span class="returnvalue">guint8</span> *
|
166
166
|
</td>
|
167
167
|
<td class="function_name">
|
168
168
|
<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>
|
@@ -181,7 +181,7 @@
|
|
181
181
|
</colgroup>
|
182
182
|
<tbody>
|
183
183
|
<tr>
|
184
|
-
<td class="property_type"><
|
184
|
+
<td class="property_type"><span class="type">gint</span></td>
|
185
185
|
<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>
|
186
186
|
<td class="property_flags">Read / Write / Construct Only</td>
|
187
187
|
</tr>
|
@@ -191,38 +191,38 @@
|
|
191
191
|
<td class="property_flags">Read / Write / Construct Only</td>
|
192
192
|
</tr>
|
193
193
|
<tr>
|
194
|
-
<td class="property_type"><
|
194
|
+
<td class="property_type"><span class="type">gboolean</span></td>
|
195
195
|
<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>
|
196
196
|
<td class="property_flags">Read / Write / Construct Only</td>
|
197
197
|
</tr>
|
198
198
|
<tr>
|
199
|
-
<td class="property_type"><
|
199
|
+
<td class="property_type"><span class="type">gint</span></td>
|
200
200
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--height" title="The “height” property">height</a></td>
|
201
201
|
<td class="property_flags">Read / Write / Construct Only</td>
|
202
202
|
</tr>
|
203
203
|
<tr>
|
204
|
-
<td class="property_type"><
|
204
|
+
<td class="property_type"><span class="type">gint</span></td>
|
205
205
|
<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>
|
206
206
|
<td class="property_flags">Read / Write / Construct Only</td>
|
207
207
|
</tr>
|
208
208
|
<tr>
|
209
209
|
<td class="property_type">
|
210
|
-
<
|
210
|
+
<span class="type">GBytes</span> *</td>
|
211
211
|
<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>
|
212
212
|
<td class="property_flags">Read / Write / Construct Only</td>
|
213
213
|
</tr>
|
214
214
|
<tr>
|
215
|
-
<td class="property_type"><
|
215
|
+
<td class="property_type"><span class="type">gpointer</span></td>
|
216
216
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--pixels" title="The “pixels” property">pixels</a></td>
|
217
217
|
<td class="property_flags">Read / Write / Construct Only</td>
|
218
218
|
</tr>
|
219
219
|
<tr>
|
220
|
-
<td class="property_type"><
|
220
|
+
<td class="property_type"><span class="type">gint</span></td>
|
221
221
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--rowstride" title="The “rowstride” property">rowstride</a></td>
|
222
222
|
<td class="property_flags">Read / Write / Construct Only</td>
|
223
223
|
</tr>
|
224
224
|
<tr>
|
225
|
-
<td class="property_type"><
|
225
|
+
<td class="property_type"><span class="type">gint</span></td>
|
226
226
|
<td class="property_name"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf--width" title="The “width” property">width</a></td>
|
227
227
|
<td class="property_flags">Read / Write / Construct Only</td>
|
228
228
|
</tr>
|
@@ -262,7 +262,7 @@
|
|
262
262
|
</div>
|
263
263
|
<div class="refsect1">
|
264
264
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
265
|
-
<pre class="screen">
|
265
|
+
<pre class="screen"> GObject
|
266
266
|
<span class="lineart">╰──</span> GdkPixbuf
|
267
267
|
</pre>
|
268
268
|
</div>
|
@@ -270,7 +270,7 @@
|
|
270
270
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
271
271
|
<p>
|
272
272
|
GdkPixbuf implements
|
273
|
-
|
273
|
+
GIcon and GLoadableIcon.</p>
|
274
274
|
</div>
|
275
275
|
<div class="refsect1">
|
276
276
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.includes"></a><h2>Includes</h2>
|
@@ -329,34 +329,34 @@ for each pixel, your own code can take shortcuts.</p>
|
|
329
329
|
26
|
330
330
|
27
|
331
331
|
28</pre></td>
|
332
|
-
<td class="listing_code"><pre class="programlisting"><span class="
|
333
|
-
<span class="function">put_pixel</span>
|
334
|
-
<span class="
|
335
|
-
|
336
|
-
guchar
|
332
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
333
|
+
<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>
|
334
|
+
<span class="cbracket">{</span>
|
335
|
+
<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>
|
336
|
+
<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>
|
337
337
|
|
338
|
-
n_channels
|
338
|
+
<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>
|
339
339
|
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
340
|
+
<span class="normal"> </span><span class="function">g_assert</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>
|
341
|
+
<span class="normal"> </span><span class="function">g_assert</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>
|
342
|
+
<span class="normal"> </span><span class="function">g_assert</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>
|
343
|
+
<span class="normal"> </span><span class="function">g_assert</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>
|
344
344
|
|
345
|
-
width
|
346
|
-
height
|
345
|
+
<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>
|
346
|
+
<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>
|
347
347
|
|
348
|
-
|
349
|
-
|
348
|
+
<span class="normal"> </span><span class="function">g_assert</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>
|
349
|
+
<span class="normal"> </span><span class="function">g_assert</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>
|
350
350
|
|
351
|
-
rowstride
|
352
|
-
pixels
|
351
|
+
<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>
|
352
|
+
<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>
|
353
353
|
|
354
|
-
p
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
<span class="
|
354
|
+
<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>
|
355
|
+
<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>
|
356
|
+
<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>
|
357
|
+
<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>
|
358
|
+
<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>
|
359
|
+
<span class="cbracket">}</span></pre></td>
|
360
360
|
</tr>
|
361
361
|
</tbody>
|
362
362
|
</table>
|
@@ -430,7 +430,7 @@ gdk_pixbuf_get_n_channels (<em class="parameter"><code>const <a class="link" hre
|
|
430
430
|
<hr>
|
431
431
|
<div class="refsect2">
|
432
432
|
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
|
433
|
-
<pre class="programlisting"><
|
433
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
434
434
|
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>
|
435
435
|
<p>Queries whether a pixbuf has an alpha channel (opacity information).</p>
|
436
436
|
<div class="refsect3">
|
@@ -450,7 +450,7 @@ gdk_pixbuf_get_has_alpha (<em class="parameter"><code>const <a class="link" href
|
|
450
450
|
</div>
|
451
451
|
<div class="refsect3">
|
452
452
|
<a name="gdk-pixbuf-get-has-alpha.returns"></a><h4>Returns</h4>
|
453
|
-
<p> <
|
453
|
+
<p> <code class="literal">TRUE</code> if it has an alpha channel, <code class="literal">FALSE</code> otherwise.</p>
|
454
454
|
</div>
|
455
455
|
</div>
|
456
456
|
<hr>
|
@@ -482,7 +482,7 @@ gdk_pixbuf_get_bits_per_sample (<em class="parameter"><code>const <a class="link
|
|
482
482
|
<hr>
|
483
483
|
<div class="refsect2">
|
484
484
|
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
|
485
|
-
<pre class="programlisting"><
|
485
|
+
<pre class="programlisting"><span class="returnvalue">guchar</span> *
|
486
486
|
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>
|
487
487
|
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
488
488
|
<div class="refsect3">
|
@@ -502,8 +502,8 @@ gdk_pixbuf_get_pixels (<em class="parameter"><code>const <a class="link" href="g
|
|
502
502
|
</div>
|
503
503
|
<div class="refsect3">
|
504
504
|
<a name="gdk-pixbuf-get-pixels.returns"></a><h4>Returns</h4>
|
505
|
-
<p>
|
506
|
-
Please see the section on <a class="
|
505
|
+
<p>A pointer to the pixbuf's pixel data.
|
506
|
+
Please see the section on <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#image-data" title="Image Data">image data</a> for information
|
507
507
|
about how the pixel data is stored in memory.</p>
|
508
508
|
<p>This function will cause an implicit copy of the pixbuf data if the
|
509
509
|
pixbuf was created from read-only data. </p>
|
@@ -513,9 +513,9 @@ pixbuf was created from read-only data. </p>
|
|
513
513
|
<hr>
|
514
514
|
<div class="refsect2">
|
515
515
|
<a name="gdk-pixbuf-get-pixels-with-length"></a><h3>gdk_pixbuf_get_pixels_with_length ()</h3>
|
516
|
-
<pre class="programlisting"><
|
516
|
+
<pre class="programlisting"><span class="returnvalue">guchar</span> *
|
517
517
|
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>,
|
518
|
-
<em class="parameter"><code><
|
518
|
+
<em class="parameter"><code><span class="type">guint</span> *length</code></em>);</pre>
|
519
519
|
<p>Queries a pointer to the pixel data of a pixbuf.</p>
|
520
520
|
<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>
|
521
521
|
<div class="refsect3">
|
@@ -534,7 +534,7 @@ gdk_pixbuf_get_pixels_with_length (<em class="parameter"><code>const <a class="l
|
|
534
534
|
</tr>
|
535
535
|
<tr>
|
536
536
|
<td class="parameter_name"><p>length</p></td>
|
537
|
-
<td class="parameter_description"><p>
|
537
|
+
<td class="parameter_description"><p>The length of the binary data. </p></td>
|
538
538
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
539
539
|
</tr>
|
540
540
|
</tbody>
|
@@ -542,8 +542,8 @@ gdk_pixbuf_get_pixels_with_length (<em class="parameter"><code>const <a class="l
|
|
542
542
|
</div>
|
543
543
|
<div class="refsect3">
|
544
544
|
<a name="gdk-pixbuf-get-pixels-with-length.returns"></a><h4>Returns</h4>
|
545
|
-
<p>
|
546
|
-
pixel data. Please see the section on <a class="
|
545
|
+
<p>A pointer to the pixbuf's
|
546
|
+
pixel data. Please see the section on <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#image-data" title="Image Data">image data</a>
|
547
547
|
for information about how the pixel data is stored in memory.</p>
|
548
548
|
<p>This function will cause an implicit copy of the pixbuf data if the
|
549
549
|
pixbuf was created from read-only data. </p>
|
@@ -633,7 +633,7 @@ the start of a row and the start of the next row.</p>
|
|
633
633
|
<hr>
|
634
634
|
<div class="refsect2">
|
635
635
|
<a name="gdk-pixbuf-get-byte-length"></a><h3>gdk_pixbuf_get_byte_length ()</h3>
|
636
|
-
<pre class="programlisting"><
|
636
|
+
<pre class="programlisting"><span class="returnvalue">gsize</span>
|
637
637
|
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>
|
638
638
|
<p>Returns the length of the pixel data, in bytes.</p>
|
639
639
|
<div class="refsect3">
|
@@ -660,9 +660,9 @@ gdk_pixbuf_get_byte_length (<em class="parameter"><code>const <a class="link" hr
|
|
660
660
|
<hr>
|
661
661
|
<div class="refsect2">
|
662
662
|
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
|
663
|
-
<pre class="programlisting">const <
|
663
|
+
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
664
664
|
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>,
|
665
|
-
<em class="parameter"><code>const <
|
665
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
|
666
666
|
<p>Looks up <em class="parameter"><code>key</code></em>
|
667
667
|
in the list of options that may have been attached to the
|
668
668
|
<em class="parameter"><code>pixbuf</code></em>
|
@@ -705,22 +705,22 @@ EXIF tag.</p>
|
|
705
705
|
<a name="gdk-pixbuf-get-option.returns"></a><h4>Returns</h4>
|
706
706
|
<p> the value associated with <em class="parameter"><code>key</code></em>
|
707
707
|
. This is a nul-terminated
|
708
|
-
string that should not be freed or <
|
708
|
+
string that should not be freed or <code class="literal">NULL</code> if <em class="parameter"><code>key</code></em>
|
709
709
|
was not found.</p>
|
710
710
|
</div>
|
711
711
|
</div>
|
712
712
|
<hr>
|
713
713
|
<div class="refsect2">
|
714
714
|
<a name="gdk-pixbuf-set-option"></a><h3>gdk_pixbuf_set_option ()</h3>
|
715
|
-
<pre class="programlisting"><
|
715
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
716
716
|
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>,
|
717
|
-
<em class="parameter"><code>const <
|
718
|
-
<em class="parameter"><code>const <
|
717
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
|
718
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);</pre>
|
719
719
|
<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>
|
720
720
|
already
|
721
721
|
exists in the list of options attached to <em class="parameter"><code>pixbuf</code></em>
|
722
722
|
, the new value is
|
723
|
-
ignored and <
|
723
|
+
ignored and <code class="literal">FALSE</code> is returned.</p>
|
724
724
|
<div class="refsect3">
|
725
725
|
<a name="gdk-pixbuf-set-option.parameters"></a><h4>Parameters</h4>
|
726
726
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -750,16 +750,16 @@ ignored and <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="
|
|
750
750
|
</div>
|
751
751
|
<div class="refsect3">
|
752
752
|
<a name="gdk-pixbuf-set-option.returns"></a><h4>Returns</h4>
|
753
|
-
<p> <
|
753
|
+
<p> <code class="literal">TRUE</code> on success.</p>
|
754
754
|
</div>
|
755
755
|
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
|
756
756
|
</div>
|
757
757
|
<hr>
|
758
758
|
<div class="refsect2">
|
759
759
|
<a name="gdk-pixbuf-remove-option"></a><h3>gdk_pixbuf_remove_option ()</h3>
|
760
|
-
<pre class="programlisting"><
|
760
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
761
761
|
gdk_pixbuf_remove_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>,
|
762
|
-
<em class="parameter"><code>const <
|
762
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
|
763
763
|
<p>Remove the key/value pair option attached to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p>
|
764
764
|
<div class="refsect3">
|
765
765
|
<a name="gdk-pixbuf-remove-option.parameters"></a><h4>Parameters</h4>
|
@@ -785,16 +785,16 @@ gdk_pixbuf_remove_option (<em class="parameter"><code><a class="link" href="gdk-
|
|
785
785
|
</div>
|
786
786
|
<div class="refsect3">
|
787
787
|
<a name="gdk-pixbuf-remove-option.returns"></a><h4>Returns</h4>
|
788
|
-
<p> <
|
788
|
+
<p> <code class="literal">TRUE</code> if an option was removed, <code class="literal">FALSE</code> if not.</p>
|
789
789
|
</div>
|
790
790
|
<p class="since">Since: <a class="link" href="api-index-2-36.html#api-index-2.36">2.36</a></p>
|
791
791
|
</div>
|
792
792
|
<hr>
|
793
793
|
<div class="refsect2">
|
794
794
|
<a name="gdk-pixbuf-get-options"></a><h3>gdk_pixbuf_get_options ()</h3>
|
795
|
-
<pre class="programlisting"><
|
795
|
+
<pre class="programlisting"><span class="returnvalue">GHashTable</span> *
|
796
796
|
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>
|
797
|
-
<p>Returns a <
|
797
|
+
<p>Returns a <span class="type">GHashTable</span> with a list of all the options that may have been
|
798
798
|
attached to the <em class="parameter"><code>pixbuf</code></em>
|
799
799
|
when it was loaded, or that may have been
|
800
800
|
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>
|
@@ -816,7 +816,7 @@ attached by another function using <a class="link" href="gdk-pixbuf-The-GdkPixbu
|
|
816
816
|
</div>
|
817
817
|
<div class="refsect3">
|
818
818
|
<a name="gdk-pixbuf-get-options.returns"></a><h4>Returns</h4>
|
819
|
-
<p>
|
819
|
+
<p>a <span class="type">GHashTable</span> of key/values. </p>
|
820
820
|
<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>
|
821
821
|
</div>
|
822
822
|
<p class="since">Since: <a class="link" href="api-index-2-32.html#api-index-2.32">2.32</a></p>
|
@@ -824,7 +824,7 @@ attached by another function using <a class="link" href="gdk-pixbuf-The-GdkPixbu
|
|
824
824
|
<hr>
|
825
825
|
<div class="refsect2">
|
826
826
|
<a name="gdk-pixbuf-copy-options"></a><h3>gdk_pixbuf_copy_options ()</h3>
|
827
|
-
<pre class="programlisting"><
|
827
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
828
828
|
gdk_pixbuf_copy_options (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src_pixbuf</code></em>,
|
829
829
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *dest_pixbuf</code></em>);</pre>
|
830
830
|
<p>Copy the key/value pair options attached to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> to another.
|
@@ -855,14 +855,14 @@ applied, such as the "orientation" option after rotating the image.</p>
|
|
855
855
|
</div>
|
856
856
|
<div class="refsect3">
|
857
857
|
<a name="gdk-pixbuf-copy-options.returns"></a><h4>Returns</h4>
|
858
|
-
<p> <
|
858
|
+
<p> <code class="literal">TRUE</code> on success.</p>
|
859
859
|
</div>
|
860
860
|
<p class="since">Since: <a class="link" href="api-index-2-36.html#api-index-2.36">2.36</a></p>
|
861
861
|
</div>
|
862
862
|
<hr>
|
863
863
|
<div class="refsect2">
|
864
864
|
<a name="gdk-pixbuf-read-pixels"></a><h3>gdk_pixbuf_read_pixels ()</h3>
|
865
|
-
<pre class="programlisting">const <
|
865
|
+
<pre class="programlisting">const <span class="returnvalue">guint8</span> *
|
866
866
|
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>
|
867
867
|
<p>Returns a read-only pointer to the raw pixel data; must not be
|
868
868
|
modified. This function allows skipping the implicit copy that
|
@@ -891,7 +891,7 @@ pixbuf.</p>
|
|
891
891
|
<div class="refsect2">
|
892
892
|
<a name="GdkPixbufError"></a><h3>enum GdkPixbufError</h3>
|
893
893
|
<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
|
894
|
-
operations can cause errors in this domain, or in the <
|
894
|
+
operations can cause errors in this domain, or in the <span class="type">G_FILE_ERROR</span>
|
895
895
|
domain.</p>
|
896
896
|
<div class="refsect3">
|
897
897
|
<a name="GdkPixbufError.members"></a><h4>Members</h4>
|
@@ -962,7 +962,7 @@ domain.</p>
|
|
962
962
|
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
|
963
963
|
</pre>
|
964
964
|
<p>Error domain used for pixbuf operations. Indicates that the error code
|
965
|
-
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 <
|
965
|
+
will be in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbufError" title="enum GdkPixbufError"><span class="type">GdkPixbufError</span></a> enumeration. See <span class="type">GError</span> for
|
966
966
|
information on error domains and error codes.</p>
|
967
967
|
</div>
|
968
968
|
<hr>
|
@@ -1045,7 +1045,7 @@ one row and the start of the next).</p>
|
|
1045
1045
|
<a name="gdk-pixbuf-The-GdkPixbuf-Structure.property-details"></a><h2>Property Details</h2>
|
1046
1046
|
<div class="refsect2">
|
1047
1047
|
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal">“bits-per-sample”</code> property</h3>
|
1048
|
-
<pre class="programlisting"> “bits-per-sample” <
|
1048
|
+
<pre class="programlisting"> “bits-per-sample” <span class="type">gint</span></pre>
|
1049
1049
|
<p>The number of bits per sample.
|
1050
1050
|
|
1051
1051
|
Currently only 8 bit per sample are supported.</p>
|
@@ -1064,7 +1064,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
1064
1064
|
<hr>
|
1065
1065
|
<div class="refsect2">
|
1066
1066
|
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">“has-alpha”</code> property</h3>
|
1067
|
-
<pre class="programlisting"> “has-alpha” <
|
1067
|
+
<pre class="programlisting"> “has-alpha” <span class="type">gboolean</span></pre>
|
1068
1068
|
<p>Whether the pixbuf has an alpha channel.</p>
|
1069
1069
|
<p>Flags: Read / Write / Construct Only</p>
|
1070
1070
|
<p>Default value: FALSE</p>
|
@@ -1072,7 +1072,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
1072
1072
|
<hr>
|
1073
1073
|
<div class="refsect2">
|
1074
1074
|
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">“height”</code> property</h3>
|
1075
|
-
<pre class="programlisting"> “height” <
|
1075
|
+
<pre class="programlisting"> “height” <span class="type">gint</span></pre>
|
1076
1076
|
<p>The number of rows of the pixbuf.</p>
|
1077
1077
|
<p>Flags: Read / Write / Construct Only</p>
|
1078
1078
|
<p>Allowed values: >= 1</p>
|
@@ -1081,7 +1081,7 @@ Currently only 8 bit per sample are supported.</p>
|
|
1081
1081
|
<hr>
|
1082
1082
|
<div class="refsect2">
|
1083
1083
|
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">“n-channels”</code> property</h3>
|
1084
|
-
<pre class="programlisting"> “n-channels” <
|
1084
|
+
<pre class="programlisting"> “n-channels” <span class="type">gint</span></pre>
|
1085
1085
|
<p>The number of samples per pixel.
|
1086
1086
|
|
1087
1087
|
Currently, only 3 or 4 samples per pixel are supported.</p>
|
@@ -1092,21 +1092,21 @@ Currently, only 3 or 4 samples per pixel are supported.</p>
|
|
1092
1092
|
<hr>
|
1093
1093
|
<div class="refsect2">
|
1094
1094
|
<a name="GdkPixbuf--pixel-bytes"></a><h3>The <code class="literal">“pixel-bytes”</code> property</h3>
|
1095
|
-
<pre class="programlisting"> “pixel-bytes” <
|
1095
|
+
<pre class="programlisting"> “pixel-bytes” <span class="type">GBytes</span> *</pre>
|
1096
1096
|
<p>Readonly pixel data.</p>
|
1097
1097
|
<p>Flags: Read / Write / Construct Only</p>
|
1098
1098
|
</div>
|
1099
1099
|
<hr>
|
1100
1100
|
<div class="refsect2">
|
1101
1101
|
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">“pixels”</code> property</h3>
|
1102
|
-
<pre class="programlisting"> “pixels” <
|
1102
|
+
<pre class="programlisting"> “pixels” <span class="type">gpointer</span></pre>
|
1103
1103
|
<p>A pointer to the pixel data of the pixbuf.</p>
|
1104
1104
|
<p>Flags: Read / Write / Construct Only</p>
|
1105
1105
|
</div>
|
1106
1106
|
<hr>
|
1107
1107
|
<div class="refsect2">
|
1108
1108
|
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">“rowstride”</code> property</h3>
|
1109
|
-
<pre class="programlisting"> “rowstride” <
|
1109
|
+
<pre class="programlisting"> “rowstride” <span class="type">gint</span></pre>
|
1110
1110
|
<p>The number of bytes between the start of a row and
|
1111
1111
|
|
1112
1112
|
the start of the next row. This number must (obviously)
|
@@ -1118,7 +1118,7 @@ be at least as large as the width of the pixbuf.</p>
|
|
1118
1118
|
<hr>
|
1119
1119
|
<div class="refsect2">
|
1120
1120
|
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">“width”</code> property</h3>
|
1121
|
-
<pre class="programlisting"> “width” <
|
1121
|
+
<pre class="programlisting"> “width” <span class="type">gint</span></pre>
|
1122
1122
|
<p>The number of columns of the pixbuf.</p>
|
1123
1123
|
<p>Flags: Read / Write / Construct Only</p>
|
1124
1124
|
<p>Allowed values: >= 1</p>
|
@@ -1127,6 +1127,6 @@ be at least as large as the width of the pixbuf.</p>
|
|
1127
1127
|
</div>
|
1128
1128
|
</div>
|
1129
1129
|
<div class="footer">
|
1130
|
-
<hr>Generated by GTK-Doc V1.
|
1130
|
+
<hr>Generated by GTK-Doc V1.27</div>
|
1131
1131
|
</body>
|
1132
1132
|
</html>
|