~ubuntu-branches/ubuntu/precise/gdk-pixbuf/precise-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gdk-pixbuf/html/gdk-pixbuf-file-saving.html

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-03-08 15:32:48 UTC
  • mto: (1.3.2) (4.1.4 sid) (33.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20110308153248-ay551yh4g1j7xcnk
Tags: upstream-2.23.1
Import upstream version 2.23.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="rn01.html" title="API Reference">
9
9
<link rel="prev" href="gdk-pixbuf-file-loading.html" title="file-loading">
10
10
<link rel="next" href="gdk-pixbuf-creating.html" title="creating">
11
 
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
26
                  <a href="#gdk-pixbuf-file-saving.description" class="shortcut">Description</a>
27
27
</td></tr>
28
28
</table>
29
 
<div class="refentry" title="file-saving">
 
29
<div class="refentry">
30
30
<a name="gdk-pixbuf-file-saving"></a><div class="titlepage"></div>
31
31
<div class="refnamediv"><table width="100%"><tr>
32
32
<td valign="top">
35
35
</td>
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 &lt;gdk-pixbuf/gdk-pixbuf.h&gt;
42
42
 
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>);
90
81
</pre>
91
82
</div>
92
 
<div class="refsect1" title="Description">
 
83
<div class="refsect1">
93
84
<a name="gdk-pixbuf-file-saving.description"></a><h2>Description</h2>
94
85
<p>
95
86
</p>
96
87
</div>
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
 
93
</pre>
107
94
<p>
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.
111
98
</p>
112
99
<div class="variablelist"><table border="0">
113
100
<col align="left" valign="top">
114
101
<tbody>
115
102
<tr>
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>.
118
 
</td>
 
104
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
119
105
</tr>
120
106
<tr>
121
107
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
122
 
<td>name of file to save.
123
 
</td>
 
108
<td>name of file to save.</td>
124
109
</tr>
125
110
<tr>
126
111
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
127
 
<td>name of file format.
128
 
</td>
 
112
<td>name of file format.</td>
129
113
</tr>
130
114
<tr>
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
133
 
</td>
 
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>
134
117
</tr>
135
118
<tr>
136
119
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
137
 
<td>values for named options
138
 
</td>
 
120
<td>values for named options</td>
139
121
</tr>
140
122
<tr>
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>
143
125
</td>
144
126
</tr>
145
127
<tr>
146
128
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
147
 
<td> whether an error was set
148
 
</td>
 
129
<td>whether an error was set</td>
149
130
</tr>
150
131
</tbody>
151
132
</table></div>
152
133
</div>
153
134
<hr>
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
 
138
</pre>
161
139
<p>
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
281
259
<tbody>
282
260
<tr>
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>.
285
 
</td>
 
262
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
286
263
</tr>
287
264
<tr>
288
265
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
289
 
<td>name of file to save.
290
 
</td>
 
266
<td>name of file to save.</td>
291
267
</tr>
292
268
<tr>
293
269
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
294
 
<td>name of file format.
295
 
</td>
 
270
<td>name of file format.</td>
296
271
</tr>
297
272
<tr>
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>
300
275
</td>
301
276
</tr>
302
277
<tr>
303
278
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
304
 
<td>list of key-value save options
305
 
</td>
 
279
<td>list of key-value save options</td>
306
280
</tr>
307
281
<tr>
308
282
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
309
 
<td> whether an error was set
310
 
</td>
 
283
<td>whether an error was set</td>
311
284
</tr>
312
285
</tbody>
313
286
</table></div>
314
287
</div>
315
288
<hr>
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>
322
 
<p>
323
 
</p>
324
295
<div class="variablelist"><table border="0">
325
296
<col align="left" valign="top">
326
297
<tbody>
327
298
<tr>
328
 
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
329
 
<td>
330
 
</td>
331
 
</tr>
332
 
<tr>
333
 
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
334
 
<td>
335
 
</td>
336
 
</tr>
337
 
<tr>
338
299
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
339
 
<td>
 
300
<td>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
340
301
</td>
341
302
</tr>
342
303
<tr>
343
304
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
344
 
<td>
345
 
</td>
346
 
</tr>
347
 
<tr>
348
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
349
 
<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>
350
306
</td>
351
307
</tr>
352
308
</tbody>
353
309
</table></div>
354
310
</div>
355
311
<hr>
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.
371
327
</p>
372
328
<p>
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.
374
330
</p>
375
331
<div class="variablelist"><table border="0">
376
332
<col align="left" valign="top">
377
333
<tbody>
378
334
<tr>
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>.
381
 
</td>
 
336
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
382
337
</tr>
383
338
<tr>
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>
387
342
</td>
388
343
</tr>
389
344
<tr>
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.
392
 
</td>
 
346
<td>user data to pass to the save function.</td>
393
347
</tr>
394
348
<tr>
395
349
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
396
 
<td>name of file format.
397
 
</td>
 
350
<td>name of file format.</td>
398
351
</tr>
399
352
<tr>
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>
402
355
</td>
403
356
</tr>
404
357
<tr>
405
358
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
406
 
