gdk_pixbuf2 3.2.1-x86-mingw32 → 3.2.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/dependency-check/Rakefile +1 -2
- data/lib/gdk_pixbuf2/pixbuf.rb +19 -3
- data/test/test-pixbuf.rb +22 -5
- 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-enum-types.h +1 -1
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +20 -18
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +47 -47
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +2 -2
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +2 -2
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/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 +103 -103
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +22 -22
- 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 +51 -51
- 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 +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +59 -59
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +11 -11
- 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
- data/vendor/local/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer +2 -2
- metadata +7 -7
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<a href="
|
44
|
+
<a href="../glib/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="../glib/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="../glib/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="../glib/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="../glib/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="../glib/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="../glib/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="../glib/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>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</tr>
|
106
106
|
<tr>
|
107
107
|
<td class="function_type">
|
108
|
-
<a href="
|
108
|
+
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
109
109
|
</td>
|
110
110
|
<td class="function_name">
|
111
111
|
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-streamv" title="gdk_pixbuf_save_to_streamv ()">gdk_pixbuf_save_to_streamv</a> <span class="c_punctuation">()</span>
|
@@ -129,7 +129,7 @@
|
|
129
129
|
</tr>
|
130
130
|
<tr>
|
131
131
|
<td class="function_type">
|
132
|
-
<a href="
|
132
|
+
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
133
133
|
</td>
|
134
134
|
<td class="function_name">
|
135
135
|
<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>
|
@@ -155,17 +155,17 @@ to a socket or store it in a database.</p>
|
|
155
155
|
<a name="gdk-pixbuf-File-saving.functions_details"></a><h2>Functions</h2>
|
156
156
|
<div class="refsect2">
|
157
157
|
<a name="gdk-pixbuf-savev"></a><h3>gdk_pixbuf_savev ()</h3>
|
158
|
-
<pre class="programlisting"><a href="
|
158
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
159
159
|
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>,
|
160
160
|
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
161
161
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
162
162
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
163
163
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
164
|
-
<em class="parameter"><code><a href="
|
164
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
165
165
|
<p>Saves pixbuf to a file in <em class="parameter"><code>type</code></em>
|
166
166
|
, which is currently "jpeg", "png", "tiff", "ico" or "bmp".
|
167
167
|
If <em class="parameter"><code>error</code></em>
|
168
|
-
is set, <a href="
|
168
|
+
is set, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.
|
169
169
|
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>
|
170
170
|
<div class="refsect3">
|
171
171
|
<a name="gdk-pixbuf-savev.parameters"></a><h4>Parameters</h4>
|
@@ -193,7 +193,7 @@ See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gd
|
|
193
193
|
</tr>
|
194
194
|
<tr>
|
195
195
|
<td class="parameter_name"><p>option_keys</p></td>
|
196
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
196
|
+
<td class="parameter_description"><p> name of options to set, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
197
197
|
<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>
|
198
198
|
</tr>
|
199
199
|
<tr>
|
@@ -203,7 +203,7 @@ See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gd
|
|
203
203
|
</tr>
|
204
204
|
<tr>
|
205
205
|
<td class="parameter_name"><p>error</p></td>
|
206
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
206
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
207
207
|
<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>
|
208
208
|
</tr>
|
209
209
|
</tbody>
|
@@ -217,11 +217,11 @@ See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gd
|
|
217
217
|
<hr>
|
218
218
|
<div class="refsect2">
|
219
219
|
<a name="gdk-pixbuf-save"></a><h3>gdk_pixbuf_save ()</h3>
|
220
|
-
<pre class="programlisting"><a href="
|
220
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
221
221
|
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>,
|
222
222
|
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
223
223
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
224
|
-
<em class="parameter"><code><a href="
|
224
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
225
225
|
<em class="parameter"><code>...</code></em>);</pre>
|
226
226
|
<p>Saves pixbuf to a file in format <em class="parameter"><code>type</code></em>
|
227
227
|
. By default, "jpeg", "png", "ico"
|
@@ -245,13 +245,13 @@ following way:</p>
|
|
245
245
|
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">void</span> <span class="function">add_if_writable</span> <span class="gtkdoc opt">(</span>GdkPixbufFormat <span class="gtkdoc opt">*</span>data<span class="gtkdoc opt">,</span> GSList <span class="gtkdoc opt">**</span>list<span class="gtkdoc opt">)</span>
|
246
246
|
<span class="gtkdoc opt">{</span>
|
247
247
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</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="gtkdoc opt">(</span>data<span class="gtkdoc opt">))</span>
|
248
|
-
<span class="gtkdoc opt">*</span>list <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
248
|
+
<span class="gtkdoc opt">*</span>list <span class="gtkdoc opt">=</span> <span class="function"><a href="../glib/glib-Singly-Linked-Lists.html#g-slist-prepend">g_slist_prepend</a></span> <span class="gtkdoc opt">(*</span>list<span class="gtkdoc opt">,</span> data<span class="gtkdoc opt">);</span>
|
249
249
|
<span class="gtkdoc opt">}</span>
|
250
250
|
|
251
251
|
GSList <span class="gtkdoc opt">*</span>formats <span class="gtkdoc opt">=</span> <span class="function"><a href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-get-formats">gdk_pixbuf_get_formats</a></span> <span class="gtkdoc opt">();</span>
|
252
252
|
GSList <span class="gtkdoc opt">*</span>writable_formats <span class="gtkdoc opt">=</span> NULL<span class="gtkdoc opt">;</span>
|
253
|
-
<span class="function"><a href="
|
254
|
-
<span class="function"><a href="
|
253
|
+
<span class="function"><a href="../glib/glib-Singly-Linked-Lists.html#g-slist-foreach">g_slist_foreach</a></span> <span class="gtkdoc opt">(</span>formats<span class="gtkdoc opt">,</span> add_if_writable<span class="gtkdoc opt">, &</span>writable_formats<span class="gtkdoc opt">);</span>
|
254
|
+
<span class="function"><a href="../glib/glib-Singly-Linked-Lists.html#g-slist-free">g_slist_free</a></span> <span class="gtkdoc opt">(</span>formats<span class="gtkdoc opt">);</span></pre></td>
|
255
255
|
</tr>
|
256
256
|
</tbody>
|
257
257
|
</table>
|
@@ -259,9 +259,9 @@ GSList <span class="gtkdoc opt">*</span>writable_formats <span class="gtkdoc opt
|
|
259
259
|
|
260
260
|
<p></p>
|
261
261
|
<p>If <em class="parameter"><code>error</code></em>
|
262
|
-
is set, <a href="
|
263
|
-
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="
|
264
|
-
<p>The variable argument list should be <a href="
|
262
|
+
is set, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. Possible errors include
|
263
|
+
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="../glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domain.</p>
|
264
|
+
<p>The variable argument list should be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated; if not empty,
|
265
265
|
it should contain pairs of strings that modify the save
|
266
266
|
parameters. For example:</p>
|
267
267
|
<div class="informalexample">
|
@@ -301,8 +301,8 @@ into base64.</p>
|
|
301
301
|
<td class="listing_code"><pre class="programlisting">gchar <span class="gtkdoc opt">*</span>contents<span class="gtkdoc opt">;</span>
|
302
302
|
gchar <span class="gtkdoc opt">*</span>contents_encode<span class="gtkdoc opt">;</span>
|
303
303
|
gsize length<span class="gtkdoc opt">;</span>
|
304
|
-
<span class="function"><a href="
|
305
|
-
contents_encode <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
304
|
+
<span class="function"><a href="../glib/glib-File-Utilities.html#g-file-get-contents">g_file_get_contents</a></span> <span class="gtkdoc opt">(</span><span class="string">"/home/hughsie/.color/icc/L225W.icm"</span><span class="gtkdoc opt">, &</span>contents<span class="gtkdoc opt">, &</span>length<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
|
305
|
+
contents_encode <span class="gtkdoc opt">=</span> <span class="function"><a href="../glib/glib-Base64-Encoding.html#g-base64-encode">g_base64_encode</a></span> <span class="gtkdoc opt">((</span><span class="gtkdoc kwb">const</span> guchar <span class="gtkdoc opt">*)</span> contents<span class="gtkdoc opt">,</span> length<span class="gtkdoc opt">);</span>
|
306
306
|
<span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span> <span class="gtkdoc opt">(</span>pixbuf<span class="gtkdoc opt">,</span> handle<span class="gtkdoc opt">,</span> <span class="string">"png"</span><span class="gtkdoc opt">, &</span>error<span class="gtkdoc opt">,</span> <span class="string">"icc-profile"</span><span class="gtkdoc opt">,</span> contents_encode<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span></pre></td>
|
307
307
|
</tr>
|
308
308
|
</tbody>
|
@@ -346,12 +346,12 @@ it produces a CUR instead of an ICO.</p>
|
|
346
346
|
</tr>
|
347
347
|
<tr>
|
348
348
|
<td class="parameter_name"><p>error</p></td>
|
349
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
349
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
350
350
|
<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>
|
351
351
|
</tr>
|
352
352
|
<tr>
|
353
353
|
<td class="parameter_name"><p>...</p></td>
|
354
|
-
<td class="parameter_description"><p>list of key-value save options, followed by <a href="
|
354
|
+
<td class="parameter_description"><p>list of key-value save options, followed by <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
355
355
|
<td class="parameter_annotations"> </td>
|
356
356
|
</tr>
|
357
357
|
</tbody>
|
@@ -365,17 +365,17 @@ it produces a CUR instead of an ICO.</p>
|
|
365
365
|
<hr>
|
366
366
|
<div class="refsect2">
|
367
367
|
<a name="GdkPixbufSaveFunc"></a><h3>GdkPixbufSaveFunc ()</h3>
|
368
|
-
<pre class="programlisting"><a href="
|
369
|
-
<span class="c_punctuation">(</span>*GdkPixbufSaveFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a href="
|
370
|
-
<em class="parameter"><code><a href="
|
371
|
-
<em class="parameter"><code><a href="
|
372
|
-
<em class="parameter"><code><a href="
|
368
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
369
|
+
<span class="c_punctuation">(</span>*GdkPixbufSaveFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
|
370
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
|
371
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
372
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
373
373
|
<p>Specifies the type of the function passed to
|
374
374
|
<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
|
375
375
|
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
|
376
|
-
successful it should return <a href="
|
376
|
+
successful it should return <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. If an error occurs it should set
|
377
377
|
<em class="parameter"><code>error</code></em>
|
378
|
-
and return <a href="
|
378
|
+
and return <a href="../glib/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>
|
379
379
|
will fail with the same error.</p>
|
380
380
|
<div class="refsect3">
|
381
381
|
<a name="GdkPixbufSaveFunc.parameters"></a><h4>Parameters</h4>
|
@@ -412,7 +412,7 @@ will fail with the same error.</p>
|
|
412
412
|
</div>
|
413
413
|
<div class="refsect3">
|
414
414
|
<a name="GdkPixbufSaveFunc.returns"></a><h4>Returns</h4>
|
415
|
-
<p> <a href="
|
415
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (with <em class="parameter"><code>error</code></em>
|
416
416
|
set) if failed.</p>
|
417
417
|
</div>
|
418
418
|
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
|
@@ -420,19 +420,19 @@ set) if failed.</p>
|
|
420
420
|
<hr>
|
421
421
|
<div class="refsect2">
|
422
422
|
<a name="gdk-pixbuf-save-to-callback"></a><h3>gdk_pixbuf_save_to_callback ()</h3>
|
423
|
-
<pre class="programlisting"><a href="
|
423
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
424
424
|
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>,
|
425
425
|
<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>,
|
426
|
-
<em class="parameter"><code><a href="
|
426
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
427
427
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
428
|
-
<em class="parameter"><code><a href="
|
428
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
429
429
|
<em class="parameter"><code>...</code></em>);</pre>
|
430
430
|
<p>Saves pixbuf in format <em class="parameter"><code>type</code></em>
|
431
431
|
by feeding the produced data to a
|
432
432
|
callback. Can be used when you want to store the image to something
|
433
433
|
other than a file, such as an in-memory buffer or a socket.
|
434
434
|
If <em class="parameter"><code>error</code></em>
|
435
|
-
is set, <a href="
|
435
|
+
is set, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. Possible errors
|
436
436
|
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
|
437
437
|
function generates.</p>
|
438
438
|
<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>
|
@@ -468,7 +468,7 @@ the save routine generates. </p></td>
|
|
468
468
|
</tr>
|
469
469
|
<tr>
|
470
470
|
<td class="parameter_name"><p>error</p></td>
|
471
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
471
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
472
472
|
<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>
|
473
473
|
</tr>
|
474
474
|
<tr>
|
@@ -488,18 +488,18 @@ the save routine generates. </p></td>
|
|
488
488
|
<hr>
|
489
489
|
<div class="refsect2">
|
490
490
|
<a name="gdk-pixbuf-save-to-callbackv"></a><h3>gdk_pixbuf_save_to_callbackv ()</h3>
|
491
|
-
<pre class="programlisting"><a href="
|
491
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
492
492
|
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>,
|
493
493
|
<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>,
|
494
|
-
<em class="parameter"><code><a href="
|
494
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
495
495
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
496
496
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
497
497
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
498
|
-
<em class="parameter"><code><a href="
|
498
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
499
499
|
<p>Saves pixbuf to a callback in format <em class="parameter"><code>type</code></em>
|
500
500
|
, which is currently "jpeg",
|
501
501
|
"png", "tiff", "ico" or "bmp". If <em class="parameter"><code>error</code></em>
|
502
|
-
is set, <a href="
|
502
|
+
is set, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned. See
|
503
503
|
<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>
|
504
504
|
<div class="refsect3">
|
505
505
|
<a name="gdk-pixbuf-save-to-callbackv.parameters"></a><h4>Parameters</h4>
|
@@ -533,7 +533,7 @@ the save routine generates. </p></td>
|
|
533
533
|
</tr>
|
534
534
|
<tr>
|
535
535
|
<td class="parameter_name"><p>option_keys</p></td>
|
536
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
536
|
+
<td class="parameter_description"><p> name of options to set, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
537
537
|
<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>
|
538
538
|
</tr>
|
539
539
|
<tr>
|
@@ -543,7 +543,7 @@ the save routine generates. </p></td>
|
|
543
543
|
</tr>
|
544
544
|
<tr>
|
545
545
|
<td class="parameter_name"><p>error</p></td>
|
546
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
546
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
547
547
|
<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>
|
548
548
|
</tr>
|
549
549
|
</tbody>
|
@@ -558,12 +558,12 @@ the save routine generates. </p></td>
|
|
558
558
|
<hr>
|
559
559
|
<div class="refsect2">
|
560
560
|
<a name="gdk-pixbuf-save-to-buffer"></a><h3>gdk_pixbuf_save_to_buffer ()</h3>
|
561
|
-
<pre class="programlisting"><a href="
|
561
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
562
562
|
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>,
|
563
|
-
<em class="parameter"><code><a href="
|
564
|
-
<em class="parameter"><code><a href="
|
563
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
|
564
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
565
565
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
566
|
-
<em class="parameter"><code><a href="
|
566
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
567
567
|
<em class="parameter"><code>...</code></em>);</pre>
|
568
568
|
<p>Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>
|
569
569
|
, which is currently "jpeg",
|
@@ -571,9 +571,9 @@ gdk_pixbuf_save_to_buffer (<em class="parameter"><code><a class="link" href="gdk
|
|
571
571
|
<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
|
572
572
|
is not nul-terminated and may contain embedded nuls.
|
573
573
|
If <em class="parameter"><code>error</code></em>
|
574
|
-
is set, <a href="
|
574
|
+
is set, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned and <em class="parameter"><code>buffer</code></em>
|
575
575
|
will be set to
|
576
|
-
<a href="
|
576
|
+
<a href="../glib/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>
|
577
577
|
domain.</p>
|
578
578
|
<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>
|
579
579
|
<div class="refsect3">
|
@@ -608,7 +608,7 @@ to the new buffer. </p></td>
|
|
608
608
|
</tr>
|
609
609
|
<tr>
|
610
610
|
<td class="parameter_name"><p>error</p></td>
|
611
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
611
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
612
612
|
<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>
|
613
613
|
</tr>
|
614
614
|
<tr>
|
@@ -628,14 +628,14 @@ to the new buffer. </p></td>
|
|
628
628
|
<hr>
|
629
629
|
<div class="refsect2">
|
630
630
|
<a name="gdk-pixbuf-save-to-bufferv"></a><h3>gdk_pixbuf_save_to_bufferv ()</h3>
|
631
|
-
<pre class="programlisting"><a href="
|
631
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
632
632
|
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>,
|
633
|
-
<em class="parameter"><code><a href="
|
634
|
-
<em class="parameter"><code><a href="
|
633
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
|
634
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
635
635
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
636
636
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
637
637
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
638
|
-
<em class="parameter"><code><a href="
|
638
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
639
639
|
<p>Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>
|
640
640
|
, which is currently "jpeg",
|
641
641
|
"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>
|
@@ -671,7 +671,7 @@ for more details.</p>
|
|
671
671
|
</tr>
|
672
672
|
<tr>
|
673
673
|
<td class="parameter_name"><p>option_keys</p></td>
|
674
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
674
|
+
<td class="parameter_description"><p> name of options to set, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
675
675
|
<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>
|
676
676
|
</tr>
|
677
677
|
<tr>
|
@@ -681,7 +681,7 @@ for more details.</p>
|
|
681
681
|
</tr>
|
682
682
|
<tr>
|
683
683
|
<td class="parameter_name"><p>error</p></td>
|
684
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
684
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
685
685
|
<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>
|
686
686
|
</tr>
|
687
687
|
</tbody>
|
@@ -696,12 +696,12 @@ for more details.</p>
|
|
696
696
|
<hr>
|
697
697
|
<div class="refsect2">
|
698
698
|
<a name="gdk-pixbuf-save-to-stream"></a><h3>gdk_pixbuf_save_to_stream ()</h3>
|
699
|
-
<pre class="programlisting"><a href="
|
699
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
700
700
|
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>,
|
701
|
-
<em class="parameter"><code><a href="
|
701
|
+
<em class="parameter"><code><a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
702
702
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
703
|
-
<em class="parameter"><code><a href="
|
704
|
-
<em class="parameter"><code><a href="
|
703
|
+
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
704
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
|
705
705
|
<em class="parameter"><code>...</code></em>);</pre>
|
706
706
|
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
707
707
|
to an output stream.</p>
|
@@ -709,9 +709,9 @@ gdk_pixbuf_save_to_stream (<em class="parameter"><code><a class="link" href="gdk
|
|
709
709
|
"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>
|
710
710
|
<p>The <em class="parameter"><code>cancellable</code></em>
|
711
711
|
can be used to abort the operation from another
|
712
|
-
thread. If the operation was cancelled, the error <a href="
|
712
|
+
thread. If the operation was cancelled, the error <a href="../gio/gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a>
|
713
713
|
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>
|
714
|
-
and <a href="
|
714
|
+
and <a href="../gio/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains. </p>
|
715
715
|
<p>The stream is not closed.</p>
|
716
716
|
<div class="refsect3">
|
717
717
|
<a name="gdk-pixbuf-save-to-stream.parameters"></a><h4>Parameters</h4>
|
@@ -729,7 +729,7 @@ and <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/ht
|
|
729
729
|
</tr>
|
730
730
|
<tr>
|
731
731
|
<td class="parameter_name"><p>stream</p></td>
|
732
|
-
<td class="parameter_description"><p>a <a href="
|
732
|
+
<td class="parameter_description"><p>a <a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> to save the pixbuf to</p></td>
|
733
733
|
<td class="parameter_annotations"> </td>
|
734
734
|
</tr>
|
735
735
|
<tr>
|
@@ -739,12 +739,12 @@ and <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/ht
|
|
739
739
|
</tr>
|
740
740
|
<tr>
|
741
741
|
<td class="parameter_name"><p>cancellable</p></td>
|
742
|
-
<td class="parameter_description"><p> optional <a href="
|
742
|
+
<td class="parameter_description"><p> optional <a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
743
743
|
<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>
|
744
744
|
</tr>
|
745
745
|
<tr>
|
746
746
|
<td class="parameter_name"><p>error</p></td>
|
747
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
747
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
748
748
|
<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>
|
749
749
|
</tr>
|
750
750
|
<tr>
|
@@ -757,7 +757,7 @@ and <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/ht
|
|
757
757
|
</div>
|
758
758
|
<div class="refsect3">
|
759
759
|
<a name="gdk-pixbuf-save-to-stream.returns"></a><h4>Returns</h4>
|
760
|
-
<p> <a href="
|
760
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an
|
761
761
|
error was set.</p>
|
762
762
|
</div>
|
763
763
|
<p class="since">Since: <a class="link" href="api-index-2-14.html#api-index-2.14">2.14</a></p>
|
@@ -765,14 +765,14 @@ error was set.</p>
|
|
765
765
|
<hr>
|
766
766
|
<div class="refsect2">
|
767
767
|
<a name="gdk-pixbuf-save-to-streamv"></a><h3>gdk_pixbuf_save_to_streamv ()</h3>
|
768
|
-
<pre class="programlisting"><a href="
|
768
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
769
769
|
gdk_pixbuf_save_to_streamv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
770
|
-
<em class="parameter"><code><a href="
|
770
|
+
<em class="parameter"><code><a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
771
771
|
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
772
772
|
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
773
773
|
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
774
|
-
<em class="parameter"><code><a href="
|
775
|
-
<em class="parameter"><code><a href="
|
774
|
+
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
775
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
776
776
|
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
777
777
|
to an output stream.</p>
|
778
778
|
<p>Supported file formats are currently "jpeg", "tiff", "png", "ico" or
|
@@ -793,7 +793,7 @@ gdk_pixbuf_save_to_streamv (<em class="parameter"><code><a class="link" href="gd
|
|
793
793
|
</tr>
|
794
794
|
<tr>
|
795
795
|
<td class="parameter_name"><p>stream</p></td>
|
796
|
-
<td class="parameter_description"><p>a <a href="
|
796
|
+
<td class="parameter_description"><p>a <a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> to save the pixbuf to</p></td>
|
797
797
|
<td class="parameter_annotations"> </td>
|
798
798
|
</tr>
|
799
799
|
<tr>
|
@@ -803,7 +803,7 @@ gdk_pixbuf_save_to_streamv (<em class="parameter"><code><a class="link" href="gd
|
|
803
803
|
</tr>
|
804
804
|
<tr>
|
805
805
|
<td class="parameter_name"><p>option_keys</p></td>
|
806
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
806
|
+
<td class="parameter_description"><p> name of options to set, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
807
807
|
<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>
|
808
808
|
</tr>
|
809
809
|
<tr>
|
@@ -813,12 +813,12 @@ gdk_pixbuf_save_to_streamv (<em class="parameter"><code><a class="link" href="gd
|
|
813
813
|
</tr>
|
814
814
|
<tr>
|
815
815
|
<td class="parameter_name"><p>cancellable</p></td>
|
816
|
-
<td class="parameter_description"><p> optional <a href="
|
816
|
+
<td class="parameter_description"><p> optional <a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
817
817
|
<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>
|
818
818
|
</tr>
|
819
819
|
<tr>
|
820
820
|
<td class="parameter_name"><p>error</p></td>
|
821
|
-
<td class="parameter_description"><p> return location for error, or <a href="
|
821
|
+
<td class="parameter_description"><p> return location for error, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
822
822
|
<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>
|
823
823
|
</tr>
|
824
824
|
</tbody>
|
@@ -826,7 +826,7 @@ gdk_pixbuf_save_to_streamv (<em class="parameter"><code><a class="link" href="gd
|
|
826
826
|
</div>
|
827
827
|
<div class="refsect3">
|
828
828
|
<a name="gdk-pixbuf-save-to-streamv.returns"></a><h4>Returns</h4>
|
829
|
-
<p> <a href="
|
829
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an
|
830
830
|
error was set.</p>
|
831
831
|
</div>
|
832
832
|
<p class="since">Since: <a class="link" href="api-index-2-36.html#api-index-2.36">2.36</a></p>
|
@@ -836,11 +836,11 @@ error was set.</p>
|
|
836
836
|
<a name="gdk-pixbuf-save-to-stream-async"></a><h3>gdk_pixbuf_save_to_stream_async ()</h3>
|
837
837
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
838
838
|
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>,
|
839
|
-
<em class="parameter"><code><a href="
|
840
|
-
<em class="parameter"><code>const <a href="
|
841
|
-
<em class="parameter"><code><a href="
|
842
|
-
<em class="parameter"><code><a href="
|
843
|
-
<em class="parameter"><code><a href="
|
839
|
+
<em class="parameter"><code><a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
840
|
+
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type</code></em>,
|
841
|
+
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
842
|
+
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
843
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
844
844
|
<em class="parameter"><code>...</code></em>);</pre>
|
845
845
|
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
846
846
|
to an output stream asynchronously.</p>
|
@@ -865,7 +865,7 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
865
865
|
</tr>
|
866
866
|
<tr>
|
867
867
|
<td class="parameter_name"><p>stream</p></td>
|
868
|
-
<td class="parameter_description"><p>a <a href="
|
868
|
+
<td class="parameter_description"><p>a <a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> to which to save the pixbuf</p></td>
|
869
869
|
<td class="parameter_annotations"> </td>
|
870
870
|
</tr>
|
871
871
|
<tr>
|
@@ -875,12 +875,12 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
875
875
|
</tr>
|
876
876
|
<tr>
|
877
877
|
<td class="parameter_name"><p>cancellable</p></td>
|
878
|
-
<td class="parameter_description"><p> optional <a href="
|
878
|
+
<td class="parameter_description"><p> optional <a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
879
879
|
<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>
|
880
880
|
</tr>
|
881
881
|
<tr>
|
882
882
|
<td class="parameter_name"><p>callback</p></td>
|
883
|
-
<td class="parameter_description"><p>a <a href="
|
883
|
+
<td class="parameter_description"><p>a <a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the pixbuf is saved</p></td>
|
884
884
|
<td class="parameter_annotations"> </td>
|
885
885
|
</tr>
|
886
886
|
<tr>
|
@@ -903,13 +903,13 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
903
903
|
<a name="gdk-pixbuf-save-to-streamv-async"></a><h3>gdk_pixbuf_save_to_streamv_async ()</h3>
|
904
904
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
905
905
|
gdk_pixbuf_save_to_streamv_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>,
|
906
|
-
<em class="parameter"><code><a href="
|
907
|
-
<em class="parameter"><code>const <a href="
|
908
|
-
<em class="parameter"><code><a href="
|
909
|
-
<em class="parameter"><code><a href="
|
910
|
-
<em class="parameter"><code><a href="
|
911
|
-
<em class="parameter"><code><a href="
|
912
|
-
<em class="parameter"><code><a href="
|
906
|
+
<em class="parameter"><code><a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
907
|
+
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *type</code></em>,
|
908
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **option_keys</code></em>,
|
909
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **option_values</code></em>,
|
910
|
+
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
911
|
+
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
912
|
+
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
913
913
|
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
914
914
|
to an output stream asynchronously.</p>
|
915
915
|
<p>For more details see <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-streamv" title="gdk_pixbuf_save_to_streamv ()"><code class="function">gdk_pixbuf_save_to_streamv()</code></a>, which is the synchronous
|
@@ -933,7 +933,7 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
933
933
|
</tr>
|
934
934
|
<tr>
|
935
935
|
<td class="parameter_name"><p>stream</p></td>
|
936
|
-
<td class="parameter_description"><p>a <a href="
|
936
|
+
<td class="parameter_description"><p>a <a href="../gio/GOutputStream.html#GOutputStream-struct"><span class="type">GOutputStream</span></a> to which to save the pixbuf</p></td>
|
937
937
|
<td class="parameter_annotations"> </td>
|
938
938
|
</tr>
|
939
939
|
<tr>
|
@@ -943,7 +943,7 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
943
943
|
</tr>
|
944
944
|
<tr>
|
945
945
|
<td class="parameter_name"><p>option_keys</p></td>
|
946
|
-
<td class="parameter_description"><p> name of options to set, <a href="
|
946
|
+
<td class="parameter_description"><p> name of options to set, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. </p></td>
|
947
947
|
<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>
|
948
948
|
</tr>
|
949
949
|
<tr>
|
@@ -953,12 +953,12 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
953
953
|
</tr>
|
954
954
|
<tr>
|
955
955
|
<td class="parameter_name"><p>cancellable</p></td>
|
956
|
-
<td class="parameter_description"><p> optional <a href="
|
956
|
+
<td class="parameter_description"><p> optional <a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
957
957
|
<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>
|
958
958
|
</tr>
|
959
959
|
<tr>
|
960
960
|
<td class="parameter_name"><p>callback</p></td>
|
961
|
-
<td class="parameter_description"><p>a <a href="
|
961
|
+
<td class="parameter_description"><p>a <a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the pixbuf is saved</p></td>
|
962
962
|
<td class="parameter_annotations"> </td>
|
963
963
|
</tr>
|
964
964
|
<tr>
|
@@ -974,9 +974,9 @@ You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-s
|
|
974
974
|
<hr>
|
975
975
|
<div class="refsect2">
|
976
976
|
<a name="gdk-pixbuf-save-to-stream-finish"></a><h3>gdk_pixbuf_save_to_stream_finish ()</h3>
|
977
|
-
<pre class="programlisting"><a href="
|
978
|
-
gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="
|
979
|
-
<em class="parameter"><code><a href="
|
977
|
+
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
978
|
+
gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
|
979
|
+
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
980
980
|
<p>Finishes an asynchronous pixbuf save operation started with
|
981
981
|
<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>
|
982
982
|
<div class="refsect3">
|
@@ -990,12 +990,12 @@ gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="/home/vag
|
|
990
990
|
<tbody>
|
991
991
|
<tr>
|
992
992
|
<td class="parameter_name"><p>async_result</p></td>
|
993
|
-
<td class="parameter_description"><p>a <a href="
|
993
|
+
<td class="parameter_description"><p>a <a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a></p></td>
|
994
994
|
<td class="parameter_annotations"> </td>
|
995
995
|
</tr>
|
996
996
|
<tr>
|
997
997
|
<td class="parameter_name"><p>error</p></td>
|
998
|
-
<td class="parameter_description"><p>a <a href="
|
998
|
+
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
999
999
|
<td class="parameter_annotations"> </td>
|
1000
1000
|
</tr>
|
1001
1001
|
</tbody>
|
@@ -1003,7 +1003,7 @@ gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="/home/vag
|
|
1003
1003
|
</div>
|
1004
1004
|
<div class="refsect3">
|
1005
1005
|
<a name="gdk-pixbuf-save-to-stream-finish.returns"></a><h4>Returns</h4>
|
1006
|
-
<p> <a href="
|
1006
|
+
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error was set.</p>
|
1007
1007
|
</div>
|
1008
1008
|
<p class="since">Since: 2.24</p>
|
1009
1009
|
</div>
|