gdk_pixbuf2 2.2.0-x86-mingw32 → 2.2.1-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.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/2.0/gdk_pixbuf2.so +0 -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-core.h +15 -30
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +23 -23
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +4 -4
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +1 -1
- 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 +1 -1
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +81 -81
- 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 +2 -2
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +338 -185
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +55 -54
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +63 -63
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +95 -88
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +84 -84
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +33 -32
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +60 -60
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +9 -9
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +19 -19
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +116 -82
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +1 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +13 -11
- 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 +1 -1
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -1
- metadata +11 -13
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/lib/2.1/gdk_pixbuf2.so +0 -0
@@ -153,11 +153,11 @@ loading can use the <a class="link" href="GdkPixbufLoader.html" title="GdkPixbuf
|
|
153
153
|
<a name="gdk-pixbuf-new-from-file"></a><h3>gdk_pixbuf_new_from_file ()</h3>
|
154
154
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
155
155
|
gdk_pixbuf_new_from_file (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
156
|
-
<em class="parameter"><code><a href="
|
156
|
+
<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>
|
157
157
|
<p>Creates a new pixbuf by loading an image from a file. The file format is
|
158
|
-
detected automatically. If <a href="
|
158
|
+
detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then <em class="parameter"><code>error</code></em>
|
159
159
|
will be set.
|
160
|
-
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> and <a href="
|
160
|
+
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> and <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> domains.</p>
|
161
161
|
<div class="refsect3">
|
162
162
|
<a name="id-1.2.6.6.2.5"></a><h4>Parameters</h4>
|
163
163
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -182,7 +182,7 @@ Possible errors are in the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Struct
|
|
182
182
|
</div>
|
183
183
|
<div class="refsect3">
|
184
184
|
<a name="id-1.2.6.6.2.6"></a><h4>Returns</h4>
|
185
|
-
<p> A newly-created pixbuf with a reference count of 1, or <a href="
|
185
|
+
<p> A newly-created pixbuf with a reference count of 1, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
186
186
|
any of several error conditions occurred: the file could not be opened,
|
187
187
|
there was no loader for the file's format, there was not enough memory to
|
188
188
|
allocate the image buffer, or the image file contained invalid data.</p>
|
@@ -196,12 +196,12 @@ allocate the image buffer, or the image file contained invalid data.</p>
|
|
196
196
|
gdk_pixbuf_new_from_file_at_size (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
197
197
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
198
198
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
199
|
-
<em class="parameter"><code><a href="
|
199
|
+
<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>
|
200
200
|
<p>Creates a new pixbuf by loading an image from a file.
|
201
|
-
The file format is detected automatically. If <a href="
|
201
|
+
The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
202
202
|
<em class="parameter"><code>error</code></em>
|
203
203
|
will be set. 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> and
|
204
|
-
<a href="
|
204
|
+
<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> domains.</p>
|
205
205
|
<p>The image will be scaled to fit in the requested size, preserving
|
206
206
|
the image's aspect ratio. Note that the returned pixbuf may be smaller
|
207
207
|
than <em class="parameter"><code>width</code></em>
|
@@ -244,7 +244,7 @@ and image at the requested size, regardless of aspect ratio, use
|
|
244
244
|
<div class="refsect3">
|
245
245
|
<a name="id-1.2.6.6.3.7"></a><h4>Returns</h4>
|
246
246
|
<p> A newly-created pixbuf with a reference count of 1, or
|
247
|
-
<a href="
|
247
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error conditions occurred: the file could not
|
248
248
|
be opened, there was no loader for the file's format, there was not
|
249
249
|
enough memory to allocate the image buffer, or the image file contained
|
250
250
|
invalid data.</p>
|
@@ -259,12 +259,12 @@ invalid data.</p>
|
|
259
259
|
gdk_pixbuf_new_from_file_at_scale (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
260
260
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
261
261
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
262
|
-
<em class="parameter"><code><a href="
|
263
|
-
<em class="parameter"><code><a href="
|
262
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
263
|
+
<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>
|
264
264
|
<p>Creates a new pixbuf by loading an image from a file. The file format is
|
265
|
-
detected automatically. If <a href="
|
265
|
+
detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then <em class="parameter"><code>error</code></em>
|
266
266
|
will be set.
|
267
|
-
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> and <a href="
|
267
|
+
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> and <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> domains.
|
268
268
|
The image will be scaled to fit in the requested size, optionally preserving
|
269
269
|
the image's aspect ratio. </p>
|
270
270
|
<p>When preserving the aspect ratio, a <em class="parameter"><code>width</code></em>
|
@@ -305,7 +305,7 @@ allowed since 2.8.</p>
|
|
305
305
|
</tr>
|
306
306
|
<tr>
|
307
307
|
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
308
|
-
<td class="parameter_description"><p><a href="
|
308
|
+
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
309
309
|
<td class="parameter_annotations"> </td>
|
310
310
|
</tr>
|
311
311
|
<tr>
|
@@ -318,7 +318,7 @@ allowed since 2.8.</p>
|
|
318
318
|
</div>
|
319
319
|
<div class="refsect3">
|
320
320
|
<a name="id-1.2.6.6.4.7"></a><h4>Returns</h4>
|
321
|
-
<p> A newly-created pixbuf with a reference count of 1, or <a href="
|
321
|
+
<p> A newly-created pixbuf with a reference count of 1, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
322
322
|
if any of several error conditions occurred: the file could not be opened,
|
323
323
|
there was no loader for the file's format, there was not enough memory to
|
324
324
|
allocate the image buffer, or the image file contained invalid data.</p>
|
@@ -330,9 +330,9 @@ allocate the image buffer, or the image file contained invalid data.</p>
|
|
330
330
|
<div class="refsect2">
|
331
331
|
<a name="gdk-pixbuf-get-file-info"></a><h3>gdk_pixbuf_get_file_info ()</h3>
|
332
332
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="returnvalue">GdkPixbufFormat</span></a> *
|
333
|
-
gdk_pixbuf_get_file_info (<em class="parameter"><code>const <a href="
|
334
|
-
<em class="parameter"><code><a href="
|
335
|
-
<em class="parameter"><code><a href="
|
333
|
+
gdk_pixbuf_get_file_info (<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> *filename</code></em>,
|
334
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>,
|
335
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre>
|
336
336
|
<p>Parses an image file far enough to determine its format and size.</p>
|
337
337
|
<div class="refsect3">
|
338
338
|
<a name="id-1.2.6.6.5.5"></a><h4>Parameters</h4>
|
@@ -350,24 +350,26 @@ gdk_pixbuf_get_file_info (<em class="parameter"><code>const <a href="/home/kou/w
|
|
350
350
|
</tr>
|
351
351
|
<tr>
|
352
352
|
<td class="parameter_name"><p>width</p></td>
|
353
|
-
<td class="parameter_description"><p> Return location for the width of the
|
354
|
-
|
353
|
+
<td class="parameter_description"><p> Return location for the width of the
|
354
|
+
image, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
355
|
+
<td class="parameter_annotations"><span class="annotation">[optional][<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
355
356
|
</tr>
|
356
357
|
<tr>
|
357
358
|
<td class="parameter_name"><p>height</p></td>
|
358
|
-
<td class="parameter_description"><p> Return location for the height of the
|
359
|
-
|
359
|
+
<td class="parameter_description"><p> Return location for the height of the
|
360
|
+
image, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
361
|
+
<td class="parameter_annotations"><span class="annotation">[optional][<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
360
362
|
</tr>
|
361
363
|
</tbody>
|
362
364
|
</table></div>
|
363
365
|
</div>
|
364
366
|
<div class="refsect3">
|
365
367
|
<a name="id-1.2.6.6.5.6"></a><h4>Returns</h4>
|
366
|
-
<p> A <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> describing
|
367
|
-
format of the file or <a href="
|
368
|
-
recognized. The return value is owned by GdkPixbuf and should
|
368
|
+
<p> A <a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="type">GdkPixbufFormat</span></a> describing
|
369
|
+
the image format of the file or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the image format wasn't
|
370
|
+
recognized. The return value is owned by <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> and should
|
369
371
|
not be freed. </p>
|
370
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
372
|
+
<p><span class="annotation">[nullable][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
371
373
|
</div>
|
372
374
|
<p class="since">Since 2.4</p>
|
373
375
|
</div>
|
@@ -376,9 +378,9 @@ not be freed. </p>
|
|
376
378
|
<a name="gdk-pixbuf-new-from-resource"></a><h3>gdk_pixbuf_new_from_resource ()</h3>
|
377
379
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
378
380
|
gdk_pixbuf_new_from_resource (<em class="parameter"><code>const <span class="type">char</span> *resource_path</code></em>,
|
379
|
-
<em class="parameter"><code><a href="
|
381
|
+
<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>
|
380
382
|
<p>Creates a new pixbuf by loading an image from an resource.</p>
|
381
|
-
<p>The file format is detected automatically. If <a href="
|
383
|
+
<p>The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
382
384
|
<em class="parameter"><code>error</code></em>
|
383
385
|
will be set.</p>
|
384
386
|
<div class="refsect3">
|
@@ -405,7 +407,7 @@ gdk_pixbuf_new_from_resource (<em class="parameter"><code>const <span class="typ
|
|
405
407
|
</div>
|
406
408
|
<div class="refsect3">
|
407
409
|
<a name="id-1.2.6.6.6.7"></a><h4>Returns</h4>
|
408
|
-
<p> A newly-created pixbuf, or <a href="
|
410
|
+
<p> A newly-created pixbuf, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
409
411
|
conditions occurred: the file could not be opened, the image format is
|
410
412
|
not supported, there was not enough memory to allocate the image buffer,
|
411
413
|
the stream contained invalid data, or the operation was cancelled.</p>
|
@@ -420,10 +422,10 @@ the stream contained invalid data, or the operation was cancelled.</p>
|
|
420
422
|
gdk_pixbuf_new_from_resource_at_scale (<em class="parameter"><code>const <span class="type">char</span> *resource_path</code></em>,
|
421
423
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
422
424
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
423
|
-
<em class="parameter"><code><a href="
|
424
|
-
<em class="parameter"><code><a href="
|
425
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
426
|
+
<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>
|
425
427
|
<p>Creates a new pixbuf by loading an image from an resource.</p>
|
426
|
-
<p>The file format is detected automatically. If <a href="
|
428
|
+
<p>The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
427
429
|
<em class="parameter"><code>error</code></em>
|
428
430
|
will be set.</p>
|
429
431
|
<p>The image will be scaled to fit in the requested size, optionally
|
@@ -463,7 +465,7 @@ exact given width. When not preserving aspect ratio, a <em class="parameter"><co
|
|
463
465
|
</tr>
|
464
466
|
<tr>
|
465
467
|
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
466
|
-
<td class="parameter_description"><p><a href="
|
468
|
+
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
467
469
|
<td class="parameter_annotations"> </td>
|
468
470
|
</tr>
|
469
471
|
<tr>
|
@@ -476,7 +478,7 @@ exact given width. When not preserving aspect ratio, a <em class="parameter"><co
|
|
476
478
|
</div>
|
477
479
|
<div class="refsect3">
|
478
480
|
<a name="id-1.2.6.6.7.9"></a><h4>Returns</h4>
|
479
|
-
<p> A newly-created pixbuf, or <a href="
|
481
|
+
<p> A newly-created pixbuf, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
480
482
|
conditions occurred: the file could not be opened, the image format is
|
481
483
|
not supported, there was not enough memory to allocate the image buffer,
|
482
484
|
the stream contained invalid data, or the operation was cancelled.</p>
|
@@ -488,17 +490,17 @@ the stream contained invalid data, or the operation was cancelled.</p>
|
|
488
490
|
<div class="refsect2">
|
489
491
|
<a name="gdk-pixbuf-new-from-stream"></a><h3>gdk_pixbuf_new_from_stream ()</h3>
|
490
492
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
491
|
-
gdk_pixbuf_new_from_stream (<em class="parameter"><code><a href="
|
492
|
-
<em class="parameter"><code><a href="
|
493
|
-
<em class="parameter"><code><a href="
|
493
|
+
gdk_pixbuf_new_from_stream (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
494
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
495
|
+
<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>
|
494
496
|
<p>Creates a new pixbuf by loading an image from an input stream. </p>
|
495
|
-
<p>The file format is detected automatically. If <a href="
|
497
|
+
<p>The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
496
498
|
<em class="parameter"><code>error</code></em>
|
497
499
|
will be set. The <em class="parameter"><code>cancellable</code></em>
|
498
500
|
can be used to abort the operation
|
499
501
|
from another thread. If the operation was cancelled, the error
|
500
502
|
<code class="literal">G_IO_ERROR_CANCELLED</code> will be returned. Other possible errors are in
|
501
|
-
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> and <a href="
|
503
|
+
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> 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>
|
502
504
|
<p>The stream is not closed.</p>
|
503
505
|
<div class="refsect3">
|
504
506
|
<a name="id-1.2.6.6.8.7"></a><h4>Parameters</h4>
|
@@ -511,12 +513,12 @@ the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERR
|
|
511
513
|
<tbody>
|
512
514
|
<tr>
|
513
515
|
<td class="parameter_name"><p>stream</p></td>
|
514
|
-
<td class="parameter_description"><p>a <a href="
|
516
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</p></td>
|
515
517
|
<td class="parameter_annotations"> </td>
|
516
518
|
</tr>
|
517
519
|
<tr>
|
518
520
|
<td class="parameter_name"><p>cancellable</p></td>
|
519
|
-
<td class="parameter_description"><p> optional <a href="
|
521
|
+
<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>
|
520
522
|
<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>
|
521
523
|
</tr>
|
522
524
|
<tr>
|
@@ -529,7 +531,7 @@ the <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERR
|
|
529
531
|
</div>
|
530
532
|
<div class="refsect3">
|
531
533
|
<a name="id-1.2.6.6.8.8"></a><h4>Returns</h4>
|
532
|
-
<p> A newly-created pixbuf, or <a href="
|
534
|
+
<p> A newly-created pixbuf, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
533
535
|
conditions occurred: the file could not be opened, the image format is
|
534
536
|
not supported, there was not enough memory to allocate the image buffer,
|
535
537
|
the stream contained invalid data, or the operation was cancelled.</p>
|
@@ -541,10 +543,10 @@ the stream contained invalid data, or the operation was cancelled.</p>
|
|
541
543
|
<div class="refsect2">
|
542
544
|
<a name="gdk-pixbuf-new-from-stream-async"></a><h3>gdk_pixbuf_new_from_stream_async ()</h3>
|
543
545
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
544
|
-
gdk_pixbuf_new_from_stream_async (<em class="parameter"><code><a href="
|
545
|
-
<em class="parameter"><code><a href="
|
546
|
-
<em class="parameter"><code><a href="
|
547
|
-
<em class="parameter"><code><a href="
|
546
|
+
gdk_pixbuf_new_from_stream_async (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
547
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
548
|
+
<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>,
|
549
|
+
<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>);</pre>
|
548
550
|
<p>Creates a new pixbuf by asynchronously loading an image from an input stream.</p>
|
549
551
|
<p>For more details see <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream" title="gdk_pixbuf_new_from_stream ()"><code class="function">gdk_pixbuf_new_from_stream()</code></a>, which is the synchronous
|
550
552
|
version of this function.</p>
|
@@ -562,17 +564,17 @@ You can then call <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-
|
|
562
564
|
<tbody>
|
563
565
|
<tr>
|
564
566
|
<td class="parameter_name"><p>stream</p></td>
|
565
|
-
<td class="parameter_description"><p>a <a href="
|
567
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the pixbuf</p></td>
|
566
568
|
<td class="parameter_annotations"> </td>
|
567
569
|
</tr>
|
568
570
|
<tr>
|
569
571
|
<td class="parameter_name"><p>cancellable</p></td>
|
570
|
-
<td class="parameter_description"><p> optional <a href="
|
572
|
+
<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>
|
571
573
|
<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>
|
572
574
|
</tr>
|
573
575
|
<tr>
|
574
576
|
<td class="parameter_name"><p>callback</p></td>
|
575
|
-
<td class="parameter_description"><p>a <a href="
|
577
|
+
<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>
|
576
578
|
<td class="parameter_annotations"> </td>
|
577
579
|
</tr>
|
578
580
|
<tr>
|
@@ -589,8 +591,8 @@ You can then call <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-
|
|
589
591
|
<div class="refsect2">
|
590
592
|
<a name="gdk-pixbuf-new-from-stream-finish"></a><h3>gdk_pixbuf_new_from_stream_finish ()</h3>
|
591
593
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
592
|
-
gdk_pixbuf_new_from_stream_finish (<em class="parameter"><code><a href="
|
593
|
-
<em class="parameter"><code><a href="
|
594
|
+
gdk_pixbuf_new_from_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>,
|
595
|
+
<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>
|
594
596
|
<p>Finishes an asynchronous pixbuf creation operation started with
|
595
597
|
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-async" title="gdk_pixbuf_new_from_stream_async ()"><code class="function">gdk_pixbuf_new_from_stream_async()</code></a>.</p>
|
596
598
|
<div class="refsect3">
|
@@ -604,12 +606,12 @@ gdk_pixbuf_new_from_stream_finish (<em class="parameter"><code><a href="/home/ko
|
|
604
606
|
<tbody>
|
605
607
|
<tr>
|
606
608
|
<td class="parameter_name"><p>async_result</p></td>
|
607
|
-
<td class="parameter_description"><p>a <a href="
|
609
|
+
<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>
|
608
610
|
<td class="parameter_annotations"> </td>
|
609
611
|
</tr>
|
610
612
|
<tr>
|
611
613
|
<td class="parameter_name"><p>error</p></td>
|
612
|
-
<td class="parameter_description"><p>a <a href="
|
614
|
+
<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>
|
613
615
|
<td class="parameter_annotations"> </td>
|
614
616
|
</tr>
|
615
617
|
</tbody>
|
@@ -617,8 +619,8 @@ gdk_pixbuf_new_from_stream_finish (<em class="parameter"><code><a href="/home/ko
|
|
617
619
|
</div>
|
618
620
|
<div class="refsect3">
|
619
621
|
<a name="id-1.2.6.6.10.6"></a><h4>Returns</h4>
|
620
|
-
<p> a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> or <a href="
|
621
|
-
object with <a href="
|
622
|
+
<p> a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. Free the returned
|
623
|
+
object with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
622
624
|
<p></p>
|
623
625
|
</div>
|
624
626
|
<p class="since">Since 2.24</p>
|
@@ -627,33 +629,38 @@ object with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/sh
|
|
627
629
|
<div class="refsect2">
|
628
630
|
<a name="gdk-pixbuf-new-from-stream-at-scale"></a><h3>gdk_pixbuf_new_from_stream_at_scale ()</h3>
|
629
631
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
630
|
-
gdk_pixbuf_new_from_stream_at_scale (<em class="parameter"><code><a href="
|
631
|
-
<em class="parameter"><code><a href="
|
632
|
-
<em class="parameter"><code><a href="
|
633
|
-
<em class="parameter"><code><a href="
|
634
|
-
<em class="parameter"><code><a href="
|
635
|
-
<em class="parameter"><code><a href="
|
632
|
+
gdk_pixbuf_new_from_stream_at_scale (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
633
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
634
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
635
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
636
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
637
|
+
<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>
|
636
638
|
<p>Creates a new pixbuf by loading an image from an input stream. </p>
|
637
|
-
<p>The file format is detected automatically. If <a href="
|
639
|
+
<p>The file format is detected automatically. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
638
640
|
<em class="parameter"><code>error</code></em>
|
639
641
|
will be set. The <em class="parameter"><code>cancellable</code></em>
|
640
642
|
can be used to abort the operation
|
641
643
|
from another thread. If the operation was cancelled, the error
|
642
644
|
<code class="literal">G_IO_ERROR_CANCELLED</code> will be returned. Other possible errors are in
|
643
|
-
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> and <a href="
|
645
|
+
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> 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>
|
644
646
|
<p>The image will be scaled to fit in the requested size, optionally
|
645
|
-
preserving the image's aspect ratio
|
646
|
-
a <em class="parameter"><code>width</code></em>
|
647
|
-
of -1 will cause the image to be
|
648
|
-
height, and a <em class="parameter"><code>height</code></em>
|
649
|
-
of -1 will cause the image
|
650
|
-
exact given width.
|
651
|
-
|
652
|
-
|
653
|
-
|
647
|
+
preserving the image's aspect ratio.</p>
|
648
|
+
<p>When preserving the aspect ratio, a <em class="parameter"><code>width</code></em>
|
649
|
+
of -1 will cause the image to be
|
650
|
+
scaled to the exact given height, and a <em class="parameter"><code>height</code></em>
|
651
|
+
of -1 will cause the image
|
652
|
+
to be scaled to the exact given width. If both <em class="parameter"><code>width</code></em>
|
653
|
+
and <em class="parameter"><code>height</code></em>
|
654
|
+
are
|
655
|
+
given, this function will behave as if the smaller of the two values
|
656
|
+
is passed as -1.</p>
|
657
|
+
<p>When not preserving aspect ratio, a <em class="parameter"><code>width</code></em>
|
658
|
+
or <em class="parameter"><code>height</code></em>
|
659
|
+
of -1 means to not
|
660
|
+
scale the image at all in that dimension.</p>
|
654
661
|
<p>The stream is not closed.</p>
|
655
662
|
<div class="refsect3">
|
656
|
-
<a name="id-1.2.6.6.11.
|
663
|
+
<a name="id-1.2.6.6.11.10"></a><h4>Parameters</h4>
|
657
664
|
<div class="informaltable"><table width="100%" border="0">
|
658
665
|
<colgroup>
|
659
666
|
<col width="150px" class="parameters_name">
|
@@ -663,7 +670,7 @@ exact given width. When not preserving aspect ratio, a <em class="parameter"><co
|
|
663
670
|
<tbody>
|
664
671
|
<tr>
|
665
672
|
<td class="parameter_name"><p>stream</p></td>
|
666
|
-
<td class="parameter_description"><p>a <a href="
|
673
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</p></td>
|
667
674
|
<td class="parameter_annotations"> </td>
|
668
675
|
</tr>
|
669
676
|
<tr>
|
@@ -678,12 +685,12 @@ exact given width. When not preserving aspect ratio, a <em class="parameter"><co
|
|
678
685
|
</tr>
|
679
686
|
<tr>
|
680
687
|
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
681
|
-
<td class="parameter_description"><p><a href="
|
688
|
+
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
682
689
|
<td class="parameter_annotations"> </td>
|
683
690
|
</tr>
|
684
691
|
<tr>
|
685
692
|
<td class="parameter_name"><p>cancellable</p></td>
|
686
|
-
<td class="parameter_description"><p> optional <a href="
|
693
|
+
<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>
|
687
694
|
<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>
|
688
695
|
</tr>
|
689
696
|
<tr>
|
@@ -695,8 +702,8 @@ exact given width. When not preserving aspect ratio, a <em class="parameter"><co
|
|
695
702
|
</table></div>
|
696
703
|
</div>
|
697
704
|
<div class="refsect3">
|
698
|
-
<a name="id-1.2.6.6.11.
|
699
|
-
<p> A newly-created pixbuf, or <a href="
|
705
|
+
<a name="id-1.2.6.6.11.11"></a><h4>Returns</h4>
|
706
|
+
<p> A newly-created pixbuf, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
700
707
|
conditions occurred: the file could not be opened, the image format is
|
701
708
|
not supported, there was not enough memory to allocate the image buffer,
|
702
709
|
the stream contained invalid data, or the operation was cancelled.</p>
|
@@ -709,13 +716,13 @@ the stream contained invalid data, or the operation was cancelled.</p>
|
|
709
716
|
<a name="gdk-pixbuf-new-from-stream-at-scale-async"></a><h3>gdk_pixbuf_new_from_stream_at_scale_async ()</h3>
|
710
717
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
711
718
|
gdk_pixbuf_new_from_stream_at_scale_async
|
712
|
-
(<em class="parameter"><code><a href="
|
713
|
-
<em class="parameter"><code><a href="
|
714
|
-
<em class="parameter"><code><a href="
|
715
|
-
<em class="parameter"><code><a href="
|
716
|
-
<em class="parameter"><code><a href="
|
717
|
-
<em class="parameter"><code><a href="
|
718
|
-
<em class="parameter"><code><a href="
|
719
|
+
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
720
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
721
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
722
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
723
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
724
|
+
<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>,
|
725
|
+
<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>);</pre>
|
719
726
|
<p>Creates a new pixbuf by asynchronously loading an image from an input stream.</p>
|
720
727
|
<p>For more details see <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-at-scale" title="gdk_pixbuf_new_from_stream_at_scale ()"><code class="function">gdk_pixbuf_new_from_stream_at_scale()</code></a>, which is the synchronous
|
721
728
|
version of this function.</p>
|
@@ -733,7 +740,7 @@ You can then call <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-
|
|
733
740
|
<tbody>
|
734
741
|
<tr>
|
735
742
|
<td class="parameter_name"><p>stream</p></td>
|
736
|
-
<td class="parameter_description"><p>a <a href="
|
743
|
+
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/gio/unstable/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the pixbuf</p></td>
|
737
744
|
<td class="parameter_annotations"> </td>
|
738
745
|
</tr>
|
739
746
|
<tr>
|
@@ -748,17 +755,17 @@ You can then call <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-
|
|
748
755
|
</tr>
|
749
756
|
<tr>
|
750
757
|
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
751
|
-
<td class="parameter_description"><p><a href="
|
758
|
+
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
752
759
|
<td class="parameter_annotations"> </td>
|
753
760
|
</tr>
|
754
761
|
<tr>
|
755
762
|
<td class="parameter_name"><p>cancellable</p></td>
|
756
|
-
<td class="parameter_description"><p> optional <a href="
|
763
|
+
<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>
|
757
764
|
<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>
|
758
765
|
</tr>
|
759
766
|
<tr>
|
760
767
|
<td class="parameter_name"><p>callback</p></td>
|
761
|
-
<td class="parameter_description"><p>a <a href="
|
768
|
+
<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>
|
762
769
|
<td class="parameter_annotations"> </td>
|
763
770
|
</tr>
|
764
771
|
<tr>
|