gdk_pixbuf2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +49 -40
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +50 -40
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +250 -168
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +25 -18
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +46 -83
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +29 -17
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +81 -77
- data/lib/1.8/gdk_pixbuf2.so +0 -0
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +40 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +200 -5
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +82 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +170 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +6 -1
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +5 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +42 -1
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +2 -2
- data/vendor/local/lib/gdk_pixbuf-2.0.lib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +4 -2
- data/vendor/local/manifest/{gdk-pixbuf-dev_2.22.1-1_win32.mft → gdk-pixbuf-dev_2.24.0-1_win32.mft} +12 -13
- data/vendor/local/manifest/{gdk-pixbuf_2.22.1-1_win32.mft → gdk-pixbuf_2.24.0-1_win32.mft} +2 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +181 -150
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +30 -9
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +35 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +13 -9
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +7 -7
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +251 -629
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +644 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +372 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +642 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +417 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +495 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +485 -184
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +168 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/{gdk-pixbuf-scaling.html → gdk-pixbuf-Scaling.html} +296 -190
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +617 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/{gdk-pixbuf-util.html → gdk-pixbuf-Utilities.html} +83 -93
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +63 -26
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +16 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +12 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +149 -128
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +184 -154
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +2 -1
- data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +2 -2
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +2 -2
- data/vendor/local/src/dieterv/packaging/gdk-pixbuf_2.24.0-1_win32.log +956 -0
- data/vendor/local/src/dieterv/packaging/gdk-pixbuf_2.24.0-1_win32.sh +97 -0
- metadata +26 -24
- data/ChangeLog +0 -482
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-animation.html +0 -654
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-creating.html +0 -406
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-file-loading.html +0 -402
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-file-saving.html +0 -685
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html +0 -460
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-inline.html +0 -516
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-refcounting.html +0 -132
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp +0 -175
- data/vendor/local/src/tml/packaging/gdk-pixbuf_2.22.1-1_win32.log +0 -1012
- data/vendor/local/src/tml/packaging/gdk-pixbuf_2.22.1-1_win32.sh +0 -256
@@ -1,685 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>file-saving</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
7
|
-
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
|
-
<link rel="up" href="rn01.html" title="API Reference">
|
9
|
-
<link rel="prev" href="gdk-pixbuf-file-loading.html" title="file-loading">
|
10
|
-
<link rel="next" href="gdk-pixbuf-creating.html" title="creating">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="gdk-pixbuf-file-loading.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GDK-PixBuf Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="gdk-pixbuf-creating.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#gdk-pixbuf-file-saving.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#gdk-pixbuf-file-saving.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry" title="file-saving">
|
30
|
-
<a name="gdk-pixbuf-file-saving"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="gdk-pixbuf-file-saving.top_of_page"></a>file-saving</span></h2>
|
34
|
-
<p>file-saving</p>
|
35
|
-
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
37
|
-
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv" title="Synopsis">
|
39
|
-
<a name="gdk-pixbuf-file-saving.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">
|
41
|
-
#include <gdk-pixbuf/gdk-pixbuf.h>
|
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>);
|
54
|
-
<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
|
-
<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
|
-
<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>,
|
57
|
-
<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>);
|
58
|
-
<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-to-callback" title="gdk_pixbuf_save_to_callback ()">gdk_pixbuf_save_to_callback</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
59
|
-
<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>,
|
60
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
61
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
62
|
-
<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>,
|
63
|
-
<em class="parameter"><code>...</code></em>);
|
64
|
-
<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-to-callbackv" title="gdk_pixbuf_save_to_callbackv ()">gdk_pixbuf_save_to_callbackv</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
65
|
-
<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>,
|
66
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
67
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
68
|
-
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
69
|
-
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
70
|
-
<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>);
|
71
|
-
<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-to-buffer" title="gdk_pixbuf_save_to_buffer ()">gdk_pixbuf_save_to_buffer</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
72
|
-
<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>,
|
73
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
74
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
75
|
-
<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>,
|
76
|
-
<em class="parameter"><code>...</code></em>);
|
77
|
-
<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-to-bufferv" title="gdk_pixbuf_save_to_bufferv ()">gdk_pixbuf_save_to_bufferv</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
78
|
-
<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>,
|
79
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
80
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
81
|
-
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
82
|
-
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
83
|
-
<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>);
|
84
|
-
<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-to-stream" title="gdk_pixbuf_save_to_stream ()">gdk_pixbuf_save_to_stream</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
85
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
86
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
87
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
88
|
-
<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
|
-
<em class="parameter"><code>...</code></em>);
|
90
|
-
</pre>
|
91
|
-
</div>
|
92
|
-
<div class="refsect1" title="Description">
|
93
|
-
<a name="gdk-pixbuf-file-saving.description"></a><h2>Description</h2>
|
94
|
-
<p>
|
95
|
-
</p>
|
96
|
-
</div>
|
97
|
-
<div class="refsect1" title="Details">
|
98
|
-
<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>
|
107
|
-
<p>
|
108
|
-
Saves pixbuf to a file in <em class="parameter"><code>type</code></em>, which is currently "jpeg", "png", "tiff", "ico" or "bmp".
|
109
|
-
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.
|
111
|
-
</p>
|
112
|
-
<div class="variablelist"><table border="0">
|
113
|
-
<col align="left" valign="top">
|
114
|
-
<tbody>
|
115
|
-
<tr>
|
116
|
-
<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>
|
119
|
-
</tr>
|
120
|
-
<tr>
|
121
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
122
|
-
<td>name of file to save.
|
123
|
-
</td>
|
124
|
-
</tr>
|
125
|
-
<tr>
|
126
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
127
|
-
<td>name of file format.
|
128
|
-
</td>
|
129
|
-
</tr>
|
130
|
-
<tr>
|
131
|
-
<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>
|
134
|
-
</tr>
|
135
|
-
<tr>
|
136
|
-
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
|
137
|
-
<td>values for named options
|
138
|
-
</td>
|
139
|
-
</tr>
|
140
|
-
<tr>
|
141
|
-
<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>
|
143
|
-
</td>
|
144
|
-
</tr>
|
145
|
-
<tr>
|
146
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
147
|
-
<td> whether an error was set
|
148
|
-
</td>
|
149
|
-
</tr>
|
150
|
-
</tbody>
|
151
|
-
</table></div>
|
152
|
-
</div>
|
153
|
-
<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>
|
161
|
-
<p>
|
162
|
-
Saves pixbuf to a file in format <em class="parameter"><code>type</code></em>. By default, "jpeg", "png", "ico"
|
163
|
-
and "bmp" are possible file formats to save in, but more formats may be
|
164
|
-
installed. The list of all writable formats can be determined in the
|
165
|
-
following way:
|
166
|
-
</p>
|
167
|
-
<p>
|
168
|
-
</p>
|
169
|
-
<div class="informalexample">
|
170
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
171
|
-
<tbody>
|
172
|
-
<tr>
|
173
|
-
<td class="listing_lines" align="right"><pre>1
|
174
|
-
2
|
175
|
-
3
|
176
|
-
4
|
177
|
-
5
|
178
|
-
6
|
179
|
-
7
|
180
|
-
8
|
181
|
-
9
|
182
|
-
10</pre></td>
|
183
|
-
<td class="listing_code"><pre class="programlisting"><span class="type">void</span><span class="normal"> </span><span class="function">add_if_writable</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GdkPixbufFormat</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">data</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">list</span><span class="symbol">)</span>
|
184
|
-
<span class="cbracket">{</span>
|
185
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-format-is-writable">gdk_pixbuf_format_is_writable</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">data</span><span class="symbol">))</span>
|
186
|
-
<span class="normal"> </span><span class="symbol">*</span><span class="normal">list </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-prepend">g_slist_prepend</a></span><span class="normal"> </span><span class="symbol">(*</span><span class="normal">list</span><span class="symbol">,</span><span class="normal"> data</span><span class="symbol">);</span>
|
187
|
-
<span class="cbracket">}</span>
|
188
|
-
|
189
|
-
<span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">formats </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-get-formats">gdk_pixbuf_get_formats</a></span><span class="normal"> </span><span class="symbol">();</span>
|
190
|
-
<span class="usertype">GSList</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">writable_formats </span><span class="symbol">=</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
191
|
-
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-foreach">g_slist_foreach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">formats</span><span class="symbol">,</span><span class="normal"> add_if_writable</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">writable_formats</span><span class="symbol">);</span>
|
192
|
-
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#g-slist-free">g_slist_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">formats</span><span class="symbol">);</span></pre></td>
|
193
|
-
</tr>
|
194
|
-
</tbody>
|
195
|
-
</table>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<p>
|
199
|
-
</p>
|
200
|
-
<p>
|
201
|
-
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. Possible errors include
|
202
|
-
those in the <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> domain and those in the <a href="http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domain.
|
203
|
-
</p>
|
204
|
-
<p>
|
205
|
-
The variable argument list should be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated; if not empty,
|
206
|
-
it should contain pairs of strings that modify the save
|
207
|
-
parameters. For example:
|
208
|
-
</p>
|
209
|
-
<div class="informalexample">
|
210
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
211
|
-
<tbody>
|
212
|
-
<tr>
|
213
|
-
<td class="listing_lines" align="right"><pre>1
|
214
|
-
2</pre></td>
|
215
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="gdk-pixbuf-file-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"jpeg"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span>
|
216
|
-
<span class="normal"> </span><span class="string">"quality"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"100"</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
217
|
-
</tr>
|
218
|
-
</tbody>
|
219
|
-
</table>
|
220
|
-
</div>
|
221
|
-
|
222
|
-
<p>
|
223
|
-
</p>
|
224
|
-
<p>
|
225
|
-
Currently only few parameters exist. JPEG images can be saved with a
|
226
|
-
"quality" parameter; its value should be in the range [0,100].
|
227
|
-
</p>
|
228
|
-
<p>
|
229
|
-
Text chunks can be attached to PNG images by specifying parameters of
|
230
|
-
the form "tEXt::key", where key is an ASCII string of length 1-79.
|
231
|
-
The values are UTF-8 encoded strings. The PNG compression level can
|
232
|
-
be specified using the "compression" parameter; it's value is in an
|
233
|
-
integer in the range of [0,9].
|
234
|
-
</p>
|
235
|
-
<p>
|
236
|
-
ICC color profiles can also be embedded into PNG and TIFF images.
|
237
|
-
The "icc-profile" value should be the complete ICC profile encoded
|
238
|
-
into base64.
|
239
|
-
</p>
|
240
|
-
<p>
|
241
|
-
</p>
|
242
|
-
<div class="informalexample">
|
243
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
244
|
-
<tbody>
|
245
|
-
<tr>
|
246
|
-
<td class="listing_lines" align="right"><pre>1
|
247
|
-
2
|
248
|
-
3
|
249
|
-
4
|
250
|
-
5
|
251
|
-
6
|
252
|
-
7
|
253
|
-
8</pre></td>
|
254
|
-
<td class="listing_code"><pre class="programlisting"><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">contents</span><span class="symbol">;</span>
|
255
|
-
<span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">contents_encode</span><span class="symbol">;</span>
|
256
|
-
<span class="usertype">gsize</span><span class="normal"> length</span><span class="symbol">;</span>
|
257
|
-
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#g-file-get-contents">g_file_get_contents</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"/home/hughsie/.color/icc/L225W.icm"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">contents</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">length</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
258
|
-
<span class="normal">contents_encode </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Base64-Encoding.html#g-base64-encode">g_base64_encode</a></span><span class="normal"> </span><span class="symbol">((</span><span class="keyword">const</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar">guchar</a> </span><span class="symbol">*)</span><span class="normal"> contents</span><span class="symbol">,</span><span class="normal"> length</span><span class="symbol">);</span>
|
259
|
-
<span class="function"><a href="gdk-pixbuf-file-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"png"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span>
|
260
|
-
<span class="normal"> </span><span class="string">"icc-profile"</span><span class="symbol">,</span><span class="normal"> contents_encode</span><span class="symbol">,</span>
|
261
|
-
<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
262
|
-
</tr>
|
263
|
-
</tbody>
|
264
|
-
</table>
|
265
|
-
</div>
|
266
|
-
|
267
|
-
<p>
|
268
|
-
</p>
|
269
|
-
<p>
|
270
|
-
TIFF images recognize a "compression" option which acceps an integer value.
|
271
|
-
Among the codecs are 1 None, 2 Huffman, 5 LZW, 7 JPEG and 8 Deflate, see
|
272
|
-
the libtiff documentation and tiff.h for all supported codec values.
|
273
|
-
</p>
|
274
|
-
<p>
|
275
|
-
ICO images can be saved in depth 16, 24, or 32, by using the "depth"
|
276
|
-
parameter. When the ICO saver is given "x_hot" and "y_hot" parameters,
|
277
|
-
it produces a CUR instead of an ICO.
|
278
|
-
</p>
|
279
|
-
<div class="variablelist"><table border="0">
|
280
|
-
<col align="left" valign="top">
|
281
|
-
<tbody>
|
282
|
-
<tr>
|
283
|
-
<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>
|
286
|
-
</tr>
|
287
|
-
<tr>
|
288
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
289
|
-
<td>name of file to save.
|
290
|
-
</td>
|
291
|
-
</tr>
|
292
|
-
<tr>
|
293
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
294
|
-
<td>name of file format.
|
295
|
-
</td>
|
296
|
-
</tr>
|
297
|
-
<tr>
|
298
|
-
<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>
|
300
|
-
</td>
|
301
|
-
</tr>
|
302
|
-
<tr>
|
303
|
-
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
304
|
-
<td>list of key-value save options
|
305
|
-
</td>
|
306
|
-
</tr>
|
307
|
-
<tr>
|
308
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
309
|
-
<td> whether an error was set
|
310
|
-
</td>
|
311
|
-
</tr>
|
312
|
-
</tbody>
|
313
|
-
</table></div>
|
314
|
-
</div>
|
315
|
-
<hr>
|
316
|
-
<div class="refsect2" title="GdkPixbufSaveFunc ()">
|
317
|
-
<a name="GdkPixbufSaveFunc"></a><h3>GdkPixbufSaveFunc ()</h3>
|
318
|
-
<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
|
-
<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
|
-
<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
|
-
<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
|
-
<div class="variablelist"><table border="0">
|
325
|
-
<col align="left" valign="top">
|
326
|
-
<tbody>
|
327
|
-
<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
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
339
|
-
<td>
|
340
|
-
</td>
|
341
|
-
</tr>
|
342
|
-
<tr>
|
343
|
-
<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>
|
350
|
-
</td>
|
351
|
-
</tr>
|
352
|
-
</tbody>
|
353
|
-
</table></div>
|
354
|
-
</div>
|
355
|
-
<hr>
|
356
|
-
<div class="refsect2" title="gdk_pixbuf_save_to_callback ()">
|
357
|
-
<a name="gdk-pixbuf-save-to-callback"></a><h3>gdk_pixbuf_save_to_callback ()</h3>
|
358
|
-
<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
|
-
<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>,
|
360
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
361
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
362
|
-
<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>,
|
363
|
-
<em class="parameter"><code>...</code></em>);</pre>
|
364
|
-
<p>
|
365
|
-
Saves pixbuf in format <em class="parameter"><code>type</code></em> by feeding the produced data to a
|
366
|
-
callback. Can be used when you want to store the image to something
|
367
|
-
other than a file, such as an in-memory buffer or a socket.
|
368
|
-
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. Possible errors
|
369
|
-
include those in the <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> domain and whatever the save
|
370
|
-
function generates.
|
371
|
-
</p>
|
372
|
-
<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.
|
374
|
-
</p>
|
375
|
-
<div class="variablelist"><table border="0">
|
376
|
-
<col align="left" valign="top">
|
377
|
-
<tbody>
|
378
|
-
<tr>
|
379
|
-
<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>
|
382
|
-
</tr>
|
383
|
-
<tr>
|
384
|
-
<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>
|
387
|
-
</td>
|
388
|
-
</tr>
|
389
|
-
<tr>
|
390
|
-
<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>
|
393
|
-
</tr>
|
394
|
-
<tr>
|
395
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
396
|
-
<td>name of file format.
|
397
|
-
</td>
|
398
|
-
</tr>
|
399
|
-
<tr>
|
400
|
-
<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>
|
402
|
-
</td>
|
403
|
-
</tr>
|
404
|
-
<tr>
|
405
|
-
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
406
|
-
<td>list of key-value save options
|
407
|
-
</td>
|
408
|
-
</tr>
|
409
|
-
<tr>
|
410
|
-
<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>
|
414
|
-
</tr>
|
415
|
-
</tbody>
|
416
|
-
</table></div>
|
417
|
-
<p class="since">Since 2.4</p>
|
418
|
-
</div>
|
419
|
-
<hr>
|
420
|
-
<div class="refsect2" title="gdk_pixbuf_save_to_callbackv ()">
|
421
|
-
<a name="gdk-pixbuf-save-to-callbackv"></a><h3>gdk_pixbuf_save_to_callbackv ()</h3>
|
422
|
-
<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
|
-
<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>,
|
424
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
|
425
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
426
|
-
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
427
|
-
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
428
|
-
<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>
|
429
|
-
<p>
|
430
|
-
Saves pixbuf to a callback in format <em class="parameter"><code>type</code></em>, which is currently "jpeg",
|
431
|
-
"png", "tiff", "ico" or "bmp". 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. See
|
432
|
-
<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.
|
433
|
-
</p>
|
434
|
-
<div class="variablelist"><table border="0">
|
435
|
-
<col align="left" valign="top">
|
436
|
-
<tbody>
|
437
|
-
<tr>
|
438
|
-
<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>
|
441
|
-
</tr>
|
442
|
-
<tr>
|
443
|
-
<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>
|
446
|
-
</td>
|
447
|
-
</tr>
|
448
|
-
<tr>
|
449
|
-
<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.
|
451
|
-
</td>
|
452
|
-
</tr>
|
453
|
-
<tr>
|
454
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
455
|
-
<td>name of file format.
|
456
|
-
</td>
|
457
|
-
</tr>
|
458
|
-
<tr>
|
459
|
-
<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
|
461
|
-
</td>
|
462
|
-
</tr>
|
463
|
-
<tr>
|
464
|
-
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
|
465
|
-
<td>values for named options
|
466
|
-
</td>
|
467
|
-
</tr>
|
468
|
-
<tr>
|
469
|
-
<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>
|
471
|
-
</td>
|
472
|
-
</tr>
|
473
|
-
<tr>
|
474
|
-
<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>
|
478
|
-
</tr>
|
479
|
-
</tbody>
|
480
|
-
</table></div>
|
481
|
-
<p class="since">Since 2.4</p>
|
482
|
-
</div>
|
483
|
-
<hr>
|
484
|
-
<div class="refsect2" title="gdk_pixbuf_save_to_buffer ()">
|
485
|
-
<a name="gdk-pixbuf-save-to-buffer"></a><h3>gdk_pixbuf_save_to_buffer ()</h3>
|
486
|
-
<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
|
-
<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>,
|
488
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
489
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
490
|
-
<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>,
|
491
|
-
<em class="parameter"><code>...</code></em>);</pre>
|
492
|
-
<p>
|
493
|
-
Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>, which is currently "jpeg",
|
494
|
-
"png", "tiff", "ico" or "bmp". This is a convenience function that uses
|
495
|
-
<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
|
496
|
-
is not nul-terminated and may contain embedded nuls.
|
497
|
-
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 and <em class="parameter"><code>buffer</code></em> will be set to
|
498
|
-
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. Possible errors include those in the <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a>
|
499
|
-
domain.
|
500
|
-
</p>
|
501
|
-
<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.
|
503
|
-
</p>
|
504
|
-
<div class="variablelist"><table border="0">
|
505
|
-
<col align="left" valign="top">
|
506
|
-
<tbody>
|
507
|
-
<tr>
|
508
|
-
<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>
|
511
|
-
</tr>
|
512
|
-
<tr>
|
513
|
-
<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>
|
516
|
-
</tr>
|
517
|
-
<tr>
|
518
|
-
<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>
|
521
|
-
</tr>
|
522
|
-
<tr>
|
523
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
524
|
-
<td>name of file format.
|
525
|
-
</td>
|
526
|
-
</tr>
|
527
|
-
<tr>
|
528
|
-
<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>
|
530
|
-
</td>
|
531
|
-
</tr>
|
532
|
-
<tr>
|
533
|
-
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
534
|
-
<td>list of key-value save options
|
535
|
-
</td>
|
536
|
-
</tr>
|
537
|
-
<tr>
|
538
|
-
<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>
|
542
|
-
</tr>
|
543
|
-
</tbody>
|
544
|
-
</table></div>
|
545
|
-
<p class="since">Since 2.4</p>
|
546
|
-
</div>
|
547
|
-
<hr>
|
548
|
-
<div class="refsect2" title="gdk_pixbuf_save_to_bufferv ()">
|
549
|
-
<a name="gdk-pixbuf-save-to-bufferv"></a><h3>gdk_pixbuf_save_to_bufferv ()</h3>
|
550
|
-
<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
|
-
<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>,
|
552
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *buffer_size</code></em>,
|
553
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
554
|
-
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
555
|
-
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
556
|
-
<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>
|
557
|
-
<p>
|
558
|
-
Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>, which is currently "jpeg",
|
559
|
-
"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>
|
560
|
-
for more details.
|
561
|
-
</p>
|
562
|
-
<div class="variablelist"><table border="0">
|
563
|
-
<col align="left" valign="top">
|
564
|
-
<tbody>
|
565
|
-
<tr>
|
566
|
-
<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>
|
569
|
-
</tr>
|
570
|
-
<tr>
|
571
|
-
<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>
|
574
|
-
</tr>
|
575
|
-
<tr>
|
576
|
-
<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>
|
579
|
-
</tr>
|
580
|
-
<tr>
|
581
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
582
|
-
<td>name of file format.
|
583
|
-
</td>
|
584
|
-
</tr>
|
585
|
-
<tr>
|
586
|
-
<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>
|
589
|
-
</tr>
|
590
|
-
<tr>
|
591
|
-
<td><p><span class="term"><em class="parameter"><code>option_values</code></em> :</span></p></td>
|
592
|
-
<td>values for named options
|
593
|
-
</td>
|
594
|
-
</tr>
|
595
|
-
<tr>
|
596
|
-
<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>
|
598
|
-
</td>
|
599
|
-
</tr>
|
600
|
-
<tr>
|
601
|
-
<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>
|
605
|
-
</tr>
|
606
|
-
</tbody>
|
607
|
-
</table></div>
|
608
|
-
<p class="since">Since 2.4</p>
|
609
|
-
</div>
|
610
|
-
<hr>
|
611
|
-
<div class="refsect2" title="gdk_pixbuf_save_to_stream ()">
|
612
|
-
<a name="gdk-pixbuf-save-to-stream"></a><h3>gdk_pixbuf_save_to_stream ()</h3>
|
613
|
-
<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
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
615
|
-
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
616
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
617
|
-
<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>,
|
618
|
-
<em class="parameter"><code>...</code></em>);</pre>
|
619
|
-
<p>
|
620
|
-
Saves <em class="parameter"><code>pixbuf</code></em> to an output stream.
|
621
|
-
</p>
|
622
|
-
<p>
|
623
|
-
Supported file formats are currently "jpeg", "tiff", "png", "ico" or
|
624
|
-
"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.
|
625
|
-
</p>
|
626
|
-
<p>
|
627
|
-
The <em class="parameter"><code>cancellable</code></em> can be used to abort the operation from another
|
628
|
-
thread. If the operation was cancelled, the error <code class="literal">GIO_ERROR_CANCELLED</code>
|
629
|
-
will be returned. Other possible errors are in the <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a>
|
630
|
-
and <a href="http://library.gnome.org/devel/gio/unstable/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains.
|
631
|
-
</p>
|
632
|
-
<p>
|
633
|
-
The stream is not closed.
|
634
|
-
</p>
|
635
|
-
<div class="variablelist"><table border="0">
|
636
|
-
<col align="left" valign="top">
|
637
|
-
<tbody>
|
638
|
-
<tr>
|
639
|
-
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
|
640
|
-
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
|
641
|
-
</td>
|
642
|
-
</tr>
|
643
|
-
<tr>
|
644
|
-
<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>
|
647
|
-
</tr>
|
648
|
-
<tr>
|
649
|
-
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
|
650
|
-
<td>name of file format
|
651
|
-
</td>
|
652
|
-
</tr>
|
653
|
-
<tr>
|
654
|
-
<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>
|
657
|
-
</tr>
|
658
|
-
<tr>
|
659
|
-
<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>
|
661
|
-
</td>
|
662
|
-
</tr>
|
663
|
-
<tr>
|
664
|
-
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
|
665
|
-
<td>list of key-value save options
|
666
|
-
</td>
|
667
|
-
</tr>
|
668
|
-
<tr>
|
669
|
-
<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>
|
674
|
-
</tr>
|
675
|
-
</tbody>
|
676
|
-
</table></div>
|
677
|
-
<p class="since">Since 2.14</p>
|
678
|
-
</div>
|
679
|
-
</div>
|
680
|
-
</div>
|
681
|
-
<div class="footer">
|
682
|
-
<hr>
|
683
|
-
Generated by GTK-Doc V1.15</div>
|
684
|
-
</body>
|
685
|
-
</html>
|