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
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<a href="
|
44
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
45
45
|
</td>
|
46
46
|
<td class="function_name">
|
47
47
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-savev" title="gdk_pixbuf_savev ()">gdk_pixbuf_savev</a> <span class="c_punctuation">()</span>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
</tr>
|
50
50
|
<tr>
|
51
51
|
<td class="function_type">
|
52
|
-
<a href="
|
52
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
53
53
|
</td>
|
54
54
|
<td class="function_name">
|
55
55
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()">gdk_pixbuf_save</a> <span class="c_punctuation">()</span>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
</tr>
|
58
58
|
<tr>
|
59
59
|
<td class="function_type">
|
60
|
-
<a href="
|
60
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
61
61
|
</td>
|
62
62
|
<td class="function_name">
|
63
63
|
<span class="c_punctuation">(</span><a class="link" href="gdk-pixbuf-File-saving.html#GdkPixbufSaveFunc" title="GdkPixbufSaveFunc ()">*GdkPixbufSaveFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
67
|
<td class="function_type">
|
68
|
-
<a href="
|
68
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
69
69
|
</td>
|
70
70
|
<td class="function_name">
|
71
71
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()">gdk_pixbuf_save_to_callback</a> <span class="c_punctuation">()</span>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</tr>
|
74
74
|
<tr>
|
75
75
|
<td class="function_type">
|
76
|
-
<a href="
|
76
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
77
77
|
</td>
|
78
78
|
<td class="function_name">
|
79
79
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callbackv" title="gdk_pixbuf_save_to_callbackv ()">gdk_pixbuf_save_to_callbackv</a> <span class="c_punctuation">()</span>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
</tr>
|
82
82
|
<tr>
|
83
83
|
<td class="function_type">
|
84
|
-
<a href="
|
84
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
85
85
|
</td>
|
86
86
|
<td class="function_name">
|
87
87
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-buffer" title="gdk_pixbuf_save_to_buffer ()">gdk_pixbuf_save_to_buffer</a> <span class="c_punctuation">()</span>
|
@@ -89,7 +89,7 @@
|
|
89
89
|
</tr>
|
90
90
|
<tr>
|
91
91
|
<td class="function_type">
|
92
|
-
<a href="
|
92
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
93
93
|
</td>
|
94
94
|
<td class="function_name">
|
95
95
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-bufferv" title="gdk_pixbuf_save_to_bufferv ()">gdk_pixbuf_save_to_bufferv</a> <span class="c_punctuation">()</span>
|
@@ -97,7 +97,7 @@
|
|
97
97
|
</tr>
|
98
98
|
<tr>
|
99
99
|
<td class="function_type">
|
100
|
-
<a href="
|
100
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
101
101
|
</td>
|
102
102
|
<td class="function_name">
|
103
103
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream" title="gdk_pixbuf_save_to_stream ()">gdk_pixbuf_save_to_stream</a> <span class="c_punctuation">()</span>
|
@@ -113,7 +113,7 @@
|
|
113
113
|
</tr>
|
114
114
|
<tr>
|
115
115
|
<td class="function_type">
|
116
|
-
<a href="
|
116
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
117
117
|
</td>
|
118
118
|
<td class="function_name">
|
119
119
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream-finish" title="gdk_pixbuf_save_to_stream_finish ()">gdk_pixbuf_save_to_stream_finish</a> <span class="c_punctuation">()</span>
|
@@ -139,17 +139,17 @@ to a socket or store it in a database.</p>
|
|
139
139
|
<a name="gdk-pixbuf-File-saving.functions_details"></a><h2>Functions</h2>
|
140
140
|
<div class="refsect2">
|
141
141
|
<a name="gdk-pixbuf-savev"></a><h3>gdk_pixbuf_savev ()</h3>
|
142
|
-
<pre class="programlisting"><a href="
|
142
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
143
143
|
gdk_pixbuf_savev (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
144
144
|
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
145
145
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
146
146
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
147
147
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
148
|
-
<em class="parameter"><code><a href="
|
148
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
149
149
|
<p>Saves pixbuf to a file in <em class="parameter"><code>type</code></em>
|
150
150
|
, which is currently "jpeg", "png", "tiff", "ico" or "bmp".
|
151
151
|
If <em class="parameter"><code>error</code></em>
|
152
|
-
is set, <a href="
|
152
|
+
is set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.
|
153
153
|
See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()"><code class="function">gdk_pixbuf_save()</code></a> for more details.</p>
|
154
154
|
<div class="refsect3">
|
155
155
|
<a name="gdk-pixbuf-savev.parameters"></a><h4>Parameters</h4>
|
@@ -177,7 +177,7 @@ See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gd
|
|
177
177
|
</tr>
|
178
178
|
<tr>
|
179
179
|
<td class="parameter_name"><p>option_keys</p></td>
|
180
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
180
|
+
<td class="parameter_description"><p> name of options to set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
181
181
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
182
182
|
</tr>
|
183
183
|
<tr>
|
@@ -187,7 +187,7 @@ See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gd
|
|
187
187
|
</tr>
|
188
188
|
<tr>
|
189
189
|
<td class="parameter_name"><p>error</p></td>
|
190
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
190
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
191
191
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
192
192
|
</tr>
|
193
193
|
</tbody>
|
@@ -201,11 +201,11 @@ See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gd
|
|
201
201
|
<hr>
|
202
202
|
<div class="refsect2">
|
203
203
|
<a name="gdk-pixbuf-save"></a><h3>gdk_pixbuf_save ()</h3>
|
204
|
-
<pre class="programlisting"><a href="
|
204
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
205
205
|
gdk_pixbuf_save (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
206
206
|
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
207
207
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
208
|
-
<em class="parameter"><code><a href="
|
208
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
209
209
|
<em class="parameter"><code>...</code></em>);</pre>
|
210
210
|
<p>Saves pixbuf to a file in format <em class="parameter"><code>type</code></em>
|
211
211
|
. By default, "jpeg", "png", "ico"
|
@@ -229,13 +229,13 @@ following way:</p>
|
|
229
229
|
<td class="listing_code"><pre class="programlisting"><span class="type">void</span><span class="normal"> </span><span class="function">add_if_writable</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GdkPixbufFormat</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">data</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">list</span><span class="symbol">)</span>
|
230
230
|
<span class="cbracket">{</span>
|
231
231
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-is-writable">gdk_pixbuf_format_is_writable</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">data</span><span class="symbol">))</span>
|
232
|
-
<span class="normal"> </span><span class="symbol">*</span><span class="normal">list </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
232
|
+
<span class="normal"> </span><span class="symbol">*</span><span class="normal">list </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-prepend">g_slist_prepend</a></span><span class="normal"> </span><span class="symbol">(*</span><span class="normal">list</span><span class="symbol">,</span><span class="normal"> data</span><span class="symbol">);</span>
|
233
233
|
<span class="cbracket">}</span>
|
234
234
|
|
235
235
|
<span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">formats </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-get-formats">gdk_pixbuf_get_formats</a></span><span class="normal"> </span><span class="symbol">();</span>
|
236
|
-
<span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">writable_formats </span><span class="symbol">=</span><span class="normal"> <a href="
|
237
|
-
<span class="function"><a href="
|
238
|
-
<span class="function"><a href="
|
236
|
+
<span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">writable_formats </span><span class="symbol">=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
237
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-foreach">g_slist_foreach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">formats</span><span class="symbol">,</span><span class="normal"> add_if_writable</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">writable_formats</span><span class="symbol">);</span>
|
238
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-free">g_slist_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">formats</span><span class="symbol">);</span></pre></td>
|
239
239
|
</tr>
|
240
240
|
</tbody>
|
241
241
|
</table>
|
@@ -243,9 +243,9 @@ following way:</p>
|
|
243
243
|
|
244
244
|
<p></p>
|
245
245
|
<p>If <em class="parameter"><code>error</code></em>
|
246
|
-
is set, <a href="
|
247
|
-
those 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 and those in the <a href="
|
248
|
-
<p>The variable argument list should be <a href="
|
246
|
+
is set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. Possible errors include
|
247
|
+
those 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 and those 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> domain.</p>
|
248
|
+
<p>The variable argument list should be <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated; if not empty,
|
249
249
|
it should contain pairs of strings that modify the save
|
250
250
|
parameters. For example:</p>
|
251
251
|
<div class="informalexample">
|
@@ -253,7 +253,7 @@ parameters. For example:</p>
|
|
253
253
|
<tbody>
|
254
254
|
<tr>
|
255
255
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
256
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"jpeg"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"quality"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"100"</span><span class="symbol">,</span><span class="normal"> <a href="
|
256
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"jpeg"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"quality"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"100"</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
257
257
|
</tr>
|
258
258
|
</tbody>
|
259
259
|
</table>
|
@@ -285,9 +285,9 @@ into base64.</p>
|
|
285
285
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">contents</span><span class="symbol">;</span>
|
286
286
|
<span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">contents_encode</span><span class="symbol">;</span>
|
287
287
|
<span class="usertype">gsize</span><span class="normal"> length</span><span class="symbol">;</span>
|
288
|
-
<span class="function"><a href="
|
289
|
-
<span class="normal">contents_encode </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
290
|
-
<span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"png"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"icc-profile"</span><span class="symbol">,</span><span class="normal"> contents_encode</span><span class="symbol">,</span><span class="normal"> <a href="
|
288
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-File-Utilities.html#g-file-get-contents">g_file_get_contents</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"/home/hughsie/.color/icc/L225W.icm"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">contents</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">length</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
289
|
+
<span class="normal">contents_encode </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Base64-Encoding.html#g-base64-encode">g_base64_encode</a></span><span class="normal"> </span><span class="symbol">((</span><span class="keyword">const</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar">guchar</a> </span><span class="symbol">*)</span><span class="normal"> contents</span><span class="symbol">,</span><span class="normal"> length</span><span class="symbol">);</span>
|
290
|
+
<span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"png"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"icc-profile"</span><span class="symbol">,</span><span class="normal"> contents_encode</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
291
291
|
</tr>
|
292
292
|
</tbody>
|
293
293
|
</table>
|
@@ -330,12 +330,12 @@ it produces a CUR instead of an ICO.</p>
|
|
330
330
|
</tr>
|
331
331
|
<tr>
|
332
332
|
<td class="parameter_name"><p>error</p></td>
|
333
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
333
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
334
334
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
335
335
|
</tr>
|
336
336
|
<tr>
|
337
337
|
<td class="parameter_name"><p>...</p></td>
|
338
|
-
<td class="parameter_description"><p>list of key-value save options, followed by <a href="
|
338
|
+
<td class="parameter_description"><p>list of key-value save options, followed by <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
339
339
|
<td class="parameter_annotations"> </td>
|
340
340
|
</tr>
|
341
341
|
</tbody>
|
@@ -349,17 +349,17 @@ it produces a CUR instead of an ICO.</p>
|
|
349
349
|
<hr>
|
350
350
|
<div class="refsect2">
|
351
351
|
<a name="GdkPixbufSaveFunc"></a><h3>GdkPixbufSaveFunc ()</h3>
|
352
|
-
<pre class="programlisting"><a href="
|
353
|
-
<span class="c_punctuation">(</span>*GdkPixbufSaveFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a href="
|
354
|
-
<em class="parameter"><code><a href="
|
355
|
-
<em class="parameter"><code><a href="
|
356
|
-
<em class="parameter"><code><a href="
|
352
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
353
|
+
<span class="c_punctuation">(</span>*GdkPixbufSaveFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
354
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
|
355
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
356
|
+
<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>
|
357
357
|
<p>Specifies the type of the function passed to
|
358
358
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a>. It is called once for each block of
|
359
359
|
bytes that is "written" by <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a>. If
|
360
|
-
successful it should return <a href="
|
360
|
+
successful it should return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. If an error occurs it should set
|
361
361
|
<em class="parameter"><code>error</code></em>
|
362
|
-
and return <a href="
|
362
|
+
and return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, in which case <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a>
|
363
363
|
will fail with the same error.</p>
|
364
364
|
<div class="refsect3">
|
365
365
|
<a name="GdkPixbufSaveFunc.parameters"></a><h4>Parameters</h4>
|
@@ -396,7 +396,7 @@ will fail with the same error.</p>
|
|
396
396
|
</div>
|
397
397
|
<div class="refsect3">
|
398
398
|
<a name="GdkPixbufSaveFunc.returns"></a><h4>Returns</h4>
|
399
|
-
<p> <a href="
|
399
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (with <em class="parameter"><code>error</code></em>
|
400
400
|
set) if failed.</p>
|
401
401
|
</div>
|
402
402
|
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
|
@@ -404,19 +404,19 @@ set) if failed.</p>
|
|
404
404
|
<hr>
|
405
405
|
<div class="refsect2">
|
406
406
|
<a name="gdk-pixbuf-save-to-callback"></a><h3>gdk_pixbuf_save_to_callback ()</h3>
|
407
|
-
<pre class="programlisting"><a href="
|
407
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
408
408
|
gdk_pixbuf_save_to_callback (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
409
409
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-File-saving.html#GdkPixbufSaveFunc" title="GdkPixbufSaveFunc ()"><span class="type">GdkPixbufSaveFunc</span></a> save_func</code></em>,
|
410
|
-
<em class="parameter"><code><a href="
|
410
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
411
411
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
412
|
-
<em class="parameter"><code><a href="
|
412
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
413
413
|
<em class="parameter"><code>...</code></em>);</pre>
|
414
414
|
<p>Saves pixbuf in format <em class="parameter"><code>type</code></em>
|
415
415
|
by feeding the produced data to a
|
416
416
|
callback. Can be used when you want to store the image to something
|
417
417
|
other than a file, such as an in-memory buffer or a socket.
|
418
418
|
If <em class="parameter"><code>error</code></em>
|
419
|
-
is set, <a href="
|
419
|
+
is set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. Possible errors
|
420
420
|
include those 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 and whatever the save
|
421
421
|
function generates.</p>
|
422
422
|
<p>See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()"><code class="function">gdk_pixbuf_save()</code></a> for more details.</p>
|
@@ -452,7 +452,7 @@ the save routine generates. </p></td>
|
|
452
452
|
</tr>
|
453
453
|
<tr>
|
454
454
|
<td class="parameter_name"><p>error</p></td>
|
455
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
455
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
456
456
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
457
457
|
</tr>
|
458
458
|
<tr>
|
@@ -472,18 +472,18 @@ the save routine generates. </p></td>
|
|
472
472
|
<hr>
|
473
473
|
<div class="refsect2">
|
474
474
|
<a name="gdk-pixbuf-save-to-callbackv"></a><h3>gdk_pixbuf_save_to_callbackv ()</h3>
|
475
|
-
<pre class="programlisting"><a href="
|
475
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
476
476
|
gdk_pixbuf_save_to_callbackv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
477
477
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-File-saving.html#GdkPixbufSaveFunc" title="GdkPixbufSaveFunc ()"><span class="type">GdkPixbufSaveFunc</span></a> save_func</code></em>,
|
478
|
-
<em class="parameter"><code><a href="
|
478
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
479
479
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
480
480
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
481
481
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
482
|
-
<em class="parameter"><code><a href="
|
482
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
483
483
|
<p>Saves pixbuf to a callback in format <em class="parameter"><code>type</code></em>
|
484
484
|
, which is currently "jpeg",
|
485
485
|
"png", "tiff", "ico" or "bmp". If <em class="parameter"><code>error</code></em>
|
486
|
-
is set, <a href="
|
486
|
+
is set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. See
|
487
487
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a> for more details.</p>
|
488
488
|
<div class="refsect3">
|
489
489
|
<a name="gdk-pixbuf-save-to-callbackv.parameters"></a><h4>Parameters</h4>
|
@@ -517,7 +517,7 @@ the save routine generates. </p></td>
|
|
517
517
|
</tr>
|
518
518
|
<tr>
|
519
519
|
<td class="parameter_name"><p>option_keys</p></td>
|
520
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
520
|
+
<td class="parameter_description"><p> name of options to set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
521
521
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td>
|
522
522
|
</tr>
|
523
523
|
<tr>
|
@@ -527,7 +527,7 @@ the save routine generates. </p></td>
|
|
527
527
|
</tr>
|
528
528
|
<tr>
|
529
529
|
<td class="parameter_name"><p>error</p></td>
|
530
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
530
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
531
531
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
532
532
|
</tr>
|
533
533
|
</tbody>
|
@@ -542,12 +542,12 @@ the save routine generates. </p></td>
|
|
542
542
|
<hr>
|
543
543
|
<div class="refsect2">
|
544
544
|
<a name="gdk-pixbuf-save-to-buffer"></a><h3>gdk_pixbuf_save_to_buffer ()</h3>
|
545
|
-
<pre class="programlisting"><a href="
|
545
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
546
546
|
gdk_pixbuf_save_to_buffer (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
547
|
-
<em class="parameter"><code><a href="
|
548
|
-
<em class="parameter"><code><a href="
|
547
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
|
548
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
549
549
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
550
|
-
<em class="parameter"><code><a href="
|
550
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
551
551
|
<em class="parameter"><code>...</code></em>);</pre>
|
552
552
|
<p>Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>
|
553
553
|
, which is currently "jpeg",
|
@@ -555,9 +555,9 @@ gdk_pixbuf_save_to_buffer (<em class="parameter"><code><a class="link" href="gdk
|
|
555
555
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a> to do the real work. Note that the buffer
|
556
556
|
is not nul-terminated and may contain embedded nuls.
|
557
557
|
If <em class="parameter"><code>error</code></em>
|
558
|
-
is set, <a href="
|
558
|
+
is set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned and <em class="parameter"><code>buffer</code></em>
|
559
559
|
will be set to
|
560
|
-
<a href="
|
560
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Possible errors include those 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>
|
561
561
|
domain.</p>
|
562
562
|
<p>See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()"><code class="function">gdk_pixbuf_save()</code></a> for more details.</p>
|
563
563
|
<div class="refsect3">
|
@@ -592,7 +592,7 @@ to the new buffer. </p></td>
|
|
592
592
|
</tr>
|
593
593
|
<tr>
|
594
594
|
<td class="parameter_name"><p>error</p></td>
|
595
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
595
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
596
596
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
597
597
|
</tr>
|
598
598
|
<tr>
|
@@ -612,14 +612,14 @@ to the new buffer. </p></td>
|
|
612
612
|
<hr>
|
613
613
|
<div class="refsect2">
|
614
614
|
<a name="gdk-pixbuf-save-to-bufferv"></a><h3>gdk_pixbuf_save_to_bufferv ()</h3>
|
615
|
-
<pre class="programlisting"><a href="
|
615
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
616
616
|
gdk_pixbuf_save_to_bufferv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
617
|
-
<em class="parameter"><code><a href="
|
618
|
-
<em class="parameter"><code><a href="
|
617
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
|
618
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
619
619
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
620
620
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
621
621
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
622
|
-
<em class="parameter"><code><a href="
|
622
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
623
623
|
<p>Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>
|
624
624
|
, which is currently "jpeg",
|
625
625
|
"tiff", "png", "ico" or "bmp". See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-buffer" title="gdk_pixbuf_save_to_buffer ()"><code class="function">gdk_pixbuf_save_to_buffer()</code></a>
|
@@ -655,7 +655,7 @@ for more details.</p>
|
|
655
655
|
</tr>
|
656
656
|
<tr>
|
657
657
|
<td class="parameter_name"><p>option_keys</p></td>
|
658
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
658
|
+
<td class="parameter_description"><p> name of options to set, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
659
659
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
660
660
|
</tr>
|
661
661
|
<tr>
|
@@ -665,7 +665,7 @@ for more details.</p>
|
|
665
665
|
</tr>
|
666
666
|
<tr>
|
667
667
|
<td class="parameter_name"><p>error</p></td>
|
668
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
668
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
669
669
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
670
670
|
</tr>
|
671
671
|
</tbody>
|
@@ -680,12 +680,12 @@ for more details.</p>
|
|
680
680
|
<hr>
|
681
681
|
<div class="refsect2">
|
682
682
|
<a name="gdk-pixbuf-save-to-stream"></a><h3>gdk_pixbuf_save_to_stream ()</h3>
|
683
|
-
<pre class="programlisting"><a href="
|
683
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
684
684
|
gdk_pixbuf_save_to_stream (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
685
|
-
<em class="parameter"><code><a href="
|
685
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
686
686
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
687
|
-
<em class="parameter"><code><a href="
|
688
|
-
<em class="parameter"><code><a href="
|
687
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
688
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
689
689
|
<em class="parameter"><code>...</code></em>);</pre>
|
690
690
|
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
691
691
|
to an output stream.</p>
|
@@ -693,9 +693,9 @@ gdk_pixbuf_save_to_stream (<em class="parameter"><code><a class="link" href="gdk
|
|
693
693
|
"bmp". See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-buffer" title="gdk_pixbuf_save_to_buffer ()"><code class="function">gdk_pixbuf_save_to_buffer()</code></a> for more details.</p>
|
694
694
|
<p>The <em class="parameter"><code>cancellable</code></em>
|
695
695
|
can be used to abort the operation from another
|
696
|
-
thread. If the operation was cancelled, the error <a href="
|
696
|
+
thread. If the operation was cancelled, the error <a href="https://developer.gnome.org/gio/unstable/gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a>
|
697
697
|
will be returned. Other possible errors are 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>
|
698
|
-
and <a href="
|
698
|
+
and <a href="https://developer.gnome.org/gio/unstable/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains. </p>
|
699
699
|
<p>The stream is not closed.</p>
|
700
700
|
<div class="refsect3">
|
701
701
|
<a name="gdk-pixbuf-save-to-stream.parameters"></a><h4>Parameters</h4>
|
@@ -713,7 +713,7 @@ and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/ht
|
|
713
713
|
</tr>
|
714
714
|
<tr>
|
715
715
|
<td class="parameter_name"><p>stream</p></td>
|
716
|
-
<td class="parameter_description"><p>a <a href="
|
716
|
+
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gio/unstable/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> to save the pixbuf to</p></td>
|
717
717
|
<td class="parameter_annotations"> </td>
|
718
718
|
</tr>
|
719
719
|
<tr>
|
@@ -723,12 +723,12 @@ and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/ht
|
|
723
723
|
</tr>
|
724
724
|
<tr>
|
725
725
|
<td class="parameter_name"><p>cancellable</p></td>
|
726
|
-
<td class="parameter_description"><p> optional <a href="
|
726
|
+
<td class="parameter_description"><p> optional <a href="https://developer.gnome.org/gio/unstable/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
727
727
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
728
728
|
</tr>
|
729
729
|
<tr>
|
730
730
|
<td class="parameter_name"><p>error</p></td>
|
731
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
731
|
+
<td class="parameter_description"><p> return location for error, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
732
732
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
733
733
|
</tr>
|
734
734
|
<tr>
|
@@ -741,7 +741,7 @@ and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/ht
|
|
741
741
|
</div>
|
742
742
|
<div class="refsect3">
|
743
743
|
<a name="gdk-pixbuf-save-to-stream.returns"></a><h4>Returns</h4>
|
744
|
-
<p> <a href="
|
744
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an
|
745
745
|
error was set.</p>
|
746
746
|
</div>
|
747
747
|
<p class="since">Since: <a class="link" href="api-index-2-14.html#api-index-2.14">2.14</a></p>
|
@@ -751,11 +751,11 @@ error was set.</p>
|
|
751
751
|
<a name="gdk-pixbuf-save-to-stream-async"></a><h3>gdk_pixbuf_save_to_stream_async ()</h3>
|
752
752
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
753
753
|
gdk_pixbuf_save_to_stream_async (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
754
|
-
<em class="parameter"><code><a href="
|
755
|
-
<em class="parameter"><code>const <a href="
|
756
|
-
<em class="parameter"><code><a href="
|
757
|
-
<em class="parameter"><code><a href="
|
758
|
-
<em class="parameter"><code><a href="
|
754
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
755
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type</code></em>,
|
756
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
757
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
758
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
759
759
|
<em class="parameter"><code>...</code></em>);</pre>
|
760
760
|
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
761
761
|
to an output stream asynchronously.</p>
|
@@ -780,7 +780,7 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
780
780
|
</tr>
|
781
781
|
<tr>
|
782
782
|
<td class="parameter_name"><p>stream</p></td>
|
783
|
-
<td class="parameter_description"><p>a <a href="
|
783
|
+
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gio/unstable/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> to which to save the pixbuf</p></td>
|
784
784
|
<td class="parameter_annotations"> </td>
|
785
785
|
</tr>
|
786
786
|
<tr>
|
@@ -790,12 +790,12 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
790
790
|
</tr>
|
791
791
|
<tr>
|
792
792
|
<td class="parameter_name"><p>cancellable</p></td>
|
793
|
-
<td class="parameter_description"><p> optional <a href="
|
793
|
+
<td class="parameter_description"><p> optional <a href="https://developer.gnome.org/gio/unstable/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
794
794
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
795
795
|
</tr>
|
796
796
|
<tr>
|
797
797
|
<td class="parameter_name"><p>callback</p></td>
|
798
|
-
<td class="parameter_description"><p>a <a href="
|
798
|
+
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</p></td>
|
799
799
|
<td class="parameter_annotations"> </td>
|
800
800
|
</tr>
|
801
801
|
<tr>
|
@@ -816,9 +816,9 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
816
816
|
<hr>
|
817
817
|
<div class="refsect2">
|
818
818
|
<a name="gdk-pixbuf-save-to-stream-finish"></a><h3>gdk_pixbuf_save_to_stream_finish ()</h3>
|
819
|
-
<pre class="programlisting"><a href="
|
820
|
-
gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="
|
821
|
-
<em class="parameter"><code><a href="
|
819
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
820
|
+
gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
|
821
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
822
822
|
<p>Finishes an asynchronous pixbuf save operation started with
|
823
823
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream-async" title="gdk_pixbuf_save_to_stream_async ()"><code class="function">gdk_pixbuf_save_to_stream_async()</code></a>.</p>
|
824
824
|
<div class="refsect3">
|
@@ -832,12 +832,12 @@ gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="/home/vag
|
|
832
832
|
<tbody>
|
833
833
|
<tr>
|
834
834
|
<td class="parameter_name"><p>async_result</p></td>
|
835
|
-
<td class="parameter_description"><p>a <a href="
|
835
|
+
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a></p></td>
|
836
836
|
<td class="parameter_annotations"> </td>
|
837
837
|
</tr>
|
838
838
|
<tr>
|
839
839
|
<td class="parameter_name"><p>error</p></td>
|
840
|
-
<td class="parameter_description"><p>a <a href="
|
840
|
+
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
841
841
|
<td class="parameter_annotations"> </td>
|
842
842
|
</tr>
|
843
843
|
</tbody>
|
@@ -845,7 +845,7 @@ gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="/home/vag
|
|
845
845
|
</div>
|
846
846
|
<div class="refsect3">
|
847
847
|
<a name="gdk-pixbuf-save-to-stream-finish.returns"></a><h4>Returns</h4>
|
848
|
-
<p> <a href="
|
848
|
+
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error was set.</p>
|
849
849
|
</div>
|
850
850
|
<p class="since">Since: 2.24</p>
|
851
851
|
</div>
|