gdk_pixbuf2 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +29 -0
- data/Rakefile +34 -0
- data/ext/gdk_pixbuf2/depend +11 -0
- data/ext/gdk_pixbuf2/extconf.rb +66 -0
- data/ext/gdk_pixbuf2/gdk_pixbuf2.def +2 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +179 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +164 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +737 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +41 -0
- 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 +93 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
- data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +53 -0
- data/ext/gdk_pixbuf2/rbgdk-pixdata.c +213 -0
- data/extconf.rb +49 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
- data/lib/2.2/gdk_pixbuf2.so +0 -0
- data/lib/gdk_pixbuf2.rb +57 -0
- data/sample/anim.rb +38 -0
- data/sample/composite.rb +45 -0
- data/sample/flip.rb +47 -0
- data/sample/floppybuddy.gif +0 -0
- data/sample/format.rb +39 -0
- data/sample/gnome-foot.png +0 -0
- data/sample/inline.rb +37 -0
- data/sample/loader.rb +20 -0
- data/sample/pixdata.rb +39 -0
- data/sample/rotate.rb +45 -0
- data/sample/save.rb +25 -0
- data/sample/scale.rb +45 -0
- data/sample/simpleanim.rb +34 -0
- data/sample/utils.rb +44 -0
- data/sample/xpm.rb +40 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +204 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +464 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +33 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +120 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +343 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +108 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +36 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +64 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +158 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +43 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +168 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +139 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +41 -0
- data/vendor/local/lib/gdk_pixbuf-2.0.def +128 -0
- data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +41 -0
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +19 -0
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +3443 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +827 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +46 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +108 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +72 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +65 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +39 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +53 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +787 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/composite.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +1068 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +794 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +864 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +491 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +639 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +1298 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +208 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +914 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +898 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +381 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +184 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +197 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +438 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +1115 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +167 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +159 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +45 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +44 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +85 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +226 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +150 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +322 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +59 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +101 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +50 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
- data/vendor/local/share/license/gdk-pixbuf/AUTHORS +65 -0
- data/vendor/local/share/license/gdk-pixbuf/COPYING +482 -0
- 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/csb/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/km/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/tg/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 +135 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +73 -0
- metadata +273 -0
@@ -0,0 +1,864 @@
|
|
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>GDK-PixBuf Reference Manual: File saving</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.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-Image-Data-in-Memory.html" title="Image Data in Memory">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (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="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#gdk-pixbuf-File-saving.description" class="shortcut">Description</a></span>
|
19
|
+
</td>
|
20
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
21
|
+
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
22
|
+
<td><a accesskey="p" href="gdk-pixbuf-File-Loading.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
+
<td><a accesskey="n" href="gdk-pixbuf-Image-Data-in-Memory.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
24
|
+
</tr></table>
|
25
|
+
<div class="refentry">
|
26
|
+
<a name="gdk-pixbuf-File-saving"></a><div class="titlepage"></div>
|
27
|
+
<div class="refnamediv"><table width="100%"><tr>
|
28
|
+
<td valign="top">
|
29
|
+
<h2><span class="refentrytitle"><a name="gdk-pixbuf-File-saving.top_of_page"></a>File saving</span></h2>
|
30
|
+
<p>File saving — Saving a pixbuf to a file.</p>
|
31
|
+
</td>
|
32
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
33
|
+
</tr></table></div>
|
34
|
+
<div class="refsect1">
|
35
|
+
<a name="gdk-pixbuf-File-saving.functions"></a><h2>Functions</h2>
|
36
|
+
<div class="informaltable"><table width="100%" border="0">
|
37
|
+
<colgroup>
|
38
|
+
<col width="150px" class="functions_return">
|
39
|
+
<col class="functions_name">
|
40
|
+
</colgroup>
|
41
|
+
<tbody>
|
42
|
+
<tr>
|
43
|
+
<td class="function_type">
|
44
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
45
|
+
</td>
|
46
|
+
<td class="function_name">
|
47
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-savev" title="gdk_pixbuf_savev ()">gdk_pixbuf_savev</a> <span class="c_punctuation">()</span>
|
48
|
+
</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td class="function_type">
|
52
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
53
|
+
</td>
|
54
|
+
<td class="function_name">
|
55
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()">gdk_pixbuf_save</a> <span class="c_punctuation">()</span>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<td class="function_type">
|
60
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
61
|
+
</td>
|
62
|
+
<td class="function_name">
|
63
|
+
<span class="c_punctuation">(</span><a class="link" href="gdk-pixbuf-File-saving.html#GdkPixbufSaveFunc" title="GdkPixbufSaveFunc ()">*GdkPixbufSaveFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td class="function_type">
|
68
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
69
|
+
</td>
|
70
|
+
<td class="function_name">
|
71
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()">gdk_pixbuf_save_to_callback</a> <span class="c_punctuation">()</span>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td class="function_type">
|
76
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
77
|
+
</td>
|
78
|
+
<td class="function_name">
|
79
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callbackv" title="gdk_pixbuf_save_to_callbackv ()">gdk_pixbuf_save_to_callbackv</a> <span class="c_punctuation">()</span>
|
80
|
+
</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td class="function_type">
|
84
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
85
|
+
</td>
|
86
|
+
<td class="function_name">
|
87
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-buffer" title="gdk_pixbuf_save_to_buffer ()">gdk_pixbuf_save_to_buffer</a> <span class="c_punctuation">()</span>
|
88
|
+
</td>
|
89
|
+
</tr>
|
90
|
+
<tr>
|
91
|
+
<td class="function_type">
|
92
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
93
|
+
</td>
|
94
|
+
<td class="function_name">
|
95
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-bufferv" title="gdk_pixbuf_save_to_bufferv ()">gdk_pixbuf_save_to_bufferv</a> <span class="c_punctuation">()</span>
|
96
|
+
</td>
|
97
|
+
</tr>
|
98
|
+
<tr>
|
99
|
+
<td class="function_type">
|
100
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
101
|
+
</td>
|
102
|
+
<td class="function_name">
|
103
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream" title="gdk_pixbuf_save_to_stream ()">gdk_pixbuf_save_to_stream</a> <span class="c_punctuation">()</span>
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
<tr>
|
107
|
+
<td class="function_type">
|
108
|
+
<span class="returnvalue">void</span>
|
109
|
+
</td>
|
110
|
+
<td class="function_name">
|
111
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream-async" title="gdk_pixbuf_save_to_stream_async ()">gdk_pixbuf_save_to_stream_async</a> <span class="c_punctuation">()</span>
|
112
|
+
</td>
|
113
|
+
</tr>
|
114
|
+
<tr>
|
115
|
+
<td class="function_type">
|
116
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
117
|
+
</td>
|
118
|
+
<td class="function_name">
|
119
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream-finish" title="gdk_pixbuf_save_to_stream_finish ()">gdk_pixbuf_save_to_stream_finish</a> <span class="c_punctuation">()</span>
|
120
|
+
</td>
|
121
|
+
</tr>
|
122
|
+
</tbody>
|
123
|
+
</table></div>
|
124
|
+
</div>
|
125
|
+
<div class="refsect1">
|
126
|
+
<a name="gdk-pixbuf-File-saving.includes"></a><h2>Includes</h2>
|
127
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
128
|
+
</pre>
|
129
|
+
</div>
|
130
|
+
<div class="refsect1">
|
131
|
+
<a name="gdk-pixbuf-File-saving.description"></a><h2>Description</h2>
|
132
|
+
<p>These functions allow to save a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> in a number of
|
133
|
+
file formats. The formatted data can be written to a file
|
134
|
+
or to a memory buffer. GdkPixBuf can also call a user-defined
|
135
|
+
callback on the data, which allows to e.g. write the image
|
136
|
+
to a socket or store it in a database.</p>
|
137
|
+
</div>
|
138
|
+
<div class="refsect1">
|
139
|
+
<a name="gdk-pixbuf-File-saving.functions_details"></a><h2>Functions</h2>
|
140
|
+
<div class="refsect2">
|
141
|
+
<a name="gdk-pixbuf-savev"></a><h3>gdk_pixbuf_savev ()</h3>
|
142
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
143
|
+
gdk_pixbuf_savev (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
144
|
+
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
145
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
146
|
+
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
147
|
+
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
148
|
+
<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>
|
149
|
+
<p>Saves pixbuf to a file in <em class="parameter"><code>type</code></em>
|
150
|
+
, which is currently "jpeg", "png", "tiff", "ico" or "bmp".
|
151
|
+
If <em class="parameter"><code>error</code></em>
|
152
|
+
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.
|
153
|
+
See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()"><code class="function">gdk_pixbuf_save()</code></a> for more details.</p>
|
154
|
+
<div class="refsect3">
|
155
|
+
<a name="id-1.2.7.6.2.5"></a><h4>Parameters</h4>
|
156
|
+
<div class="informaltable"><table width="100%" border="0">
|
157
|
+
<colgroup>
|
158
|
+
<col width="150px" class="parameters_name">
|
159
|
+
<col class="parameters_description">
|
160
|
+
<col width="200px" class="parameters_annotations">
|
161
|
+
</colgroup>
|
162
|
+
<tbody>
|
163
|
+
<tr>
|
164
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
165
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
|
166
|
+
<td class="parameter_annotations"> </td>
|
167
|
+
</tr>
|
168
|
+
<tr>
|
169
|
+
<td class="parameter_name"><p>filename</p></td>
|
170
|
+
<td class="parameter_description"><p>name of file to save.</p></td>
|
171
|
+
<td class="parameter_annotations"> </td>
|
172
|
+
</tr>
|
173
|
+
<tr>
|
174
|
+
<td class="parameter_name"><p>type</p></td>
|
175
|
+
<td class="parameter_description"><p>name of file format.</p></td>
|
176
|
+
<td class="parameter_annotations"> </td>
|
177
|
+
</tr>
|
178
|
+
<tr>
|
179
|
+
<td class="parameter_name"><p>option_keys</p></td>
|
180
|
+
<td class="parameter_description"><p> 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. </p></td>
|
181
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
182
|
+
</tr>
|
183
|
+
<tr>
|
184
|
+
<td class="parameter_name"><p>option_values</p></td>
|
185
|
+
<td class="parameter_description"><p> values for named options. </p></td>
|
186
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
187
|
+
</tr>
|
188
|
+
<tr>
|
189
|
+
<td class="parameter_name"><p>error</p></td>
|
190
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
191
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
192
|
+
</tr>
|
193
|
+
</tbody>
|
194
|
+
</table></div>
|
195
|
+
</div>
|
196
|
+
<div class="refsect3">
|
197
|
+
<a name="id-1.2.7.6.2.6"></a><h4>Returns</h4>
|
198
|
+
<p> whether an error was set</p>
|
199
|
+
<p></p>
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
<hr>
|
203
|
+
<div class="refsect2">
|
204
|
+
<a name="gdk-pixbuf-save"></a><h3>gdk_pixbuf_save ()</h3>
|
205
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
206
|
+
gdk_pixbuf_save (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
207
|
+
<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
208
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
209
|
+
<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>,
|
210
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
211
|
+
<p>Saves pixbuf to a file in format <em class="parameter"><code>type</code></em>
|
212
|
+
. By default, "jpeg", "png", "ico"
|
213
|
+
and "bmp" are possible file formats to save in, but more formats may be
|
214
|
+
installed. The list of all writable formats can be determined in the
|
215
|
+
following way:</p>
|
216
|
+
<div class="informalexample">
|
217
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
218
|
+
<tbody>
|
219
|
+
<tr>
|
220
|
+
<td class="listing_lines" align="right"><pre>1
|
221
|
+
2
|
222
|
+
3
|
223
|
+
4
|
224
|
+
5
|
225
|
+
6
|
226
|
+
7
|
227
|
+
8
|
228
|
+
9
|
229
|
+
10</pre></td>
|
230
|
+
<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>
|
231
|
+
<span class="cbracket">{</span>
|
232
|
+
<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>
|
233
|
+
<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>
|
234
|
+
<span class="cbracket">}</span>
|
235
|
+
|
236
|
+
<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>
|
237
|
+
<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>
|
238
|
+
<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>
|
239
|
+
<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>
|
240
|
+
</tr>
|
241
|
+
</tbody>
|
242
|
+
</table>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<p></p>
|
246
|
+
<p>If <em class="parameter"><code>error</code></em>
|
247
|
+
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
|
248
|
+
those in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> domain and those in the <a href="http://library.gnome.org/devel/glib/unstable/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domain.</p>
|
249
|
+
<p>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,
|
250
|
+
it should contain pairs of strings that modify the save
|
251
|
+
parameters. For example:</p>
|
252
|
+
<div class="informalexample">
|
253
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
254
|
+
<tbody>
|
255
|
+
<tr>
|
256
|
+
<td class="listing_lines" align="right"><pre>1</pre></td>
|
257
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"jpeg"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"quality"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"100"</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
258
|
+
</tr>
|
259
|
+
</tbody>
|
260
|
+
</table>
|
261
|
+
</div>
|
262
|
+
|
263
|
+
<p></p>
|
264
|
+
<p>Currently only few parameters exist. JPEG images can be saved with a
|
265
|
+
"quality" parameter; its value should be in the range [0,100].</p>
|
266
|
+
<p>Text chunks can be attached to PNG images by specifying parameters of
|
267
|
+
the form "tEXt::key", where key is an ASCII string of length 1-79.
|
268
|
+
The values are UTF-8 encoded strings. The PNG compression level can
|
269
|
+
be specified using the "compression" parameter; it's value is in an
|
270
|
+
integer in the range of [0,9].</p>
|
271
|
+
<p>ICC color profiles can also be embedded into PNG, JPEG and TIFF images.
|
272
|
+
The "icc-profile" value should be the complete ICC profile encoded
|
273
|
+
into base64.</p>
|
274
|
+
<div class="informalexample">
|
275
|
+
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
276
|
+
<tbody>
|
277
|
+
<tr>
|
278
|
+
<td class="listing_lines" align="right"><pre>1
|
279
|
+
2
|
280
|
+
3
|
281
|
+
4
|
282
|
+
5
|
283
|
+
6</pre></td>
|
284
|
+
<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>
|
285
|
+
<span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">contents_encode</span><span class="symbol">;</span>
|
286
|
+
<span class="usertype">gsize</span><span class="normal"> length</span><span class="symbol">;</span>
|
287
|
+
<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>
|
288
|
+
<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>
|
289
|
+
<span class="function"><a href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save">gdk_pixbuf_save</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">,</span><span class="normal"> handle</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"png"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"icc-profile"</span><span class="symbol">,</span><span class="normal"> contents_encode</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
290
|
+
</tr>
|
291
|
+
</tbody>
|
292
|
+
</table>
|
293
|
+
</div>
|
294
|
+
|
295
|
+
<p></p>
|
296
|
+
<p>TIFF images recognize a "compression" option which acceps an integer value.
|
297
|
+
Among the codecs are 1 None, 2 Huffman, 5 LZW, 7 JPEG and 8 Deflate, see
|
298
|
+
the libtiff documentation and tiff.h for all supported codec values.</p>
|
299
|
+
<p>ICO images can be saved in depth 16, 24, or 32, by using the "depth"
|
300
|
+
parameter. When the ICO saver is given "x_hot" and "y_hot" parameters,
|
301
|
+
it produces a CUR instead of an ICO.</p>
|
302
|
+
<div class="refsect3">
|
303
|
+
<a name="id-1.2.7.6.3.18"></a><h4>Parameters</h4>
|
304
|
+
<div class="informaltable"><table width="100%" border="0">
|
305
|
+
<colgroup>
|
306
|
+
<col width="150px" class="parameters_name">
|
307
|
+
<col class="parameters_description">
|
308
|
+
<col width="200px" class="parameters_annotations">
|
309
|
+
</colgroup>
|
310
|
+
<tbody>
|
311
|
+
<tr>
|
312
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
313
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
|
314
|
+
<td class="parameter_annotations"> </td>
|
315
|
+
</tr>
|
316
|
+
<tr>
|
317
|
+
<td class="parameter_name"><p>filename</p></td>
|
318
|
+
<td class="parameter_description"><p>name of file to save.</p></td>
|
319
|
+
<td class="parameter_annotations"> </td>
|
320
|
+
</tr>
|
321
|
+
<tr>
|
322
|
+
<td class="parameter_name"><p>type</p></td>
|
323
|
+
<td class="parameter_description"><p>name of file format.</p></td>
|
324
|
+
<td class="parameter_annotations"> </td>
|
325
|
+
</tr>
|
326
|
+
<tr>
|
327
|
+
<td class="parameter_name"><p>error</p></td>
|
328
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
329
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
330
|
+
</tr>
|
331
|
+
<tr>
|
332
|
+
<td class="parameter_name"><p>...</p></td>
|
333
|
+
<td class="parameter_description"><p>list of key-value save options, followed by <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
334
|
+
<td class="parameter_annotations"> </td>
|
335
|
+
</tr>
|
336
|
+
</tbody>
|
337
|
+
</table></div>
|
338
|
+
</div>
|
339
|
+
<div class="refsect3">
|
340
|
+
<a name="id-1.2.7.6.3.19"></a><h4>Returns</h4>
|
341
|
+
<p> whether an error was set</p>
|
342
|
+
<p></p>
|
343
|
+
</div>
|
344
|
+
</div>
|
345
|
+
<hr>
|
346
|
+
<div class="refsect2">
|
347
|
+
<a name="GdkPixbufSaveFunc"></a><h3>GdkPixbufSaveFunc ()</h3>
|
348
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
349
|
+
<span class="c_punctuation">(</span>*GdkPixbufSaveFunc<span class="c_punctuation">)</span> (<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>,
|
350
|
+
<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>,
|
351
|
+
<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>,
|
352
|
+
<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>
|
353
|
+
<p>Specifies the type of the function passed to
|
354
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a>. It is called once for each block of
|
355
|
+
bytes that is "written" by <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a>. If
|
356
|
+
successful it should return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>. If an error occurs it should set
|
357
|
+
<em class="parameter"><code>error</code></em>
|
358
|
+
and return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, in which case <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a>
|
359
|
+
will fail with the same error.</p>
|
360
|
+
<div class="refsect3">
|
361
|
+
<a name="id-1.2.7.6.4.5"></a><h4>Parameters</h4>
|
362
|
+
<div class="informaltable"><table width="100%" border="0">
|
363
|
+
<colgroup>
|
364
|
+
<col width="150px" class="parameters_name">
|
365
|
+
<col class="parameters_description">
|
366
|
+
<col width="200px" class="parameters_annotations">
|
367
|
+
</colgroup>
|
368
|
+
<tbody>
|
369
|
+
<tr>
|
370
|
+
<td class="parameter_name"><p>buf</p></td>
|
371
|
+
<td class="parameter_description"><p> bytes to be written. </p></td>
|
372
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=count][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td>
|
373
|
+
</tr>
|
374
|
+
<tr>
|
375
|
+
<td class="parameter_name"><p>count</p></td>
|
376
|
+
<td class="parameter_description"><p>number of bytes in <em class="parameter"><code>buf</code></em>
|
377
|
+
. </p></td>
|
378
|
+
<td class="parameter_annotations"> </td>
|
379
|
+
</tr>
|
380
|
+
<tr>
|
381
|
+
<td class="parameter_name"><p>error</p></td>
|
382
|
+
<td class="parameter_description"><p> A location to return an error. </p></td>
|
383
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
384
|
+
</tr>
|
385
|
+
<tr>
|
386
|
+
<td class="parameter_name"><p>data</p></td>
|
387
|
+
<td class="parameter_description"><p> user data passed to <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>. </p></td>
|
388
|
+
<td class="parameter_annotations"><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></td>
|
389
|
+
</tr>
|
390
|
+
</tbody>
|
391
|
+
</table></div>
|
392
|
+
</div>
|
393
|
+
<div class="refsect3">
|
394
|
+
<a name="id-1.2.7.6.4.6"></a><h4>Returns</h4>
|
395
|
+
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if successful, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> (with <em class="parameter"><code>error</code></em>
|
396
|
+
set) if failed.</p>
|
397
|
+
<p></p>
|
398
|
+
</div>
|
399
|
+
<p class="since">Since 2.4</p>
|
400
|
+
</div>
|
401
|
+
<hr>
|
402
|
+
<div class="refsect2">
|
403
|
+
<a name="gdk-pixbuf-save-to-callback"></a><h3>gdk_pixbuf_save_to_callback ()</h3>
|
404
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
405
|
+
gdk_pixbuf_save_to_callback (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
406
|
+
<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>,
|
407
|
+
<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>,
|
408
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
409
|
+
<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>,
|
410
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
411
|
+
<p>Saves pixbuf in format <em class="parameter"><code>type</code></em>
|
412
|
+
by feeding the produced data to a
|
413
|
+
callback. Can be used when you want to store the image to something
|
414
|
+
other than a file, such as an in-memory buffer or a socket.
|
415
|
+
If <em class="parameter"><code>error</code></em>
|
416
|
+
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
|
417
|
+
include those in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a> domain and whatever the save
|
418
|
+
function generates.</p>
|
419
|
+
<p>See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()"><code class="function">gdk_pixbuf_save()</code></a> for more details.</p>
|
420
|
+
<div class="refsect3">
|
421
|
+
<a name="id-1.2.7.6.5.6"></a><h4>Parameters</h4>
|
422
|
+
<div class="informaltable"><table width="100%" border="0">
|
423
|
+
<colgroup>
|
424
|
+
<col width="150px" class="parameters_name">
|
425
|
+
<col class="parameters_description">
|
426
|
+
<col width="200px" class="parameters_annotations">
|
427
|
+
</colgroup>
|
428
|
+
<tbody>
|
429
|
+
<tr>
|
430
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
431
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
|
432
|
+
<td class="parameter_annotations"> </td>
|
433
|
+
</tr>
|
434
|
+
<tr>
|
435
|
+
<td class="parameter_name"><p>save_func</p></td>
|
436
|
+
<td class="parameter_description"><p> a function that is called to save each block of data that
|
437
|
+
the save routine generates. </p></td>
|
438
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
|
439
|
+
</tr>
|
440
|
+
<tr>
|
441
|
+
<td class="parameter_name"><p>user_data</p></td>
|
442
|
+
<td class="parameter_description"><p>user data to pass to the save function.</p></td>
|
443
|
+
<td class="parameter_annotations"> </td>
|
444
|
+
</tr>
|
445
|
+
<tr>
|
446
|
+
<td class="parameter_name"><p>type</p></td>
|
447
|
+
<td class="parameter_description"><p>name of file format.</p></td>
|
448
|
+
<td class="parameter_annotations"> </td>
|
449
|
+
</tr>
|
450
|
+
<tr>
|
451
|
+
<td class="parameter_name"><p>error</p></td>
|
452
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
453
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
454
|
+
</tr>
|
455
|
+
<tr>
|
456
|
+
<td class="parameter_name"><p>...</p></td>
|
457
|
+
<td class="parameter_description"><p>list of key-value save options</p></td>
|
458
|
+
<td class="parameter_annotations"> </td>
|
459
|
+
</tr>
|
460
|
+
</tbody>
|
461
|
+
</table></div>
|
462
|
+
</div>
|
463
|
+
<div class="refsect3">
|
464
|
+
<a name="id-1.2.7.6.5.7"></a><h4>Returns</h4>
|
465
|
+
<p> whether an error was set</p>
|
466
|
+
<p></p>
|
467
|
+
</div>
|
468
|
+
<p class="since">Since 2.4</p>
|
469
|
+
</div>
|
470
|
+
<hr>
|
471
|
+
<div class="refsect2">
|
472
|
+
<a name="gdk-pixbuf-save-to-callbackv"></a><h3>gdk_pixbuf_save_to_callbackv ()</h3>
|
473
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
474
|
+
gdk_pixbuf_save_to_callbackv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
475
|
+
<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>,
|
476
|
+
<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>,
|
477
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
478
|
+
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
479
|
+
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
480
|
+
<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>
|
481
|
+
<p>Saves pixbuf to a callback in format <em class="parameter"><code>type</code></em>
|
482
|
+
, which is currently "jpeg",
|
483
|
+
"png", "tiff", "ico" or "bmp". If <em class="parameter"><code>error</code></em>
|
484
|
+
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
|
485
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-callback" title="gdk_pixbuf_save_to_callback ()"><code class="function">gdk_pixbuf_save_to_callback()</code></a> for more details.</p>
|
486
|
+
<div class="refsect3">
|
487
|
+
<a name="id-1.2.7.6.6.5"></a><h4>Parameters</h4>
|
488
|
+
<div class="informaltable"><table width="100%" border="0">
|
489
|
+
<colgroup>
|
490
|
+
<col width="150px" class="parameters_name">
|
491
|
+
<col class="parameters_description">
|
492
|
+
<col width="200px" class="parameters_annotations">
|
493
|
+
</colgroup>
|
494
|
+
<tbody>
|
495
|
+
<tr>
|
496
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
497
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
|
498
|
+
<td class="parameter_annotations"> </td>
|
499
|
+
</tr>
|
500
|
+
<tr>
|
501
|
+
<td class="parameter_name"><p>save_func</p></td>
|
502
|
+
<td class="parameter_description"><p> a function that is called to save each block of data that
|
503
|
+
the save routine generates. </p></td>
|
504
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
|
505
|
+
</tr>
|
506
|
+
<tr>
|
507
|
+
<td class="parameter_name"><p>user_data</p></td>
|
508
|
+
<td class="parameter_description"><p> user data to pass to the save function. </p></td>
|
509
|
+
<td class="parameter_annotations"><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></td>
|
510
|
+
</tr>
|
511
|
+
<tr>
|
512
|
+
<td class="parameter_name"><p>type</p></td>
|
513
|
+
<td class="parameter_description"><p>name of file format.</p></td>
|
514
|
+
<td class="parameter_annotations"> </td>
|
515
|
+
</tr>
|
516
|
+
<tr>
|
517
|
+
<td class="parameter_name"><p>option_keys</p></td>
|
518
|
+
<td class="parameter_description"><p> 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. </p></td>
|
519
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td>
|
520
|
+
</tr>
|
521
|
+
<tr>
|
522
|
+
<td class="parameter_name"><p>option_values</p></td>
|
523
|
+
<td class="parameter_description"><p> values for named options. </p></td>
|
524
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td>
|
525
|
+
</tr>
|
526
|
+
<tr>
|
527
|
+
<td class="parameter_name"><p>error</p></td>
|
528
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
529
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
530
|
+
</tr>
|
531
|
+
</tbody>
|
532
|
+
</table></div>
|
533
|
+
</div>
|
534
|
+
<div class="refsect3">
|
535
|
+
<a name="id-1.2.7.6.6.6"></a><h4>Returns</h4>
|
536
|
+
<p> whether an error was set</p>
|
537
|
+
<p></p>
|
538
|
+
</div>
|
539
|
+
<p class="since">Since 2.4</p>
|
540
|
+
</div>
|
541
|
+
<hr>
|
542
|
+
<div class="refsect2">
|
543
|
+
<a name="gdk-pixbuf-save-to-buffer"></a><h3>gdk_pixbuf_save_to_buffer ()</h3>
|
544
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
545
|
+
gdk_pixbuf_save_to_buffer (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
546
|
+
<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>,
|
547
|
+
<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>,
|
548
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
549
|
+
<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>,
|
550
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
551
|
+
<p>Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>
|
552
|
+
, which is currently "jpeg",
|
553
|
+
"png", "tiff", "ico" or "bmp". This is a convenience function that uses
|
554
|
+
<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
|
555
|
+
is not nul-terminated and may contain embedded nuls.
|
556
|
+
If <em class="parameter"><code>error</code></em>
|
557
|
+
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>
|
558
|
+
will be set to
|
559
|
+
<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-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a>
|
560
|
+
domain.</p>
|
561
|
+
<p>See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save" title="gdk_pixbuf_save ()"><code class="function">gdk_pixbuf_save()</code></a> for more details.</p>
|
562
|
+
<div class="refsect3">
|
563
|
+
<a name="id-1.2.7.6.7.6"></a><h4>Parameters</h4>
|
564
|
+
<div class="informaltable"><table width="100%" border="0">
|
565
|
+
<colgroup>
|
566
|
+
<col width="150px" class="parameters_name">
|
567
|
+
<col class="parameters_description">
|
568
|
+
<col width="200px" class="parameters_annotations">
|
569
|
+
</colgroup>
|
570
|
+
<tbody>
|
571
|
+
<tr>
|
572
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
573
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
|
574
|
+
<td class="parameter_annotations"> </td>
|
575
|
+
</tr>
|
576
|
+
<tr>
|
577
|
+
<td class="parameter_name"><p>buffer</p></td>
|
578
|
+
<td class="parameter_description"><p> location to receive a pointer
|
579
|
+
to the new buffer. </p></td>
|
580
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=buffer_size][<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td>
|
581
|
+
</tr>
|
582
|
+
<tr>
|
583
|
+
<td class="parameter_name"><p>buffer_size</p></td>
|
584
|
+
<td class="parameter_description"><p>location to receive the size of the new buffer.</p></td>
|
585
|
+
<td class="parameter_annotations"> </td>
|
586
|
+
</tr>
|
587
|
+
<tr>
|
588
|
+
<td class="parameter_name"><p>type</p></td>
|
589
|
+
<td class="parameter_description"><p>name of file format.</p></td>
|
590
|
+
<td class="parameter_annotations"> </td>
|
591
|
+
</tr>
|
592
|
+
<tr>
|
593
|
+
<td class="parameter_name"><p>error</p></td>
|
594
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
595
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
596
|
+
</tr>
|
597
|
+
<tr>
|
598
|
+
<td class="parameter_name"><p>...</p></td>
|
599
|
+
<td class="parameter_description"><p>list of key-value save options</p></td>
|
600
|
+
<td class="parameter_annotations"> </td>
|
601
|
+
</tr>
|
602
|
+
</tbody>
|
603
|
+
</table></div>
|
604
|
+
</div>
|
605
|
+
<div class="refsect3">
|
606
|
+
<a name="id-1.2.7.6.7.7"></a><h4>Returns</h4>
|
607
|
+
<p> whether an error was set</p>
|
608
|
+
<p></p>
|
609
|
+
</div>
|
610
|
+
<p class="since">Since 2.4</p>
|
611
|
+
</div>
|
612
|
+
<hr>
|
613
|
+
<div class="refsect2">
|
614
|
+
<a name="gdk-pixbuf-save-to-bufferv"></a><h3>gdk_pixbuf_save_to_bufferv ()</h3>
|
615
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
616
|
+
gdk_pixbuf_save_to_bufferv (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
617
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **buffer</code></em>,
|
618
|
+
<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>,
|
619
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
620
|
+
<em class="parameter"><code><span class="type">char</span> **option_keys</code></em>,
|
621
|
+
<em class="parameter"><code><span class="type">char</span> **option_values</code></em>,
|
622
|
+
<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>
|
623
|
+
<p>Saves pixbuf to a new buffer in format <em class="parameter"><code>type</code></em>
|
624
|
+
, which is currently "jpeg",
|
625
|
+
"tiff", "png", "ico" or "bmp". See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-buffer" title="gdk_pixbuf_save_to_buffer ()"><code class="function">gdk_pixbuf_save_to_buffer()</code></a>
|
626
|
+
for more details.</p>
|
627
|
+
<div class="refsect3">
|
628
|
+
<a name="id-1.2.7.6.8.5"></a><h4>Parameters</h4>
|
629
|
+
<div class="informaltable"><table width="100%" border="0">
|
630
|
+
<colgroup>
|
631
|
+
<col width="150px" class="parameters_name">
|
632
|
+
<col class="parameters_description">
|
633
|
+
<col width="200px" class="parameters_annotations">
|
634
|
+
</colgroup>
|
635
|
+
<tbody>
|
636
|
+
<tr>
|
637
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
638
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
|
639
|
+
<td class="parameter_annotations"> </td>
|
640
|
+
</tr>
|
641
|
+
<tr>
|
642
|
+
<td class="parameter_name"><p>buffer</p></td>
|
643
|
+
<td class="parameter_description"><p> location to receive a pointer to the new buffer. </p></td>
|
644
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=buffer_size][<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td>
|
645
|
+
</tr>
|
646
|
+
<tr>
|
647
|
+
<td class="parameter_name"><p>buffer_size</p></td>
|
648
|
+
<td class="parameter_description"><p>location to receive the size of the new buffer.</p></td>
|
649
|
+
<td class="parameter_annotations"> </td>
|
650
|
+
</tr>
|
651
|
+
<tr>
|
652
|
+
<td class="parameter_name"><p>type</p></td>
|
653
|
+
<td class="parameter_description"><p>name of file format.</p></td>
|
654
|
+
<td class="parameter_annotations"> </td>
|
655
|
+
</tr>
|
656
|
+
<tr>
|
657
|
+
<td class="parameter_name"><p>option_keys</p></td>
|
658
|
+
<td class="parameter_description"><p> 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. </p></td>
|
659
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
660
|
+
</tr>
|
661
|
+
<tr>
|
662
|
+
<td class="parameter_name"><p>option_values</p></td>
|
663
|
+
<td class="parameter_description"><p> values for named options. </p></td>
|
664
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
665
|
+
</tr>
|
666
|
+
<tr>
|
667
|
+
<td class="parameter_name"><p>error</p></td>
|
668
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
669
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
670
|
+
</tr>
|
671
|
+
</tbody>
|
672
|
+
</table></div>
|
673
|
+
</div>
|
674
|
+
<div class="refsect3">
|
675
|
+
<a name="id-1.2.7.6.8.6"></a><h4>Returns</h4>
|
676
|
+
<p> whether an error was set</p>
|
677
|
+
<p></p>
|
678
|
+
</div>
|
679
|
+
<p class="since">Since 2.4</p>
|
680
|
+
</div>
|
681
|
+
<hr>
|
682
|
+
<div class="refsect2">
|
683
|
+
<a name="gdk-pixbuf-save-to-stream"></a><h3>gdk_pixbuf_save_to_stream ()</h3>
|
684
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
685
|
+
gdk_pixbuf_save_to_stream (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
686
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
687
|
+
<em class="parameter"><code>const <span class="type">char</span> *type</code></em>,
|
688
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
689
|
+
<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>,
|
690
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
691
|
+
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
692
|
+
to an output stream.</p>
|
693
|
+
<p>Supported file formats are currently "jpeg", "tiff", "png", "ico" or
|
694
|
+
"bmp". See <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-buffer" title="gdk_pixbuf_save_to_buffer ()"><code class="function">gdk_pixbuf_save_to_buffer()</code></a> for more details.</p>
|
695
|
+
<p>The <em class="parameter"><code>cancellable</code></em>
|
696
|
+
can be used to abort the operation from another
|
697
|
+
thread. If the operation was cancelled, the error <code class="literal">G_IO_ERROR_CANCELLED</code>
|
698
|
+
will be returned. Other possible errors are in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR"><span class="type">GDK_PIXBUF_ERROR</span></a>
|
699
|
+
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. </p>
|
700
|
+
<p>The stream is not closed.</p>
|
701
|
+
<div class="refsect3">
|
702
|
+
<a name="id-1.2.7.6.9.8"></a><h4>Parameters</h4>
|
703
|
+
<div class="informaltable"><table width="100%" border="0">
|
704
|
+
<colgroup>
|
705
|
+
<col width="150px" class="parameters_name">
|
706
|
+
<col class="parameters_description">
|
707
|
+
<col width="200px" class="parameters_annotations">
|
708
|
+
</colgroup>
|
709
|
+
<tbody>
|
710
|
+
<tr>
|
711
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
712
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a></p></td>
|
713
|
+
<td class="parameter_annotations"> </td>
|
714
|
+
</tr>
|
715
|
+
<tr>
|
716
|
+
<td class="parameter_name"><p>stream</p></td>
|
717
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> to save the pixbuf to</p></td>
|
718
|
+
<td class="parameter_annotations"> </td>
|
719
|
+
</tr>
|
720
|
+
<tr>
|
721
|
+
<td class="parameter_name"><p>type</p></td>
|
722
|
+
<td class="parameter_description"><p>name of file format</p></td>
|
723
|
+
<td class="parameter_annotations"> </td>
|
724
|
+
</tr>
|
725
|
+
<tr>
|
726
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
727
|
+
<td class="parameter_description"><p> 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. </p></td>
|
728
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
729
|
+
</tr>
|
730
|
+
<tr>
|
731
|
+
<td class="parameter_name"><p>error</p></td>
|
732
|
+
<td class="parameter_description"><p> 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>. </p></td>
|
733
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
734
|
+
</tr>
|
735
|
+
<tr>
|
736
|
+
<td class="parameter_name"><p>...</p></td>
|
737
|
+
<td class="parameter_description"><p>list of key-value save options</p></td>
|
738
|
+
<td class="parameter_annotations"> </td>
|
739
|
+
</tr>
|
740
|
+
</tbody>
|
741
|
+
</table></div>
|
742
|
+
</div>
|
743
|
+
<div class="refsect3">
|
744
|
+
<a name="id-1.2.7.6.9.9"></a><h4>Returns</h4>
|
745
|
+
<p> <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
|
746
|
+
error was set.</p>
|
747
|
+
<p></p>
|
748
|
+
</div>
|
749
|
+
<p class="since">Since 2.14</p>
|
750
|
+
</div>
|
751
|
+
<hr>
|
752
|
+
<div class="refsect2">
|
753
|
+
<a name="gdk-pixbuf-save-to-stream-async"></a><h3>gdk_pixbuf_save_to_stream_async ()</h3>
|
754
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
755
|
+
gdk_pixbuf_save_to_stream_async (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
756
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> *stream</code></em>,
|
757
|
+
<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> *type</code></em>,
|
758
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
759
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
760
|
+
<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>,
|
761
|
+
<em class="parameter"><code>...</code></em>);</pre>
|
762
|
+
<p>Saves <em class="parameter"><code>pixbuf</code></em>
|
763
|
+
to an output stream asynchronously.</p>
|
764
|
+
<p>For more details see <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream" title="gdk_pixbuf_save_to_stream ()"><code class="function">gdk_pixbuf_save_to_stream()</code></a>, which is the synchronous
|
765
|
+
version of this function.</p>
|
766
|
+
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
|
767
|
+
will be called in the main thread.
|
768
|
+
You can then call <a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream-finish" title="gdk_pixbuf_save_to_stream_finish ()"><code class="function">gdk_pixbuf_save_to_stream_finish()</code></a> to get the result of the operation.</p>
|
769
|
+
<div class="refsect3">
|
770
|
+
<a name="id-1.2.7.6.10.7"></a><h4>Parameters</h4>
|
771
|
+
<div class="informaltable"><table width="100%" border="0">
|
772
|
+
<colgroup>
|
773
|
+
<col width="150px" class="parameters_name">
|
774
|
+
<col class="parameters_description">
|
775
|
+
<col width="200px" class="parameters_annotations">
|
776
|
+
</colgroup>
|
777
|
+
<tbody>
|
778
|
+
<tr>
|
779
|
+
<td class="parameter_name"><p>pixbuf</p></td>
|
780
|
+
<td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a></p></td>
|
781
|
+
<td class="parameter_annotations"> </td>
|
782
|
+
</tr>
|
783
|
+
<tr>
|
784
|
+
<td class="parameter_name"><p>stream</p></td>
|
785
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GOutputStream.html"><span class="type">GOutputStream</span></a> to which to save the pixbuf</p></td>
|
786
|
+
<td class="parameter_annotations"> </td>
|
787
|
+
</tr>
|
788
|
+
<tr>
|
789
|
+
<td class="parameter_name"><p>type</p></td>
|
790
|
+
<td class="parameter_description"><p>name of file format</p></td>
|
791
|
+
<td class="parameter_annotations"> </td>
|
792
|
+
</tr>
|
793
|
+
<tr>
|
794
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
795
|
+
<td class="parameter_description"><p> 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. </p></td>
|
796
|
+
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
797
|
+
</tr>
|
798
|
+
<tr>
|
799
|
+
<td class="parameter_name"><p>callback</p></td>
|
800
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</p></td>
|
801
|
+
<td class="parameter_annotations"> </td>
|
802
|
+
</tr>
|
803
|
+
<tr>
|
804
|
+
<td class="parameter_name"><p>user_data</p></td>
|
805
|
+
<td class="parameter_description"><p>the data to pass to the callback function</p></td>
|
806
|
+
<td class="parameter_annotations"> </td>
|
807
|
+
</tr>
|
808
|
+
<tr>
|
809
|
+
<td class="parameter_name"><p>...</p></td>
|
810
|
+
<td class="parameter_description"><p>list of key-value save options</p></td>
|
811
|
+
<td class="parameter_annotations"> </td>
|
812
|
+
</tr>
|
813
|
+
</tbody>
|
814
|
+
</table></div>
|
815
|
+
</div>
|
816
|
+
<p class="since">Since 2.24</p>
|
817
|
+
</div>
|
818
|
+
<hr>
|
819
|
+
<div class="refsect2">
|
820
|
+
<a name="gdk-pixbuf-save-to-stream-finish"></a><h3>gdk_pixbuf_save_to_stream_finish ()</h3>
|
821
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
822
|
+
gdk_pixbuf_save_to_stream_finish (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
|
823
|
+
<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>
|
824
|
+
<p>Finishes an asynchronous pixbuf save operation started with
|
825
|
+
<a class="link" href="gdk-pixbuf-File-saving.html#gdk-pixbuf-save-to-stream-async" title="gdk_pixbuf_save_to_stream_async ()"><code class="function">gdk_pixbuf_save_to_stream_async()</code></a>.</p>
|
826
|
+
<div class="refsect3">
|
827
|
+
<a name="id-1.2.7.6.11.5"></a><h4>Parameters</h4>
|
828
|
+
<div class="informaltable"><table width="100%" border="0">
|
829
|
+
<colgroup>
|
830
|
+
<col width="150px" class="parameters_name">
|
831
|
+
<col class="parameters_description">
|
832
|
+
<col width="200px" class="parameters_annotations">
|
833
|
+
</colgroup>
|
834
|
+
<tbody>
|
835
|
+
<tr>
|
836
|
+
<td class="parameter_name"><p>async_result</p></td>
|
837
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a></p></td>
|
838
|
+
<td class="parameter_annotations"> </td>
|
839
|
+
</tr>
|
840
|
+
<tr>
|
841
|
+
<td class="parameter_name"><p>error</p></td>
|
842
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
843
|
+
<td class="parameter_annotations"> </td>
|
844
|
+
</tr>
|
845
|
+
</tbody>
|
846
|
+
</table></div>
|
847
|
+
</div>
|
848
|
+
<div class="refsect3">
|
849
|
+
<a name="id-1.2.7.6.11.6"></a><h4>Returns</h4>
|
850
|
+
<p> <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 error was set.</p>
|
851
|
+
<p></p>
|
852
|
+
</div>
|
853
|
+
<p class="since">Since 2.24</p>
|
854
|
+
</div>
|
855
|
+
</div>
|
856
|
+
<div class="refsect1">
|
857
|
+
<a name="gdk-pixbuf-File-saving.other_details"></a><h2>Types and Values</h2>
|
858
|
+
</div>
|
859
|
+
</div>
|
860
|
+
<div class="footer">
|
861
|
+
<hr>
|
862
|
+
Generated by GTK-Doc V1.20.1</div>
|
863
|
+
</body>
|
864
|
+
</html>
|