36
36
<td valign="top" align="right"></td>
37
37
</tr></table></div>
38
<div class="refsynopsisdiv" title="Synopsis">
38
<div class="refsynopsisdiv">
39
39
<a name="gdk-pixbuf-file-saving.synopsis"></a><h2>Synopsis</h2>
40
40
<pre class="synopsis">
41
41
#include <gdk-pixbuf/gdk-pixbuf.h>
43
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdk-pixbuf-file-saving.html#gdk-pixbuf-savev" title="gdk_pixbuf_savev ()">gdk_pixbuf_savev</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
44
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
45
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
46
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
47
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
48
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
49
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdk-pixbuf-file-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()">gdk_pixbuf_save</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
50
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
51
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
52
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
53
<em class="parameter"><code>...</code></em>);
43
#define <a class="link" href="gdk-pixbuf-file-saving.html#gdk-pixbuf-savev" title="gdk_pixbuf_savev">gdk_pixbuf_savev</a>
44
#define <a class="link" href="gdk-pixbuf-file-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save">gdk_pixbuf_save</a>
54
45
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (<a class="link" href="gdk-pixbuf-file-saving.html#GdkPixbufSaveFunc" title="GdkPixbufSaveFunc ()">*GdkPixbufSaveFunc</a>) (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
55
46
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
56
47
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
89
80
<em class="parameter"><code>...</code></em>);
92
<div class="refsect1" title="Description">
83
<div class="refsect1">
93
84
<a name="gdk-pixbuf-file-saving.description"></a><h2>Description</h2>
97
<div class="refsect1" title="Details">
88
<div class="refsect1">
98
89
<a name="gdk-pixbuf-file-saving.details"></a><h2>Details</h2>
99
<div class="refsect2" title="gdk_pixbuf_savev ()">
100
<a name="gdk-pixbuf-savev"></a><h3>gdk_pixbuf_savev ()</h3>
101
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_savev (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
102
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
103
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
104
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
105
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
106
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
90
<div class="refsect2">
91
<a name="gdk-pixbuf-savev"></a><h3>gdk_pixbuf_savev</h3>
92
<pre class="programlisting">#define gdk_pixbuf_savev gdk_pixbuf_savev_utf8
108
95
Saves pixbuf to a file in <em class="parameter"><code>type</code></em>, which is currently "jpeg", "png", "tiff", "ico" or "bmp".
109
96
If <em class="parameter"><code>error</code></em> is set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> will be returned.
110
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.
97
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.
112
99
<div class="variablelist"><table border="0">
113
100
<col align="left" valign="top">
116
103
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
117
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
104
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
121
107
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
122
<td>name of file to save.
108
<td>name of file to save.</td>
126
111
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
127
<td>name of file format.
112
<td>name of file format.</td>
131
115
<td><p><span class="term"><em class="parameter"><code>option_keys</code></em> :</span></p></td>
132
<td>name of options to set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
116
<td>name of options to set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated</td>
136
119
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
137
<td>values for named options
120
<td>values for named options</td>
141
123
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
142
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
124
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
146
128
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
147
<td> whether an error was set
129
<td>whether an error was set</td>
154
<div class="refsect2" title="gdk_pixbuf_save ()">
155
<a name="gdk-pixbuf-save"></a><h3>gdk_pixbuf_save ()</h3>
156
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_save (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
157
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
158
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
159
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
160
<em class="parameter"><code>...</code></em>);</pre>
135
<div class="refsect2">
136
<a name="gdk-pixbuf-save"></a><h3>gdk_pixbuf_save</h3>
137
<pre class="programlisting">#define gdk_pixbuf_save gdk_pixbuf_save_utf8
162
140
Saves pixbuf to a file in format <em class="parameter"><code>type</code></em>. By default, "jpeg", "png", "ico"
163
141
and "bmp" are possible file formats to save in, but more formats may be
283
261
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
284
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
262
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
288
265
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
289
<td>name of file to save.
266
<td>name of file to save.</td>
293
269
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
294
<td>name of file format.
270
<td>name of file format.</td>
298
273
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
299
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
274
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
303
278
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
304
<td>list of key-value save options
279
<td>list of key-value save options</td>
308
282
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
309
<td> whether an error was set
283
<td>whether an error was set</td>
316
<div class="refsect2" title="GdkPixbufSaveFunc ()">
289
<div class="refsect2">
317
290
<a name="GdkPixbufSaveFunc"></a><h3>GdkPixbufSaveFunc ()</h3>
318
291
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*GdkPixbufSaveFunc) (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *buf</code></em>,
319
292
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
320
293
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
321
294
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
324
295
<div class="variablelist"><table border="0">
325
296
<col align="left" valign="top">
328
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
333
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
338
299
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
300
<td>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
343
304
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
348
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
305
<td>. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
356
<div class="refsect2" title="gdk_pixbuf_save_to_callback ()">
312
<div class="refsect2">
357
313
<a name="gdk-pixbuf-save-to-callback"></a><h3>gdk_pixbuf_save_to_callback ()</h3>
358
314
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_save_to_callback (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
359
315
<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>,
370
326
function generates.
373
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.
329
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.
375
331
<div class="variablelist"><table border="0">
376
332
<col align="left" valign="top">
379
335
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
380
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
336
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
384
339
<td><p><span class="term"><em class="parameter"><code>save_func</code></em> :</span></p></td>
385
<td> a function that is called to save each block of data that
386
the save routine generates. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
340
<td>a function that is called to save each block of data that
341
the save routine generates. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
390
345
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
391
<td>user data to pass to the save function.
346
<td>user data to pass to the save function.</td>
395
349
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
396
<td>name of file format.
350
<td>name of file format.</td>
400
353
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
401
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
354
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
405
358
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
406
<td>list of key-value save options
359
<td>list of key-value save options</td>
410
362
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
411
<td> whether an error was set
363
<td>whether an error was set</td>
417
367
<p class="since">Since 2.4</p>
420
<div class="refsect2" title="gdk_pixbuf_save_to_callbackv ()">
370
<div class="refsect2">
421
371
<a name="gdk-pixbuf-save-to-callbackv"></a><h3>gdk_pixbuf_save_to_callbackv ()</h3>
422
372
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_save_to_callbackv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
423
373
<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>,
438
388
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
439
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
389
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
443
392
<td><p><span class="term"><em class="parameter"><code>save_func</code></em> :</span></p></td>
444
<td> a function that is called to save each block of data that
445
the save routine generates. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
393
<td>a function that is called to save each block of data that
394
the save routine generates. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
449
398
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
450
<td>user data to pass to the save function.
399
<td>user data to pass to the save function. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> save_func]</span>
454
403
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
455
<td>name of file format.
404
<td>name of file format.</td>
459
407
<td><p><span class="term"><em class="parameter"><code>option_keys</code></em> :</span></p></td>
460
<td>name of options to set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
408
<td>name of options to set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated. <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>
464
412
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
465
<td>values for named options
413
<td>values for named options. <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>
469
417
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
470
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
418
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
474
422
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
475
<td> whether an error was set
423
<td>whether an error was set</td>
481
427
<p class="since">Since 2.4</p>
484
<div class="refsect2" title="gdk_pixbuf_save_to_buffer ()">
430
<div class="refsect2">
485
431
<a name="gdk-pixbuf-save-to-buffer"></a><h3>gdk_pixbuf_save_to_buffer ()</h3>
486
432
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_save_to_buffer (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
487
433
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
502
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.
448
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.
504
450
<div class="variablelist"><table border="0">
505
451
<col align="left" valign="top">
508
454
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
509
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
455
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
513
458
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
514
<td>location to receive a pointer to the new buffer.
459
<td>location to receive a pointer to the new buffer.</td>
518
462
<td><p><span class="term"><em class="parameter"><code>buffer_size</code></em> :</span></p></td>
519
<td>location to receive the size of the new buffer.
463
<td>location to receive the size of the new buffer.</td>
523
466
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
524
<td>name of file format.
467
<td>name of file format.</td>
528
470
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
529
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
471
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
533
475
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
534
<td>list of key-value save options
476
<td>list of key-value save options</td>
538
479
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
539
<td> whether an error was set
480
<td>whether an error was set</td>
545
484
<p class="since">Since 2.4</p>
548
<div class="refsect2" title="gdk_pixbuf_save_to_bufferv ()">
487
<div class="refsect2">
549
488
<a name="gdk-pixbuf-save-to-bufferv"></a><h3>gdk_pixbuf_save_to_bufferv ()</h3>
550
489
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_save_to_bufferv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
551
490
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
566
505
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
567
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.
506
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
571
509
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
572
<td>location to receive a pointer to the new buffer.
510
<td>location to receive a pointer to the new buffer.</td>
576
513
<td><p><span class="term"><em class="parameter"><code>buffer_size</code></em> :</span></p></td>
577
<td>location to receive the size of the new buffer.
514
<td>location to receive the size of the new buffer.</td>
581
517
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
582
<td>name of file format.
518
<td>name of file format.</td>
586
521
<td><p><span class="term"><em class="parameter"><code>option_keys</code></em> :</span></p></td>
587
<td>name of options to set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
522
<td>name of options to set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated</td>
591
525
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
592
<td>values for named options
526
<td>values for named options</td>
596
529
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
597
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
530
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
601
534
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
602
<td> whether an error was set
535
<td>whether an error was set</td>
608
539
<p class="since">Since 2.4</p>
611
<div class="refsect2" title="gdk_pixbuf_save_to_stream ()">
542
<div class="refsect2">
612
543
<a name="gdk-pixbuf-save-to-stream"></a><h3>gdk_pixbuf_save_to_stream ()</h3>
613
544
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_save_to_stream (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
614
545
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> *stream</code></em>,
644
575
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
645
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> to save the pixbuf to
576
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> to save the pixbuf to</td>
649
579
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
650
<td>name of file format
580
<td>name of file format</td>
654
583
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
655
<td>optional <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore
584
<td>optional <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</td>
659
587
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
660
<td> return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
588
<td>return location for error, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
664
592
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
665
<td>list of key-value save options
593
<td>list of key-value save options</td>
669
596
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
670
<td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an
598
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the pixbuf was saved successfully, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an