gdk_pixbuf2 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/2.1/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-animation.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +2 -2
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +1 -3
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +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/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 +1 -1
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +30 -27
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +557 -416
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +10 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +9 -11
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +22 -24
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +10 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +16 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +14 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +11 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +165 -167
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +768 -578
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +546 -428
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +549 -474
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +321 -265
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +467 -349
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +887 -662
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +122 -91
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +656 -518
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +631 -484
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +247 -171
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +110 -89
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +119 -98
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +275 -230
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +784 -581
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +86 -55
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +153 -192
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +98 -97
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +247 -94
- 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 +4 -4
@@ -8,15 +8,14 @@
|
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html" title="Reference Counting and Memory Mangement">
|
10
10
|
<link rel="next" href="gdk-pixbuf-File-saving.html" title="File saving">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<td width="100%" align="left">
|
17
|
-
<a href="#" class="shortcut">Top</a>
|
18
|
-
|
19
|
-
<a href="#gdk-pixbuf-File-Loading.description" class="shortcut">Description</a>
|
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-Loading.description" class="shortcut">Description</a></span>
|
20
19
|
</td>
|
21
20
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
22
21
|
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
@@ -30,640 +29,759 @@
|
|
30
29
|
<h2><span class="refentrytitle"><a name="gdk-pixbuf-File-Loading.top_of_page"></a>File Loading</span></h2>
|
31
30
|
<p>File Loading — Loading a pixbuf from a file.</p>
|
32
31
|
</td>
|
33
|
-
<td valign="top" align="right"></td>
|
32
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
34
33
|
</tr></table></div>
|
35
|
-
<div class="
|
36
|
-
<a name="gdk-pixbuf-File-Loading.
|
37
|
-
<
|
38
|
-
|
39
|
-
|
40
|
-
<
|
41
|
-
|
42
|
-
<
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<a class="link" href="gdk-pixbuf-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
<a class="link" href="gdk-pixbuf-
|
70
|
-
|
71
|
-
<
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
<
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
34
|
+
<div class="refsect1">
|
35
|
+
<a name="gdk-pixbuf-File-Loading.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 class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
45
|
+
</td>
|
46
|
+
<td class="function_name">
|
47
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file" title="gdk_pixbuf_new_from_file ()">gdk_pixbuf_new_from_file</a> <span class="c_punctuation">()</span>
|
48
|
+
</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td class="function_type">
|
52
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
53
|
+
</td>
|
54
|
+
<td class="function_name">
|
55
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file-at-size" title="gdk_pixbuf_new_from_file_at_size ()">gdk_pixbuf_new_from_file_at_size</a> <span class="c_punctuation">()</span>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<td class="function_type">
|
60
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
61
|
+
</td>
|
62
|
+
<td class="function_name">
|
63
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file-at-scale" title="gdk_pixbuf_new_from_file_at_scale ()">gdk_pixbuf_new_from_file_at_scale</a> <span class="c_punctuation">()</span>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td class="function_type">
|
68
|
+
<a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="returnvalue">GdkPixbufFormat</span></a> *
|
69
|
+
</td>
|
70
|
+
<td class="function_name">
|
71
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-get-file-info" title="gdk_pixbuf_get_file_info ()">gdk_pixbuf_get_file_info</a> <span class="c_punctuation">()</span>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td class="function_type">
|
76
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
77
|
+
</td>
|
78
|
+
<td class="function_name">
|
79
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-resource" title="gdk_pixbuf_new_from_resource ()">gdk_pixbuf_new_from_resource</a> <span class="c_punctuation">()</span>
|
80
|
+
</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td class="function_type">
|
84
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
85
|
+
</td>
|
86
|
+
<td class="function_name">
|
87
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-resource-at-scale" title="gdk_pixbuf_new_from_resource_at_scale ()">gdk_pixbuf_new_from_resource_at_scale</a> <span class="c_punctuation">()</span>
|
88
|
+
</td>
|
89
|
+
</tr>
|
90
|
+
<tr>
|
91
|
+
<td class="function_type">
|
92
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
93
|
+
</td>
|
94
|
+
<td class="function_name">
|
95
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream" title="gdk_pixbuf_new_from_stream ()">gdk_pixbuf_new_from_stream</a> <span class="c_punctuation">()</span>
|
96
|
+
</td>
|
97
|
+
</tr>
|
98
|
+
<tr>
|
99
|
+
<td class="function_type">
|
100
|
+
<span class="returnvalue">void</span>
|
101
|
+
</td>
|
102
|
+
<td class="function_name">
|
103
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-async" title="gdk_pixbuf_new_from_stream_async ()">gdk_pixbuf_new_from_stream_async</a> <span class="c_punctuation">()</span>
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
<tr>
|
107
|
+
<td class="function_type">
|
108
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
109
|
+
</td>
|
110
|
+
<td class="function_name">
|
111
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-finish" title="gdk_pixbuf_new_from_stream_finish ()">gdk_pixbuf_new_from_stream_finish</a> <span class="c_punctuation">()</span>
|
112
|
+
</td>
|
113
|
+
</tr>
|
114
|
+
<tr>
|
115
|
+
<td class="function_type">
|
116
|
+
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
117
|
+
</td>
|
118
|
+
<td class="function_name">
|
119
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-at-scale" title="gdk_pixbuf_new_from_stream_at_scale ()">gdk_pixbuf_new_from_stream_at_scale</a> <span class="c_punctuation">()</span>
|
120
|
+
</td>
|
121
|
+
</tr>
|
122
|
+
<tr>
|
123
|
+
<td class="function_type">
|
124
|
+
<span class="returnvalue">void</span>
|
125
|
+
</td>
|
126
|
+
<td class="function_name">
|
127
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-at-scale-async" title="gdk_pixbuf_new_from_stream_at_scale_async ()">gdk_pixbuf_new_from_stream_at_scale_async</a> <span class="c_punctuation">()</span>
|
128
|
+
</td>
|
129
|
+
</tr>
|
130
|
+
</tbody>
|
131
|
+
</table></div>
|
132
|
+
</div>
|
133
|
+
<div class="refsect1">
|
134
|
+
<a name="gdk-pixbuf-File-Loading.includes"></a><h2>Includes</h2>
|
135
|
+
<pre class="synopsis">#include <gdk-pixbuf/gdk-pixbuf.h>
|
85
136
|
</pre>
|
86
137
|
</div>
|
87
138
|
<div class="refsect1">
|
88
139
|
<a name="gdk-pixbuf-File-Loading.description"></a><h2>Description</h2>
|
89
|
-
<p>
|
90
|
-
The GdkPixBuf library provides a simple mechanism for loading
|
140
|
+
<p>The GdkPixBuf library provides a simple mechanism for loading
|
91
141
|
an image from a file in synchronous fashion. This means that the
|
92
142
|
library takes control of the application while the file is being
|
93
143
|
loaded; from the user's point of view, the application will block
|
94
|
-
until the image is done loading
|
95
|
-
|
96
|
-
<p>
|
97
|
-
This interface can be used by applications in which blocking is
|
144
|
+
until the image is done loading.</p>
|
145
|
+
<p>This interface can be used by applications in which blocking is
|
98
146
|
acceptable while an image is being loaded. It can also be used to
|
99
147
|
load small images in general. Applications that need progressive
|
100
|
-
loading can use the <a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> functionality instead
|
101
|
-
</p>
|
148
|
+
loading can use the <a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> functionality instead.</p>
|
102
149
|
</div>
|
103
150
|
<div class="refsect1">
|
104
|
-
<a name="gdk-pixbuf-File-Loading.
|
151
|
+
<a name="gdk-pixbuf-File-Loading.functions_details"></a><h2>Functions</h2>
|
105
152
|
<div class="refsect2">
|
106
|
-
<a name="gdk-pixbuf-new-from-file"></a><h3>gdk_pixbuf_new_from_file
|
107
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
108
|
-
|
109
|
-
<
|
110
|
-
Creates a new pixbuf by loading an image from a file. The file format is
|
111
|
-
detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then <em class="parameter"><code>error</code></em>
|
112
|
-
|
113
|
-
</p>
|
114
|
-
<div class="
|
153
|
+
<a name="gdk-pixbuf-new-from-file"></a><h3>gdk_pixbuf_new_from_file ()</h3>
|
154
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
157
|
+
<p>Creates a new pixbuf by loading an image from a file. The file format is
|
158
|
+
detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then <em class="parameter"><code>error</code></em>
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains.</p>
|
161
|
+
<div class="refsect3">
|
162
|
+
<a name="id-1.2.6.6.2.5"></a><h4>Parameters</h4>
|
163
|
+
<div class="informaltable"><table width="100%" border="0">
|
115
164
|
<colgroup>
|
116
|
-
<col
|
117
|
-
<col>
|
165
|
+
<col width="150px" class="parameters_name">
|
166
|
+
<col class="parameters_description">
|
167
|
+
<col width="200px" class="parameters_annotations">
|
118
168
|
</colgroup>
|
119
169
|
<tbody>
|
120
170
|
<tr>
|
121
|
-
<td
|
122
|
-
<td>Name of file to load, in the GLib file name encoding</td>
|
171
|
+
<td class="parameter_name"><p>filename</p></td>
|
172
|
+
<td class="parameter_description"><p>Name of file to load, in the GLib file name encoding</p></td>
|
173
|
+
<td class="parameter_annotations"> </td>
|
123
174
|
</tr>
|
124
175
|
<tr>
|
125
|
-
<td
|
126
|
-
<td>Return location for an error</td>
|
127
|
-
</
|
128
|
-
<tr>
|
129
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
130
|
-
<td>A newly-created pixbuf with a reference count of 1, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
131
|
-
any of several error conditions occurred: the file could not be opened,
|
132
|
-
there was no loader for the file's format, there was not enough memory to
|
133
|
-
allocate the image buffer, or the image file contained invalid data.</td>
|
176
|
+
<td class="parameter_name"><p>error</p></td>
|
177
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
178
|
+
<td class="parameter_annotations"> </td>
|
134
179
|
</tr>
|
135
180
|
</tbody>
|
136
181
|
</table></div>
|
137
182
|
</div>
|
183
|
+
<div class="refsect3">
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
186
|
+
any of several error conditions occurred: the file could not be opened,
|
187
|
+
there was no loader for the file's format, there was not enough memory to
|
188
|
+
allocate the image buffer, or the image file contained invalid data.</p>
|
189
|
+
<p></p>
|
190
|
+
</div>
|
191
|
+
</div>
|
138
192
|
<hr>
|
139
193
|
<div class="refsect2">
|
140
|
-
<a name="gdk-pixbuf-new-from-file-at-size"></a><h3>gdk_pixbuf_new_from_file_at_size
|
141
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
<
|
146
|
-
Creates a new pixbuf by loading an image from a file.
|
194
|
+
<a name="gdk-pixbuf-new-from-file-at-size"></a><h3>gdk_pixbuf_new_from_file_at_size ()</h3>
|
195
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
196
|
+
gdk_pixbuf_new_from_file_at_size (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
197
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
198
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
199
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
200
|
+
<p>Creates a new pixbuf by loading an image from a file.
|
147
201
|
The file format is detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
148
|
-
<em class="parameter"><code>error</code></em>
|
149
|
-
<a href="
|
150
|
-
</p>
|
151
|
-
<p>
|
152
|
-
The image will be scaled to fit in the requested size, preserving
|
202
|
+
<em class="parameter"><code>error</code></em>
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains.</p>
|
205
|
+
<p>The image will be scaled to fit in the requested size, preserving
|
153
206
|
the image's aspect ratio. Note that the returned pixbuf may be smaller
|
154
|
-
than <em class="parameter"><code>width</code></em>
|
207
|
+
than <em class="parameter"><code>width</code></em>
|
208
|
+
x <em class="parameter"><code>height</code></em>
|
209
|
+
, if the aspect ratio requires it. To load
|
155
210
|
and image at the requested size, regardless of aspect ratio, use
|
156
|
-
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file-at-scale" title="gdk_pixbuf_new_from_file_at_scale
|
157
|
-
|
158
|
-
<
|
211
|
+
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file-at-scale" title="gdk_pixbuf_new_from_file_at_scale ()"><code class="function">gdk_pixbuf_new_from_file_at_scale()</code></a>.</p>
|
212
|
+
<div class="refsect3">
|
213
|
+
<a name="id-1.2.6.6.3.6"></a><h4>Parameters</h4>
|
214
|
+
<div class="informaltable"><table width="100%" border="0">
|
159
215
|
<colgroup>
|
160
|
-
<col
|
161
|
-
<col>
|
216
|
+
<col width="150px" class="parameters_name">
|
217
|
+
<col class="parameters_description">
|
218
|
+
<col width="200px" class="parameters_annotations">
|
162
219
|
</colgroup>
|
163
220
|
<tbody>
|
164
221
|
<tr>
|
165
|
-
<td
|
166
|
-
<td>Name of file to load, in the GLib file name encoding</td>
|
222
|
+
<td class="parameter_name"><p>filename</p></td>
|
223
|
+
<td class="parameter_description"><p>Name of file to load, in the GLib file name encoding</p></td>
|
224
|
+
<td class="parameter_annotations"> </td>
|
167
225
|
</tr>
|
168
226
|
<tr>
|
169
|
-
<td
|
170
|
-
<td>The width the image should have or -1 to not constrain the width</td>
|
227
|
+
<td class="parameter_name"><p>width</p></td>
|
228
|
+
<td class="parameter_description"><p>The width the image should have or -1 to not constrain the width</p></td>
|
229
|
+
<td class="parameter_annotations"> </td>
|
171
230
|
</tr>
|
172
231
|
<tr>
|
173
|
-
<td
|
174
|
-
<td>The height the image should have or -1 to not constrain the height</td>
|
232
|
+
<td class="parameter_name"><p>height</p></td>
|
233
|
+
<td class="parameter_description"><p>The height the image should have or -1 to not constrain the height</p></td>
|
234
|
+
<td class="parameter_annotations"> </td>
|
175
235
|
</tr>
|
176
236
|
<tr>
|
177
|
-
<td
|
178
|
-
<td>Return location for an error</td>
|
237
|
+
<td class="parameter_name"><p>error</p></td>
|
238
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
239
|
+
<td class="parameter_annotations"> </td>
|
179
240
|
</tr>
|
180
|
-
|
181
|
-
|
182
|
-
|
241
|
+
</tbody>
|
242
|
+
</table></div>
|
243
|
+
</div>
|
244
|
+
<div class="refsect3">
|
245
|
+
<a name="id-1.2.6.6.3.7"></a><h4>Returns</h4>
|
246
|
+
<p> A newly-created pixbuf with a reference count of 1, or
|
183
247
|
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error conditions occurred: the file could not
|
184
248
|
be opened, there was no loader for the file's format, there was not
|
185
249
|
enough memory to allocate the image buffer, or the image file contained
|
186
|
-
invalid data.</
|
187
|
-
|
188
|
-
</
|
189
|
-
</table></div>
|
250
|
+
invalid data.</p>
|
251
|
+
<p></p>
|
252
|
+
</div>
|
190
253
|
<p class="since">Since 2.4</p>
|
191
254
|
</div>
|
192
255
|
<hr>
|
193
256
|
<div class="refsect2">
|
194
|
-
<a name="gdk-pixbuf-new-from-file-at-scale"></a><h3>gdk_pixbuf_new_from_file_at_scale
|
195
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
<
|
201
|
-
Creates a new pixbuf by loading an image from a file. The file format is
|
202
|
-
detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then <em class="parameter"><code>error</code></em>
|
257
|
+
<a name="gdk-pixbuf-new-from-file-at-scale"></a><h3>gdk_pixbuf_new_from_file_at_scale ()</h3>
|
258
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
259
|
+
gdk_pixbuf_new_from_file_at_scale (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
260
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
261
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
262
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
263
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
264
|
+
<p>Creates a new pixbuf by loading an image from a file. The file format is
|
265
|
+
detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then <em class="parameter"><code>error</code></em>
|
266
|
+
will be set.
|
203
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html#G-FILE-ERROR:CAPS"><span class="type">G_FILE_ERROR</span></a> domains.
|
204
268
|
The image will be scaled to fit in the requested size, optionally preserving
|
205
|
-
the image's aspect ratio.
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
269
|
+
the image's aspect ratio. </p>
|
270
|
+
<p>When preserving the aspect ratio, a <em class="parameter"><code>width</code></em>
|
271
|
+
of -1 will cause the image
|
272
|
+
to be scaled to the exact given height, and a <em class="parameter"><code>height</code></em>
|
273
|
+
of -1 will cause
|
210
274
|
the image to be scaled to the exact given width. When not preserving
|
211
|
-
aspect ratio, a <em class="parameter"><code>width</code></em>
|
212
|
-
|
213
|
-
|
214
|
-
</
|
215
|
-
<
|
275
|
+
aspect ratio, a <em class="parameter"><code>width</code></em>
|
276
|
+
or <em class="parameter"><code>height</code></em>
|
277
|
+
of -1 means to not scale the image
|
278
|
+
at all in that dimension. Negative values for <em class="parameter"><code>width</code></em>
|
279
|
+
and <em class="parameter"><code>height</code></em>
|
280
|
+
are
|
281
|
+
allowed since 2.8.</p>
|
282
|
+
<div class="refsect3">
|
283
|
+
<a name="id-1.2.6.6.4.6"></a><h4>Parameters</h4>
|
284
|
+
<div class="informaltable"><table width="100%" border="0">
|
216
285
|
<colgroup>
|
217
|
-
<col
|
218
|
-
<col>
|
286
|
+
<col width="150px" class="parameters_name">
|
287
|
+
<col class="parameters_description">
|
288
|
+
<col width="200px" class="parameters_annotations">
|
219
289
|
</colgroup>
|
220
290
|
<tbody>
|
221
291
|
<tr>
|
222
|
-
<td
|
223
|
-
<td>Name of file to load, in the GLib file name encoding</td>
|
224
|
-
</
|
225
|
-
<tr>
|
226
|
-
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
227
|
-
<td>The width the image should have or -1 to not constrain the width</td>
|
292
|
+
<td class="parameter_name"><p>filename</p></td>
|
293
|
+
<td class="parameter_description"><p>Name of file to load, in the GLib file name encoding</p></td>
|
294
|
+
<td class="parameter_annotations"> </td>
|
228
295
|
</tr>
|
229
296
|
<tr>
|
230
|
-
<td
|
231
|
-
<td>The
|
297
|
+
<td class="parameter_name"><p>width</p></td>
|
298
|
+
<td class="parameter_description"><p>The width the image should have or -1 to not constrain the width</p></td>
|
299
|
+
<td class="parameter_annotations"> </td>
|
232
300
|
</tr>
|
233
301
|
<tr>
|
234
|
-
<td
|
235
|
-
<td>
|
236
|
-
<
|
302
|
+
<td class="parameter_name"><p>height</p></td>
|
303
|
+
<td class="parameter_description"><p>The height the image should have or -1 to not constrain the height</p></td>
|
304
|
+
<td class="parameter_annotations"> </td>
|
237
305
|
</tr>
|
238
306
|
<tr>
|
239
|
-
<td
|
240
|
-
<td>
|
307
|
+
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
308
|
+
<td class="parameter_description"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
309
|
+
<td class="parameter_annotations"> </td>
|
241
310
|
</tr>
|
242
311
|
<tr>
|
243
|
-
<td
|
244
|
-
<td
|
245
|
-
|
246
|
-
there was no loader for the file's format, there was not enough memory to
|
247
|
-
allocate the image buffer, or the image file contained invalid data.</td>
|
312
|
+
<td class="parameter_name"><p>error</p></td>
|
313
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
314
|
+
<td class="parameter_annotations"> </td>
|
248
315
|
</tr>
|
249
316
|
</tbody>
|
250
317
|
</table></div>
|
318
|
+
</div>
|
319
|
+
<div class="refsect3">
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
322
|
+
if any of several error conditions occurred: the file could not be opened,
|
323
|
+
there was no loader for the file's format, there was not enough memory to
|
324
|
+
allocate the image buffer, or the image file contained invalid data.</p>
|
325
|
+
<p></p>
|
326
|
+
</div>
|
251
327
|
<p class="since">Since 2.6</p>
|
252
328
|
</div>
|
253
329
|
<hr>
|
254
330
|
<div class="refsect2">
|
255
|
-
<a name="gdk-pixbuf-get-file-info"></a><h3>gdk_pixbuf_get_file_info
|
256
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-Module-Interface.html#GdkPixbufFormat" title="struct GdkPixbufFormat"><span class="returnvalue">GdkPixbufFormat</span></a>
|
257
|
-
|
258
|
-
|
259
|
-
<
|
260
|
-
Parses an image file far enough to determine its format and size
|
261
|
-
|
262
|
-
<
|
331
|
+
<a name="gdk-pixbuf-get-file-info"></a><h3>gdk_pixbuf_get_file_info ()</h3>
|
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
|
334
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *width</code></em>,
|
335
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre>
|
336
|
+
<p>Parses an image file far enough to determine its format and size.</p>
|
337
|
+
<div class="refsect3">
|
338
|
+
<a name="id-1.2.6.6.5.5"></a><h4>Parameters</h4>
|
339
|
+
<div class="informaltable"><table width="100%" border="0">
|
263
340
|
<colgroup>
|
264
|
-
<col
|
265
|
-
<col>
|
341
|
+
<col width="150px" class="parameters_name">
|
342
|
+
<col class="parameters_description">
|
343
|
+
<col width="200px" class="parameters_annotations">
|
266
344
|
</colgroup>
|
267
345
|
<tbody>
|
268
346
|
<tr>
|
269
|
-
<td
|
270
|
-
<td>The name of the file to identify.</td>
|
347
|
+
<td class="parameter_name"><p>filename</p></td>
|
348
|
+
<td class="parameter_description"><p>The name of the file to identify.</p></td>
|
349
|
+
<td class="parameter_annotations"> </td>
|
271
350
|
</tr>
|
272
351
|
<tr>
|
273
|
-
<td
|
274
|
-
<td>Return location for the width of the image, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
275
|
-
</td>
|
276
|
-
</tr>
|
277
|
-
<tr>
|
278
|
-
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
279
|
-
<td>Return location for the height of the image, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
|
280
|
-
</td>
|
352
|
+
<td class="parameter_name"><p>width</p></td>
|
353
|
+
<td class="parameter_description"><p> Return location for the width of the image, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
354
|
+
<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>
|
281
355
|
</tr>
|
282
356
|
<tr>
|
283
|
-
<td
|
284
|
-
<td
|
285
|
-
|
286
|
-
recognized. The return value is owned by GdkPixbuf and should
|
287
|
-
not be freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
|
288
|
-
</td>
|
357
|
+
<td class="parameter_name"><p>height</p></td>
|
358
|
+
<td class="parameter_description"><p> Return location for the height of the image, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
359
|
+
<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>
|
289
360
|
</tr>
|
290
361
|
</tbody>
|
291
362
|
</table></div>
|
363
|
+
</div>
|
364
|
+
<div class="refsect3">
|
365
|
+
<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 the image
|
367
|
+
format of the file or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the image format wasn't
|
368
|
+
recognized. The return value is owned by GdkPixbuf and should
|
369
|
+
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>
|
371
|
+
</div>
|
292
372
|
<p class="since">Since 2.4</p>
|
293
373
|
</div>
|
294
374
|
<hr>
|
295
375
|
<div class="refsect2">
|
296
|
-
<a name="gdk-pixbuf-new-from-resource"></a><h3>gdk_pixbuf_new_from_resource
|
297
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
298
|
-
|
299
|
-
<
|
300
|
-
Creates a new pixbuf by loading an image from an resource
|
301
|
-
|
302
|
-
<
|
303
|
-
|
304
|
-
<
|
305
|
-
</
|
306
|
-
<div class="
|
376
|
+
<a name="gdk-pixbuf-new-from-resource"></a><h3>gdk_pixbuf_new_from_resource ()</h3>
|
377
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
378
|
+
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
380
|
+
<p>Creates a new pixbuf by loading an image from an resource.</p>
|
381
|
+
<p>The file format is detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
382
|
+
<em class="parameter"><code>error</code></em>
|
383
|
+
will be set.</p>
|
384
|
+
<div class="refsect3">
|
385
|
+
<a name="id-1.2.6.6.6.6"></a><h4>Parameters</h4>
|
386
|
+
<div class="informaltable"><table width="100%" border="0">
|
307
387
|
<colgroup>
|
308
|
-
<col
|
309
|
-
<col>
|
388
|
+
<col width="150px" class="parameters_name">
|
389
|
+
<col class="parameters_description">
|
390
|
+
<col width="200px" class="parameters_annotations">
|
310
391
|
</colgroup>
|
311
392
|
<tbody>
|
312
393
|
<tr>
|
313
|
-
<td
|
314
|
-
<td>the path of the resource file</td>
|
394
|
+
<td class="parameter_name"><p>resource_path</p></td>
|
395
|
+
<td class="parameter_description"><p>the path of the resource file</p></td>
|
396
|
+
<td class="parameter_annotations"> </td>
|
315
397
|
</tr>
|
316
398
|
<tr>
|
317
|
-
<td
|
318
|
-
<td>Return location for an error</td>
|
319
|
-
</
|
320
|
-
<tr>
|
321
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
322
|
-
<td>A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
323
|
-
conditions occurred: the file could not be opened, the image format is
|
324
|
-
not supported, there was not enough memory to allocate the image buffer,
|
325
|
-
the stream contained invalid data, or the operation was cancelled.</td>
|
399
|
+
<td class="parameter_name"><p>error</p></td>
|
400
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
401
|
+
<td class="parameter_annotations"> </td>
|
326
402
|
</tr>
|
327
403
|
</tbody>
|
328
404
|
</table></div>
|
405
|
+
</div>
|
406
|
+
<div class="refsect3">
|
407
|
+
<a name="id-1.2.6.6.6.7"></a><h4>Returns</h4>
|
408
|
+
<p> A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
409
|
+
conditions occurred: the file could not be opened, the image format is
|
410
|
+
not supported, there was not enough memory to allocate the image buffer,
|
411
|
+
the stream contained invalid data, or the operation was cancelled.</p>
|
412
|
+
<p></p>
|
413
|
+
</div>
|
329
414
|
<p class="since">Since 2.26</p>
|
330
415
|
</div>
|
331
416
|
<hr>
|
332
417
|
<div class="refsect2">
|
333
|
-
<a name="gdk-pixbuf-new-from-resource-at-scale"></a><h3>gdk_pixbuf_new_from_resource_at_scale
|
334
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
<p>
|
341
|
-
|
342
|
-
</
|
343
|
-
|
344
|
-
The
|
345
|
-
<em class="parameter"><code>error</code></em> will be set.
|
346
|
-
</p>
|
347
|
-
<p>
|
348
|
-
The image will be scaled to fit in the requested size, optionally
|
418
|
+
<a name="gdk-pixbuf-new-from-resource-at-scale"></a><h3>gdk_pixbuf_new_from_resource_at_scale ()</h3>
|
419
|
+
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
420
|
+
gdk_pixbuf_new_from_resource_at_scale (<em class="parameter"><code>const <span class="type">char</span> *resource_path</code></em>,
|
421
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
422
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
423
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
424
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
425
|
+
<p>Creates a new pixbuf by loading an image from an resource.</p>
|
426
|
+
<p>The file format is detected automatically. If <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
427
|
+
<em class="parameter"><code>error</code></em>
|
428
|
+
will be set.</p>
|
429
|
+
<p>The image will be scaled to fit in the requested size, optionally
|
349
430
|
preserving the image's aspect ratio. When preserving the aspect ratio,
|
350
|
-
a <em class="parameter"><code>width</code></em>
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
</
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
<
|
431
|
+
a <em class="parameter"><code>width</code></em>
|
432
|
+
of -1 will cause the image to be scaled to the exact given
|
433
|
+
height, and a <em class="parameter"><code>height</code></em>
|
434
|
+
of -1 will cause the image to be scaled to the
|
435
|
+
exact given width. When not preserving aspect ratio, a <em class="parameter"><code>width</code></em>
|
436
|
+
or
|
437
|
+
<em class="parameter"><code>height</code></em>
|
438
|
+
of -1 means to not scale the image at all in that dimension.</p>
|
439
|
+
<p>The stream is not closed.</p>
|
440
|
+
<div class="refsect3">
|
441
|
+
<a name="id-1.2.6.6.7.8"></a><h4>Parameters</h4>
|
442
|
+
<div class="informaltable"><table width="100%" border="0">
|
359
443
|
<colgroup>
|
360
|
-
<col
|
361
|
-
<col>
|
444
|
+
<col width="150px" class="parameters_name">
|
445
|
+
<col class="parameters_description">
|
446
|
+
<col width="200px" class="parameters_annotations">
|
362
447
|
</colgroup>
|
363
448
|
<tbody>
|
364
449
|
<tr>
|
365
|
-
<td
|
366
|
-
<td>the path of the resource file</td>
|
367
|
-
</
|
368
|
-
<tr>
|
369
|
-
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
370
|
-
<td>The width the image should have or -1 to not constrain the width</td>
|
450
|
+
<td class="parameter_name"><p>resource_path</p></td>
|
451
|
+
<td class="parameter_description"><p>the path of the resource file</p></td>
|
452
|
+
<td class="parameter_annotations"> </td>
|
371
453
|
</tr>
|
372
454
|
<tr>
|
373
|
-
<td
|
374
|
-
<td>The
|
455
|
+
<td class="parameter_name"><p>width</p></td>
|
456
|
+
<td class="parameter_description"><p>The width the image should have or -1 to not constrain the width</p></td>
|
457
|
+
<td class="parameter_annotations"> </td>
|
375
458
|
</tr>
|
376
459
|
<tr>
|
377
|
-
<td
|
378
|
-
<td>
|
379
|
-
<
|
460
|
+
<td class="parameter_name"><p>height</p></td>
|
461
|
+
<td class="parameter_description"><p>The height the image should have or -1 to not constrain the height</p></td>
|
462
|
+
<td class="parameter_annotations"> </td>
|
380
463
|
</tr>
|
381
464
|
<tr>
|
382
|
-
<td
|
383
|
-
<td>
|
465
|
+
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
466
|
+
<td class="parameter_description"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
467
|
+
<td class="parameter_annotations"> </td>
|
384
468
|
</tr>
|
385
469
|
<tr>
|
386
|
-
<td
|
387
|
-
<td
|
388
|
-
|
389
|
-
not supported, there was not enough memory to allocate the image buffer,
|
390
|
-
the stream contained invalid data, or the operation was cancelled.</td>
|
470
|
+
<td class="parameter_name"><p>error</p></td>
|
471
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
472
|
+
<td class="parameter_annotations"> </td>
|
391
473
|
</tr>
|
392
474
|
</tbody>
|
393
475
|
</table></div>
|
476
|
+
</div>
|
477
|
+
<div class="refsect3">
|
478
|
+
<a name="id-1.2.6.6.7.9"></a><h4>Returns</h4>
|
479
|
+
<p> A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
480
|
+
conditions occurred: the file could not be opened, the image format is
|
481
|
+
not supported, there was not enough memory to allocate the image buffer,
|
482
|
+
the stream contained invalid data, or the operation was cancelled.</p>
|
483
|
+
<p></p>
|
484
|
+
</div>
|
394
485
|
<p class="since">Since 2.26</p>
|
395
486
|
</div>
|
396
487
|
<hr>
|
397
488
|
<div class="refsect2">
|
398
|
-
<a name="gdk-pixbuf-new-from-stream"></a><h3>gdk_pixbuf_new_from_stream
|
399
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
400
|
-
|
401
|
-
|
402
|
-
<
|
403
|
-
Creates a new pixbuf by loading an image from an input stream.
|
404
|
-
|
405
|
-
<
|
406
|
-
|
407
|
-
|
489
|
+
<a name="gdk-pixbuf-new-from-stream"></a><h3>gdk_pixbuf_new_from_stream ()</h3>
|
490
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
492
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
493
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
494
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
496
|
+
<em class="parameter"><code>error</code></em>
|
497
|
+
will be set. The <em class="parameter"><code>cancellable</code></em>
|
498
|
+
can be used to abort the operation
|
408
499
|
from another thread. If the operation was cancelled, the error
|
409
|
-
<
|
410
|
-
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains.
|
411
|
-
|
412
|
-
<
|
413
|
-
|
414
|
-
|
415
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
500
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains. </p>
|
502
|
+
<p>The stream is not closed.</p>
|
503
|
+
<div class="refsect3">
|
504
|
+
<a name="id-1.2.6.6.8.7"></a><h4>Parameters</h4>
|
505
|
+
<div class="informaltable"><table width="100%" border="0">
|
416
506
|
<colgroup>
|
417
|
-
<col
|
418
|
-
<col>
|
507
|
+
<col width="150px" class="parameters_name">
|
508
|
+
<col class="parameters_description">
|
509
|
+
<col width="200px" class="parameters_annotations">
|
419
510
|
</colgroup>
|
420
511
|
<tbody>
|
421
512
|
<tr>
|
422
|
-
<td
|
423
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</td>
|
513
|
+
<td class="parameter_name"><p>stream</p></td>
|
514
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</p></td>
|
515
|
+
<td class="parameter_annotations"> </td>
|
424
516
|
</tr>
|
425
517
|
<tr>
|
426
|
-
<td
|
427
|
-
<td>optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
428
|
-
</td>
|
518
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
519
|
+
<td class="parameter_description"><p> optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
520
|
+
<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>
|
429
521
|
</tr>
|
430
522
|
<tr>
|
431
|
-
<td
|
432
|
-
<td>Return location for an error</td>
|
433
|
-
</
|
434
|
-
<tr>
|
435
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
436
|
-
<td>A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
437
|
-
conditions occurred: the file could not be opened, the image format is
|
438
|
-
not supported, there was not enough memory to allocate the image buffer,
|
439
|
-
the stream contained invalid data, or the operation was cancelled.</td>
|
523
|
+
<td class="parameter_name"><p>error</p></td>
|
524
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
525
|
+
<td class="parameter_annotations"> </td>
|
440
526
|
</tr>
|
441
527
|
</tbody>
|
442
528
|
</table></div>
|
529
|
+
</div>
|
530
|
+
<div class="refsect3">
|
531
|
+
<a name="id-1.2.6.6.8.8"></a><h4>Returns</h4>
|
532
|
+
<p> A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
533
|
+
conditions occurred: the file could not be opened, the image format is
|
534
|
+
not supported, there was not enough memory to allocate the image buffer,
|
535
|
+
the stream contained invalid data, or the operation was cancelled.</p>
|
536
|
+
<p></p>
|
537
|
+
</div>
|
443
538
|
<p class="since">Since 2.14</p>
|
444
539
|
</div>
|
445
540
|
<hr>
|
446
541
|
<div class="refsect2">
|
447
|
-
<a name="gdk-pixbuf-new-from-stream-async"></a><h3>gdk_pixbuf_new_from_stream_async
|
448
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
<
|
453
|
-
Creates a new pixbuf by asynchronously loading an image from an input stream
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
</p>
|
459
|
-
<
|
460
|
-
|
461
|
-
|
462
|
-
</p>
|
463
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
542
|
+
<a name="gdk-pixbuf-new-from-stream-async"></a><h3>gdk_pixbuf_new_from_stream_async ()</h3>
|
543
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
544
|
+
gdk_pixbuf_new_from_stream_async (<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
545
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
546
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
547
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
548
|
+
<p>Creates a new pixbuf by asynchronously loading an image from an input stream.</p>
|
549
|
+
<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
|
+
version of this function.</p>
|
551
|
+
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
|
552
|
+
will be called in the main thread.
|
553
|
+
You can then call <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-finish" title="gdk_pixbuf_new_from_stream_finish ()"><code class="function">gdk_pixbuf_new_from_stream_finish()</code></a> to get the result of the operation.</p>
|
554
|
+
<div class="refsect3">
|
555
|
+
<a name="id-1.2.6.6.9.7"></a><h4>Parameters</h4>
|
556
|
+
<div class="informaltable"><table width="100%" border="0">
|
464
557
|
<colgroup>
|
465
|
-
<col
|
466
|
-
<col>
|
558
|
+
<col width="150px" class="parameters_name">
|
559
|
+
<col class="parameters_description">
|
560
|
+
<col width="200px" class="parameters_annotations">
|
467
561
|
</colgroup>
|
468
562
|
<tbody>
|
469
563
|
<tr>
|
470
|
-
<td
|
471
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the pixbuf</td>
|
564
|
+
<td class="parameter_name"><p>stream</p></td>
|
565
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the pixbuf</p></td>
|
566
|
+
<td class="parameter_annotations"> </td>
|
472
567
|
</tr>
|
473
568
|
<tr>
|
474
|
-
<td
|
475
|
-
<td>optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
476
|
-
</td>
|
569
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
570
|
+
<td class="parameter_description"><p> optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
571
|
+
<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>
|
477
572
|
</tr>
|
478
573
|
<tr>
|
479
|
-
<td
|
480
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</td>
|
574
|
+
<td class="parameter_name"><p>callback</p></td>
|
575
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</p></td>
|
576
|
+
<td class="parameter_annotations"> </td>
|
481
577
|
</tr>
|
482
578
|
<tr>
|
483
|
-
<td
|
484
|
-
<td>the data to pass to the callback function</td>
|
579
|
+
<td class="parameter_name"><p>user_data</p></td>
|
580
|
+
<td class="parameter_description"><p>the data to pass to the callback function</p></td>
|
581
|
+
<td class="parameter_annotations"> </td>
|
485
582
|
</tr>
|
486
583
|
</tbody>
|
487
584
|
</table></div>
|
585
|
+
</div>
|
488
586
|
<p class="since">Since 2.24</p>
|
489
587
|
</div>
|
490
588
|
<hr>
|
491
589
|
<div class="refsect2">
|
492
|
-
<a name="gdk-pixbuf-new-from-stream-finish"></a><h3>gdk_pixbuf_new_from_stream_finish
|
493
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
494
|
-
|
495
|
-
<
|
496
|
-
Finishes an asynchronous pixbuf creation operation started with
|
497
|
-
<a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-async" title="gdk_pixbuf_new_from_stream_async
|
498
|
-
|
499
|
-
<
|
590
|
+
<a name="gdk-pixbuf-new-from-stream-finish"></a><h3>gdk_pixbuf_new_from_stream_finish ()</h3>
|
591
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *async_result</code></em>,
|
593
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
594
|
+
<p>Finishes an asynchronous pixbuf creation operation started with
|
595
|
+
<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
|
+
<div class="refsect3">
|
597
|
+
<a name="id-1.2.6.6.10.5"></a><h4>Parameters</h4>
|
598
|
+
<div class="informaltable"><table width="100%" border="0">
|
500
599
|
<colgroup>
|
501
|
-
<col
|
502
|
-
<col>
|
600
|
+
<col width="150px" class="parameters_name">
|
601
|
+
<col class="parameters_description">
|
602
|
+
<col width="200px" class="parameters_annotations">
|
503
603
|
</colgroup>
|
504
604
|
<tbody>
|
505
605
|
<tr>
|
506
|
-
<td
|
507
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a>
|
508
|
-
</td>
|
509
|
-
</tr>
|
510
|
-
<tr>
|
511
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
512
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
513
|
-
</td>
|
606
|
+
<td class="parameter_name"><p>async_result</p></td>
|
607
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html"><span class="type">GAsyncResult</span></a></p></td>
|
608
|
+
<td class="parameter_annotations"> </td>
|
514
609
|
</tr>
|
515
610
|
<tr>
|
516
|
-
<td
|
517
|
-
<td>a <a
|
518
|
-
|
611
|
+
<td class="parameter_name"><p>error</p></td>
|
612
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
613
|
+
<td class="parameter_annotations"> </td>
|
519
614
|
</tr>
|
520
615
|
</tbody>
|
521
616
|
</table></div>
|
617
|
+
</div>
|
618
|
+
<div class="refsect3">
|
619
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. Free the returned
|
621
|
+
object with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</p>
|
622
|
+
<p></p>
|
623
|
+
</div>
|
522
624
|
<p class="since">Since 2.24</p>
|
523
625
|
</div>
|
524
626
|
<hr>
|
525
627
|
<div class="refsect2">
|
526
|
-
<a name="gdk-pixbuf-new-from-stream-at-scale"></a><h3>gdk_pixbuf_new_from_stream_at_scale
|
527
|
-
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a>
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
<
|
534
|
-
Creates a new pixbuf by loading an image from an input stream.
|
535
|
-
|
536
|
-
<
|
537
|
-
|
538
|
-
|
628
|
+
<a name="gdk-pixbuf-new-from-stream-at-scale"></a><h3>gdk_pixbuf_new_from_stream_at_scale ()</h3>
|
629
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
631
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
632
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
633
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
634
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
635
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
636
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned, then
|
638
|
+
<em class="parameter"><code>error</code></em>
|
639
|
+
will be set. The <em class="parameter"><code>cancellable</code></em>
|
640
|
+
can be used to abort the operation
|
539
641
|
from another thread. If the operation was cancelled, the error
|
540
|
-
<
|
541
|
-
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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains.
|
542
|
-
|
543
|
-
<p>
|
544
|
-
The image will be scaled to fit in the requested size, optionally
|
642
|
+
<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="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR:CAPS"><code class="literal">G_IO_ERROR</code></a> domains. </p>
|
644
|
+
<p>The image will be scaled to fit in the requested size, optionally
|
545
645
|
preserving the image's aspect ratio. When preserving the aspect ratio,
|
546
|
-
a <em class="parameter"><code>width</code></em>
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
</
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
<
|
646
|
+
a <em class="parameter"><code>width</code></em>
|
647
|
+
of -1 will cause the image to be scaled to the exact given
|
648
|
+
height, and a <em class="parameter"><code>height</code></em>
|
649
|
+
of -1 will cause the image to be scaled to the
|
650
|
+
exact given width. When not preserving aspect ratio, a <em class="parameter"><code>width</code></em>
|
651
|
+
or
|
652
|
+
<em class="parameter"><code>height</code></em>
|
653
|
+
of -1 means to not scale the image at all in that dimension.</p>
|
654
|
+
<p>The stream is not closed.</p>
|
655
|
+
<div class="refsect3">
|
656
|
+
<a name="id-1.2.6.6.11.8"></a><h4>Parameters</h4>
|
657
|
+
<div class="informaltable"><table width="100%" border="0">
|
555
658
|
<colgroup>
|
556
|
-
<col
|
557
|
-
<col>
|
659
|
+
<col width="150px" class="parameters_name">
|
660
|
+
<col class="parameters_description">
|
661
|
+
<col width="200px" class="parameters_annotations">
|
558
662
|
</colgroup>
|
559
663
|
<tbody>
|
560
664
|
<tr>
|
561
|
-
<td
|
562
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</td>
|
665
|
+
<td class="parameter_name"><p>stream</p></td>
|
666
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> to load the pixbuf from</p></td>
|
667
|
+
<td class="parameter_annotations"> </td>
|
563
668
|
</tr>
|
564
669
|
<tr>
|
565
|
-
<td
|
566
|
-
<td>The width the image should have or -1 to not constrain the width</td>
|
670
|
+
<td class="parameter_name"><p>width</p></td>
|
671
|
+
<td class="parameter_description"><p>The width the image should have or -1 to not constrain the width</p></td>
|
672
|
+
<td class="parameter_annotations"> </td>
|
567
673
|
</tr>
|
568
674
|
<tr>
|
569
|
-
<td
|
570
|
-
<td>The height the image should have or -1 to not constrain the height</td>
|
675
|
+
<td class="parameter_name"><p>height</p></td>
|
676
|
+
<td class="parameter_description"><p>The height the image should have or -1 to not constrain the height</p></td>
|
677
|
+
<td class="parameter_annotations"> </td>
|
571
678
|
</tr>
|
572
679
|
<tr>
|
573
|
-
<td
|
574
|
-
<td>
|
575
|
-
<
|
680
|
+
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
681
|
+
<td class="parameter_description"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
682
|
+
<td class="parameter_annotations"> </td>
|
576
683
|
</tr>
|
577
684
|
<tr>
|
578
|
-
<td
|
579
|
-
<td>optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
580
|
-
</td>
|
685
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
686
|
+
<td class="parameter_description"><p> optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
687
|
+
<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>
|
581
688
|
</tr>
|
582
689
|
<tr>
|
583
|
-
<td
|
584
|
-
<td>Return location for an error</td>
|
585
|
-
</
|
586
|
-
<tr>
|
587
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
588
|
-
<td>A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
589
|
-
conditions occurred: the file could not be opened, the image format is
|
590
|
-
not supported, there was not enough memory to allocate the image buffer,
|
591
|
-
the stream contained invalid data, or the operation was cancelled.</td>
|
690
|
+
<td class="parameter_name"><p>error</p></td>
|
691
|
+
<td class="parameter_description"><p>Return location for an error</p></td>
|
692
|
+
<td class="parameter_annotations"> </td>
|
592
693
|
</tr>
|
593
694
|
</tbody>
|
594
695
|
</table></div>
|
696
|
+
</div>
|
697
|
+
<div class="refsect3">
|
698
|
+
<a name="id-1.2.6.6.11.9"></a><h4>Returns</h4>
|
699
|
+
<p> A newly-created pixbuf, or <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if any of several error
|
700
|
+
conditions occurred: the file could not be opened, the image format is
|
701
|
+
not supported, there was not enough memory to allocate the image buffer,
|
702
|
+
the stream contained invalid data, or the operation was cancelled.</p>
|
703
|
+
<p></p>
|
704
|
+
</div>
|
595
705
|
<p class="since">Since 2.14</p>
|
596
706
|
</div>
|
597
707
|
<hr>
|
598
708
|
<div class="refsect2">
|
599
|
-
<a name="gdk-pixbuf-new-from-stream-at-scale-async"></a><h3>gdk_pixbuf_new_from_stream_at_scale_async
|
600
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
<
|
609
|
-
Creates a new pixbuf by asynchronously loading an image from an input stream
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
</p>
|
615
|
-
<
|
616
|
-
|
617
|
-
|
618
|
-
</p>
|
619
|
-
<div class="variablelist"><table border="0" class="variablelist">
|
709
|
+
<a name="gdk-pixbuf-new-from-stream-at-scale-async"></a><h3>gdk_pixbuf_new_from_stream_at_scale_async ()</h3>
|
710
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
711
|
+
gdk_pixbuf_new_from_stream_at_scale_async
|
712
|
+
(<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> *stream</code></em>,
|
713
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
|
714
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
|
715
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> preserve_aspect_ratio</code></em>,
|
716
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
|
717
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
|
718
|
+
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
719
|
+
<p>Creates a new pixbuf by asynchronously loading an image from an input stream.</p>
|
720
|
+
<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
|
+
version of this function.</p>
|
722
|
+
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
|
723
|
+
will be called in the main thread.
|
724
|
+
You can then call <a class="link" href="gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-stream-finish" title="gdk_pixbuf_new_from_stream_finish ()"><code class="function">gdk_pixbuf_new_from_stream_finish()</code></a> to get the result of the operation.</p>
|
725
|
+
<div class="refsect3">
|
726
|
+
<a name="id-1.2.6.6.12.7"></a><h4>Parameters</h4>
|
727
|
+
<div class="informaltable"><table width="100%" border="0">
|
620
728
|
<colgroup>
|
621
|
-
<col
|
622
|
-
<col>
|
729
|
+
<col width="150px" class="parameters_name">
|
730
|
+
<col class="parameters_description">
|
731
|
+
<col width="200px" class="parameters_annotations">
|
623
732
|
</colgroup>
|
624
733
|
<tbody>
|
625
734
|
<tr>
|
626
|
-
<td
|
627
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the pixbuf</td>
|
735
|
+
<td class="parameter_name"><p>stream</p></td>
|
736
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GInputStream.html"><span class="type">GInputStream</span></a> from which to load the pixbuf</p></td>
|
737
|
+
<td class="parameter_annotations"> </td>
|
628
738
|
</tr>
|
629
739
|
<tr>
|
630
|
-
<td
|
631
|
-
<td>the width the image should have or -1 to not constrain the width</td>
|
740
|
+
<td class="parameter_name"><p>width</p></td>
|
741
|
+
<td class="parameter_description"><p>the width the image should have or -1 to not constrain the width</p></td>
|
742
|
+
<td class="parameter_annotations"> </td>
|
632
743
|
</tr>
|
633
744
|
<tr>
|
634
|
-
<td
|
635
|
-
<td>the height the image should have or -1 to not constrain the height</td>
|
745
|
+
<td class="parameter_name"><p>height</p></td>
|
746
|
+
<td class="parameter_description"><p>the height the image should have or -1 to not constrain the height</p></td>
|
747
|
+
<td class="parameter_annotations"> </td>
|
636
748
|
</tr>
|
637
749
|
<tr>
|
638
|
-
<td
|
639
|
-
<td>
|
640
|
-
<
|
750
|
+
<td class="parameter_name"><p>preserve_aspect_ratio</p></td>
|
751
|
+
<td class="parameter_description"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to preserve the image's aspect ratio</p></td>
|
752
|
+
<td class="parameter_annotations"> </td>
|
641
753
|
</tr>
|
642
754
|
<tr>
|
643
|
-
<td
|
644
|
-
<td>optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.
|
645
|
-
</td>
|
755
|
+
<td class="parameter_name"><p>cancellable</p></td>
|
756
|
+
<td class="parameter_description"><p> optional <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
|
757
|
+
<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>
|
646
758
|
</tr>
|
647
759
|
<tr>
|
648
|
-
<td
|
649
|
-
<td>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</td>
|
760
|
+
<td class="parameter_name"><p>callback</p></td>
|
761
|
+
<td class="parameter_description"><p>a <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the the pixbuf is loaded</p></td>
|
762
|
+
<td class="parameter_annotations"> </td>
|
650
763
|
</tr>
|
651
764
|
<tr>
|
652
|
-
<td
|
653
|
-
<td>the data to pass to the callback function</td>
|
765
|
+
<td class="parameter_name"><p>user_data</p></td>
|
766
|
+
<td class="parameter_description"><p>the data to pass to the callback function</p></td>
|
767
|
+
<td class="parameter_annotations"> </td>
|
654
768
|
</tr>
|
655
769
|
</tbody>
|
656
770
|
</table></div>
|
771
|
+
</div>
|
657
772
|
<p class="since">Since 2.24</p>
|
658
773
|
</div>
|
659
774
|
</div>
|
660
775
|
<div class="refsect1">
|
776
|
+
<a name="gdk-pixbuf-File-Loading.other_details"></a><h2>Types and Values</h2>
|
777
|
+
</div>
|
778
|
+
<div class="refsect1">
|
661
779
|
<a name="gdk-pixbuf-File-Loading.see-also"></a><h2>See Also</h2>
|
662
|
-
<a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a
|
780
|
+
<p><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a>.</p>
|
663
781
|
</div>
|
664
782
|
</div>
|
665
783
|
<div class="footer">
|
666
784
|
<hr>
|
667
|
-
Generated by GTK-Doc V1.
|
785
|
+
Generated by GTK-Doc V1.20.1</div>
|
668
786
|
</body>
|
669
787
|
</html>
|