<td>list of key-value save options
407
 
</td>
 
359
<td>list of key-value save options</td>
408
360
</tr>
409
361
<tr>
410
362
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
411
 
<td> whether an error was set
412
 
 
413
 
</td>
 
363
<td>whether an error was set</td>
414
364
</tr>
415
365
</tbody>
416
366
</table></div>
417
367
<p class="since">Since 2.4</p>
418
368
</div>
419
369
<hr>
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>,
436
386
<tbody>
437
387
<tr>
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>.
440
 
</td>
 
389
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
441
390
</tr>
442
391
<tr>
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>
446
395
</td>
447
396
</tr>
448
397
<tr>
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>
451
400
</td>
452
401
</tr>
453
402
<tr>
454
403
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
455
 
<td>name of file format.
456
 
</td>
 
404
<td>name of file format.</td>
457
405
</tr>
458
406
<tr>
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>
461
409
</td>
462
410
</tr>
463
411
<tr>
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>
466
414
</td>
467
415
</tr>
468
416
<tr>
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>
471
419
</td>
472
420
</tr>
473
421
<tr>
474
422
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
475
 
<td> whether an error was set
476
 
 
477
 
</td>
 
423
<td>whether an error was set</td>
478
424
</tr>
479
425
</tbody>
480
426
</table></div>
481
427
<p class="since">Since 2.4</p>
482
428
</div>
483
429
<hr>
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>,
499
445
domain.
500
446
</p>
501
447
<p>
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.
503
449
</p>
504
450
<div class="variablelist"><table border="0">
505
451
<col align="left" valign="top">
506
452
<tbody>
507
453
<tr>
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>.
510
 
</td>
 
455
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
511
456
</tr>
512
457
<tr>
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.
515
 
</td>
 
459
<td>location to receive a pointer to the new buffer.</td>
516
460
</tr>
517
461
<tr>
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.
520
 
</td>
 
463
<td>location to receive the size of the new buffer.</td>
521
464
</tr>
522
465
<tr>
523
466
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
524
 
<td>name of file format.
525
 
</td>
 
467
<td>name of file format.</td>
526
468
</tr>
527
469
<tr>
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>
530
472
</td>
531
473
</tr>
532
474
<tr>
533
475
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
534
 
<td>list of key-value save options
535
 
</td>
 
476
<td>list of key-value save options</td>
536
477
</tr>
537
478
<tr>
538
479
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
539
 
<td> whether an error was set
540
 
 
541
 
</td>
 
480
<td>whether an error was set</td>
542
481
</tr>
543
482
</tbody>
544
483
</table></div>
545
484
<p class="since">Since 2.4</p>
546
485
</div>
547
486
<hr>
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>,
564
503
<tbody>
565
504
<tr>
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>.
568
 
</td>
 
506
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
569
507
</tr>
570
508
<tr>
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.
573
 
</td>
 
510
<td>location to receive a pointer to the new buffer.</td>
574
511
</tr>
575
512
<tr>
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.
578
 
</td>
 
514
<td>location to receive the size of the new buffer.</td>
579
515
</tr>
580
516
<tr>
581
517
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
582
 
<td>name of file format.
583
 
</td>
 
518
<td>name of file format.</td>
584
519
</tr>
585
520
<tr>
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
588
 
</td>
 
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>
589
523
</tr>
590
524
<tr>
591
525
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
592
 
<td>values for named options
593
 
</td>
 
526
<td>values for named options</td>
594
527
</tr>
595
528
<tr>
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>
598
531
</td>
599
532
</tr>
600
533
<tr>
601
534
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
602
 
<td> whether an error was set
603
 
 
604
 
</td>
 
535
<td>whether an error was set</td>
605
536
</tr>
606
537
</tbody>
607
538
</table></div>
608
539
<p class="since">Since 2.4</p>
609
540
</div>
610
541
<hr>
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>,
642
573
</tr>
643
574
<tr>
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
646
 
</td>
 
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>
647
577
</tr>
648
578
<tr>
649
579
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
650
 
<td>name of file format
651
 
</td>
 
580
<td>name of file format</td>
652
581
</tr>
653
582
<tr>
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
656
 
</td>
 
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>
657
585
</tr>
658
586
<tr>
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>
661
589
</td>
662
590
</tr>
663
591
<tr>
664
592
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
665
 
<td>list of key-value save options
666
 
</td>
 
593
<td>list of key-value save options</td>
667
594
</tr>
668
595
<tr>
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
671
 
    error was set.
672
 
 
673
 
</td>
 
597
<td>
 
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
 
599
error was set.</td>
674
600
</tr>
675
601
</tbody>
676
602
</table></div>
680
606
</div>
681
607
<div class="footer">
682
608
<hr>
683
 
          Generated by GTK-Doc V1.15</div>
 
609
          Generated by GTK-Doc V1.16.1</div>
684
610
</body>
685
611
</html>
 
 
b'\\ No newline at end of file'