gdk_pixbuf2 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +7 -0
  2. data/README +29 -0
  3. data/Rakefile +34 -0
  4. data/ext/gdk_pixbuf2/depend +11 -0
  5. data/ext/gdk_pixbuf2/extconf.rb +66 -0
  6. data/ext/gdk_pixbuf2/gdk_pixbuf2.def +2 -0
  7. data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +179 -0
  8. data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +164 -0
  9. data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +737 -0
  10. data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +41 -0
  11. data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
  12. data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
  13. data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +93 -0
  14. data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
  15. data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +53 -0
  16. data/ext/gdk_pixbuf2/rbgdk-pixdata.c +213 -0
  17. data/extconf.rb +49 -0
  18. data/lib/2.0/gdk_pixbuf2.so +0 -0
  19. data/lib/2.1/gdk_pixbuf2.so +0 -0
  20. data/lib/2.2/gdk_pixbuf2.so +0 -0
  21. data/lib/gdk_pixbuf2.rb +57 -0
  22. data/sample/anim.rb +38 -0
  23. data/sample/composite.rb +45 -0
  24. data/sample/flip.rb +47 -0
  25. data/sample/floppybuddy.gif +0 -0
  26. data/sample/format.rb +39 -0
  27. data/sample/gnome-foot.png +0 -0
  28. data/sample/inline.rb +37 -0
  29. data/sample/loader.rb +20 -0
  30. data/sample/pixdata.rb +39 -0
  31. data/sample/rotate.rb +45 -0
  32. data/sample/save.rb +25 -0
  33. data/sample/scale.rb +45 -0
  34. data/sample/simpleanim.rb +34 -0
  35. data/sample/utils.rb +44 -0
  36. data/sample/xpm.rb +40 -0
  37. data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
  38. data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
  39. data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
  40. data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
  41. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +204 -0
  42. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +464 -0
  43. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +33 -0
  44. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +120 -0
  45. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +343 -0
  46. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +108 -0
  47. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +36 -0
  48. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +64 -0
  49. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +158 -0
  50. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +43 -0
  51. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +168 -0
  52. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +139 -0
  53. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
  54. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
  55. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
  56. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +41 -0
  57. data/vendor/local/lib/gdk_pixbuf-2.0.def +128 -0
  58. data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
  59. data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
  60. data/vendor/local/lib/libgdk_pixbuf-2.0.la +41 -0
  61. data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +19 -0
  62. data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +3443 -0
  63. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +827 -0
  64. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +65 -0
  65. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +35 -0
  66. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +46 -0
  67. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +108 -0
  68. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +50 -0
  69. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +47 -0
  70. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
  71. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +72 -0
  72. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +65 -0
  73. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +39 -0
  74. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +53 -0
  75. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +787 -0
  76. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/composite.png +0 -0
  77. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +1068 -0
  78. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +794 -0
  79. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +864 -0
  80. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +491 -0
  81. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +639 -0
  82. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +1298 -0
  83. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +208 -0
  84. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +914 -0
  85. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +898 -0
  86. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +381 -0
  87. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +184 -0
  88. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +197 -0
  89. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +438 -0
  90. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +1115 -0
  91. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +167 -0
  92. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +159 -0
  93. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +45 -0
  94. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +44 -0
  95. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +85 -0
  96. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +226 -0
  97. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
  98. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +150 -0
  99. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +322 -0
  100. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
  101. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
  102. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +59 -0
  103. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
  104. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
  105. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +101 -0
  106. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +50 -0
  107. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +476 -0
  108. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
  109. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
  110. data/vendor/local/share/license/gdk-pixbuf/AUTHORS +65 -0
  111. data/vendor/local/share/license/gdk-pixbuf/COPYING +482 -0
  112. data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  113. data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  114. data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  115. data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  116. data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  117. data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  118. data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  119. data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  120. data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  121. data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  122. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  123. data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  124. data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  125. data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  126. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  127. data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  128. data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  129. data/vendor/local/share/locale/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  130. data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  131. data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  132. data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  133. data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  134. data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  135. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  136. data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  137. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  138. data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  139. data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  140. data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  141. data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  142. data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  143. data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  144. data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  145. data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  146. data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  147. data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  148. data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  149. data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  150. data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  151. data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  152. data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  153. data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  154. data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  155. data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  156. data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  157. data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  158. data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  159. data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  160. data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  161. data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  162. data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  163. data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  164. data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  165. data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  166. data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  167. data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  168. data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  169. data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  170. data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  171. data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  172. data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  173. data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  174. data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  175. data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  176. data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  177. data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  178. data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  179. data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  180. data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  181. data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  182. data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  183. data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  184. data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  185. data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  186. data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  187. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  188. data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  189. data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  190. data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  191. data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  192. data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  193. data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  194. data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  195. data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  196. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  197. data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  198. data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  199. data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  200. data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  201. data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  202. data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  203. data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  204. data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  205. data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  206. data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  207. data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  208. data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  209. data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  210. data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  211. data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  212. data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  213. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  214. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  215. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  216. data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +135 -0
  217. data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +73 -0
  218. metadata +273 -0
@@ -0,0 +1,794 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>GDK-PixBuf Reference Manual: File Loading</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
+ <link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
8
+ <link rel="up" href="rn01.html" title="API Reference">
9
+ <link rel="prev" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html" title="Reference Counting and Memory Mangement">
10
+ <link rel="next" href="gdk-pixbuf-File-saving.html" title="File saving">
11
+ <meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#gdk-pixbuf-File-Loading.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="gdk-pixbuf-File-saving.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
25
+ <div class="refentry">
26
+ <a name="gdk-pixbuf-File-Loading"></a><div class="titlepage"></div>
27
+ <div class="refnamediv"><table width="100%"><tr>
28
+ <td valign="top">
29
+ <h2><span class="refentrytitle"><a name="gdk-pixbuf-File-Loading.top_of_page"></a>File Loading</span></h2>
30
+ <p>File Loading — Loading a pixbuf from a file.</p>
31
+ </td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
33
+ </tr></table></div>
34
+ <div class="refsect1">
35
+ <a name="gdk-pixbuf-File-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 &lt;gdk-pixbuf/gdk-pixbuf.h&gt;
136
+ </pre>
137
+ </div>
138
+ <div class="refsect1">
139
+ <a name="gdk-pixbuf-File-Loading.description"></a><h2>Description</h2>
140
+ <p>The GdkPixBuf library provides a simple mechanism for loading
141
+ an image from a file in synchronous fashion. This means that the
142
+ library takes control of the application while the file is being
143
+ loaded; from the user's point of view, the application will block
144
+ until the image is done loading.</p>
145
+ <p>This interface can be used by applications in which blocking is
146
+ acceptable while an image is being loaded. It can also be used to
147
+ load small images in general. Applications that need progressive
148
+ loading can use the <a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a> functionality instead.</p>
149
+ </div>
150
+ <div class="refsect1">
151
+ <a name="gdk-pixbuf-File-Loading.functions_details"></a><h2>Functions</h2>
152
+ <div class="refsect2">
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="http://library.gnome.org/devel/glib/unstable/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="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
+ 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="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
+ <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">
164
+ <colgroup>
165
+ <col width="150px" class="parameters_name">
166
+ <col class="parameters_description">
167
+ <col width="200px" class="parameters_annotations">
168
+ </colgroup>
169
+ <tbody>
170
+ <tr>
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>
174
+ </tr>
175
+ <tr>
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>
179
+ </tr>
180
+ </tbody>
181
+ </table></div>
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="http://library.gnome.org/devel/glib/unstable/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>
192
+ <hr>
193
+ <div class="refsect2">
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="http://library.gnome.org/devel/glib/unstable/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.
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
+ <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="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
+ <p>The image will be scaled to fit in the requested size, preserving
206
+ the image's aspect ratio. Note that the returned pixbuf may be smaller
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
210
+ and image at the requested size, regardless of aspect ratio, use
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">
215
+ <colgroup>
216
+ <col width="150px" class="parameters_name">
217
+ <col class="parameters_description">
218
+ <col width="200px" class="parameters_annotations">
219
+ </colgroup>
220
+ <tbody>
221
+ <tr>
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>
225
+ </tr>
226
+ <tr>
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>
230
+ </tr>
231
+ <tr>
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>
235
+ </tr>
236
+ <tr>
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>
240
+ </tr>
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
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
+ be opened, there was no loader for the file's format, there was not
249
+ enough memory to allocate the image buffer, or the image file contained
250
+ invalid data.</p>
251
+ <p></p>
252
+ </div>
253
+ <p class="since">Since 2.4</p>
254
+ </div>
255
+ <hr>
256
+ <div class="refsect2">
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="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
+ <p>Creates a new pixbuf by loading an image from a file. The file format is
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
+ 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="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
+ The image will be scaled to fit in the requested size, optionally preserving
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
274
+ the image to be scaled to the exact given width. When not preserving
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">
285
+ <colgroup>
286
+ <col width="150px" class="parameters_name">
287
+ <col class="parameters_description">
288
+ <col width="200px" class="parameters_annotations">
289
+ </colgroup>
290
+ <tbody>
291
+ <tr>
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>
295
+ </tr>
296
+ <tr>
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>
300
+ </tr>
301
+ <tr>
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>
305
+ </tr>
306
+ <tr>
307
+ <td class="parameter_name"><p>preserve_aspect_ratio</p></td>
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
+ <td class="parameter_annotations"> </td>
310
+ </tr>
311
+ <tr>
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>
315
+ </tr>
316
+ </tbody>
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="http://library.gnome.org/devel/glib/unstable/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>
327
+ <p class="since">Since 2.6</p>
328
+ </div>
329
+ <hr>
330
+ <div class="refsect2">
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="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
+ <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">
340
+ <colgroup>
341
+ <col width="150px" class="parameters_name">
342
+ <col class="parameters_description">
343
+ <col width="200px" class="parameters_annotations">
344
+ </colgroup>
345
+ <tbody>
346
+ <tr>
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>
350
+ </tr>
351
+ <tr>
352
+ <td class="parameter_name"><p>width</p></td>
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>
356
+ </tr>
357
+ <tr>
358
+ <td class="parameter_name"><p>height</p></td>
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>
362
+ </tr>
363
+ </tbody>
364
+ </table></div>
365
+ </div>
366
+ <div class="refsect3">
367
+ <a name="id-1.2.6.6.5.6"></a><h4>Returns</h4>
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
371
+ not be freed. </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>
373
+ </div>
374
+ <p class="since">Since 2.4</p>
375
+ </div>
376
+ <hr>
377
+ <div class="refsect2">
378
+ <a name="gdk-pixbuf-new-from-resource"></a><h3>gdk_pixbuf_new_from_resource ()</h3>
379
+ <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
380
+ gdk_pixbuf_new_from_resource (<em class="parameter"><code>const <span class="type">char</span> *resource_path</code></em>,
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>
382
+ <p>Creates a new pixbuf by loading an image from an resource.</p>
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
384
+ <em class="parameter"><code>error</code></em>
385
+ will be set.</p>
386
+ <div class="refsect3">
387
+ <a name="id-1.2.6.6.6.6"></a><h4>Parameters</h4>
388
+ <div class="informaltable"><table width="100%" border="0">
389
+ <colgroup>
390
+ <col width="150px" class="parameters_name">
391
+ <col class="parameters_description">
392
+ <col width="200px" class="parameters_annotations">
393
+ </colgroup>
394
+ <tbody>
395
+ <tr>
396
+ <td class="parameter_name"><p>resource_path</p></td>
397
+ <td class="parameter_description"><p>the path of the resource file</p></td>
398
+ <td class="parameter_annotations"> </td>
399
+ </tr>
400
+ <tr>
401
+ <td class="parameter_name"><p>error</p></td>
402
+ <td class="parameter_description"><p>Return location for an error</p></td>
403
+ <td class="parameter_annotations"> </td>
404
+ </tr>
405
+ </tbody>
406
+ </table></div>
407
+ </div>
408
+ <div class="refsect3">
409
+ <a name="id-1.2.6.6.6.7"></a><h4>Returns</h4>
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
411
+ conditions occurred: the file could not be opened, the image format is
412
+ not supported, there was not enough memory to allocate the image buffer,
413
+ the stream contained invalid data, or the operation was cancelled.</p>
414
+ <p></p>
415
+ </div>
416
+ <p class="since">Since 2.26</p>
417
+ </div>
418
+ <hr>
419
+ <div class="refsect2">
420
+ <a name="gdk-pixbuf-new-from-resource-at-scale"></a><h3>gdk_pixbuf_new_from_resource_at_scale ()</h3>
421
+ <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
422
+ gdk_pixbuf_new_from_resource_at_scale (<em class="parameter"><code>const <span class="type">char</span> *resource_path</code></em>,
423
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
424
+ <em class="parameter"><code><span class="type">int</span> height</code></em>,
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>
427
+ <p>Creates a new pixbuf by loading an image from an resource.</p>
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
429
+ <em class="parameter"><code>error</code></em>
430
+ will be set.</p>
431
+ <p>The image will be scaled to fit in the requested size, optionally
432
+ preserving the image's aspect ratio. When preserving the aspect ratio,
433
+ a <em class="parameter"><code>width</code></em>
434
+ of -1 will cause the image to be scaled to the exact given
435
+ height, and a <em class="parameter"><code>height</code></em>
436
+ of -1 will cause the image to be scaled to the
437
+ exact given width. When not preserving aspect ratio, a <em class="parameter"><code>width</code></em>
438
+ or
439
+ <em class="parameter"><code>height</code></em>
440
+ of -1 means to not scale the image at all in that dimension.</p>
441
+ <p>The stream is not closed.</p>
442
+ <div class="refsect3">
443
+ <a name="id-1.2.6.6.7.8"></a><h4>Parameters</h4>
444
+ <div class="informaltable"><table width="100%" border="0">
445
+ <colgroup>
446
+ <col width="150px" class="parameters_name">
447
+ <col class="parameters_description">
448
+ <col width="200px" class="parameters_annotations">
449
+ </colgroup>
450
+ <tbody>
451
+ <tr>
452
+ <td class="parameter_name"><p>resource_path</p></td>
453
+ <td class="parameter_description"><p>the path of the resource file</p></td>
454
+ <td class="parameter_annotations"> </td>
455
+ </tr>
456
+ <tr>
457
+ <td class="parameter_name"><p>width</p></td>
458
+ <td class="parameter_description"><p>The width the image should have or -1 to not constrain the width</p></td>
459
+ <td class="parameter_annotations"> </td>
460
+ </tr>
461
+ <tr>
462
+ <td class="parameter_name"><p>height</p></td>
463
+ <td class="parameter_description"><p>The height the image should have or -1 to not constrain the height</p></td>
464
+ <td class="parameter_annotations"> </td>
465
+ </tr>
466
+ <tr>
467
+ <td class="parameter_name"><p>preserve_aspect_ratio</p></td>
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>
469
+ <td class="parameter_annotations"> </td>
470
+ </tr>
471
+ <tr>
472
+ <td class="parameter_name"><p>error</p></td>
473
+ <td class="parameter_description"><p>Return location for an error</p></td>
474
+ <td class="parameter_annotations"> </td>
475
+ </tr>
476
+ </tbody>
477
+ </table></div>
478
+ </div>
479
+ <div class="refsect3">
480
+ <a name="id-1.2.6.6.7.9"></a><h4>Returns</h4>
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
482
+ conditions occurred: the file could not be opened, the image format is
483
+ not supported, there was not enough memory to allocate the image buffer,
484
+ the stream contained invalid data, or the operation was cancelled.</p>
485
+ <p></p>
486
+ </div>
487
+ <p class="since">Since 2.26</p>
488
+ </div>
489
+ <hr>
490
+ <div class="refsect2">
491
+ <a name="gdk-pixbuf-new-from-stream"></a><h3>gdk_pixbuf_new_from_stream ()</h3>
492
+ <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
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>
496
+ <p>Creates a new pixbuf by loading an image from an input stream. </p>
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
498
+ <em class="parameter"><code>error</code></em>
499
+ will be set. The <em class="parameter"><code>cancellable</code></em>
500
+ can be used to abort the operation
501
+ from another thread. If the operation was cancelled, the error
502
+ <code class="literal">G_IO_ERROR_CANCELLED</code> will be returned. Other possible errors are in
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>
504
+ <p>The stream is not closed.</p>
505
+ <div class="refsect3">
506
+ <a name="id-1.2.6.6.8.7"></a><h4>Parameters</h4>
507
+ <div class="informaltable"><table width="100%" border="0">
508
+ <colgroup>
509
+ <col width="150px" class="parameters_name">
510
+ <col class="parameters_description">
511
+ <col width="200px" class="parameters_annotations">
512
+ </colgroup>
513
+ <tbody>
514
+ <tr>
515
+ <td class="parameter_name"><p>stream</p></td>
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>
517
+ <td class="parameter_annotations"> </td>
518
+ </tr>
519
+ <tr>
520
+ <td class="parameter_name"><p>cancellable</p></td>
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>
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>
523
+ </tr>
524
+ <tr>
525
+ <td class="parameter_name"><p>error</p></td>
526
+ <td class="parameter_description"><p>Return location for an error</p></td>
527
+ <td class="parameter_annotations"> </td>
528
+ </tr>
529
+ </tbody>
530
+ </table></div>
531
+ </div>
532
+ <div class="refsect3">
533
+ <a name="id-1.2.6.6.8.8"></a><h4>Returns</h4>
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
535
+ conditions occurred: the file could not be opened, the image format is
536
+ not supported, there was not enough memory to allocate the image buffer,
537
+ the stream contained invalid data, or the operation was cancelled.</p>
538
+ <p></p>
539
+ </div>
540
+ <p class="since">Since 2.14</p>
541
+ </div>
542
+ <hr>
543
+ <div class="refsect2">
544
+ <a name="gdk-pixbuf-new-from-stream-async"></a><h3>gdk_pixbuf_new_from_stream_async ()</h3>
545
+ <pre class="programlisting"><span class="returnvalue">void</span>
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>
550
+ <p>Creates a new pixbuf by asynchronously loading an image from an input stream.</p>
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
552
+ version of this function.</p>
553
+ <p>When the operation is finished, <em class="parameter"><code>callback</code></em>
554
+ will be called in the main thread.
555
+ 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>
556
+ <div class="refsect3">
557
+ <a name="id-1.2.6.6.9.7"></a><h4>Parameters</h4>
558
+ <div class="informaltable"><table width="100%" border="0">
559
+ <colgroup>
560
+ <col width="150px" class="parameters_name">
561
+ <col class="parameters_description">
562
+ <col width="200px" class="parameters_annotations">
563
+ </colgroup>
564
+ <tbody>
565
+ <tr>
566
+ <td class="parameter_name"><p>stream</p></td>
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>
568
+ <td class="parameter_annotations"> </td>
569
+ </tr>
570
+ <tr>
571
+ <td class="parameter_name"><p>cancellable</p></td>
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>
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>
574
+ </tr>
575
+ <tr>
576
+ <td class="parameter_name"><p>callback</p></td>
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>
578
+ <td class="parameter_annotations"> </td>
579
+ </tr>
580
+ <tr>
581
+ <td class="parameter_name"><p>user_data</p></td>
582
+ <td class="parameter_description"><p>the data to pass to the callback function</p></td>
583
+ <td class="parameter_annotations"> </td>
584
+ </tr>
585
+ </tbody>
586
+ </table></div>
587
+ </div>
588
+ <p class="since">Since 2.24</p>
589
+ </div>
590
+ <hr>
591
+ <div class="refsect2">
592
+ <a name="gdk-pixbuf-new-from-stream-finish"></a><h3>gdk_pixbuf_new_from_stream_finish ()</h3>
593
+ <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
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>
596
+ <p>Finishes an asynchronous pixbuf creation operation started with
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>
598
+ <div class="refsect3">
599
+ <a name="id-1.2.6.6.10.5"></a><h4>Parameters</h4>
600
+ <div class="informaltable"><table width="100%" border="0">
601
+ <colgroup>
602
+ <col width="150px" class="parameters_name">
603
+ <col class="parameters_description">
604
+ <col width="200px" class="parameters_annotations">
605
+ </colgroup>
606
+ <tbody>
607
+ <tr>
608
+ <td class="parameter_name"><p>async_result</p></td>
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>
610
+ <td class="parameter_annotations"> </td>
611
+ </tr>
612
+ <tr>
613
+ <td class="parameter_name"><p>error</p></td>
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>
615
+ <td class="parameter_annotations"> </td>
616
+ </tr>
617
+ </tbody>
618
+ </table></div>
619
+ </div>
620
+ <div class="refsect3">
621
+ <a name="id-1.2.6.6.10.6"></a><h4>Returns</h4>
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>
624
+ <p></p>
625
+ </div>
626
+ <p class="since">Since 2.24</p>
627
+ </div>
628
+ <hr>
629
+ <div class="refsect2">
630
+ <a name="gdk-pixbuf-new-from-stream-at-scale"></a><h3>gdk_pixbuf_new_from_stream_at_scale ()</h3>
631
+ <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
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>
638
+ <p>Creates a new pixbuf by loading an image from an input stream. </p>
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
640
+ <em class="parameter"><code>error</code></em>
641
+ will be set. The <em class="parameter"><code>cancellable</code></em>
642
+ can be used to abort the operation
643
+ from another thread. If the operation was cancelled, the error
644
+ <code class="literal">G_IO_ERROR_CANCELLED</code> will be returned. Other possible errors are in
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>
646
+ <p>The image will be scaled to fit in the requested size, optionally
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>
661
+ <p>The stream is not closed.</p>
662
+ <div class="refsect3">
663
+ <a name="id-1.2.6.6.11.10"></a><h4>Parameters</h4>
664
+ <div class="informaltable"><table width="100%" border="0">
665
+ <colgroup>
666
+ <col width="150px" class="parameters_name">
667
+ <col class="parameters_description">
668
+ <col width="200px" class="parameters_annotations">
669
+ </colgroup>
670
+ <tbody>
671
+ <tr>
672
+ <td class="parameter_name"><p>stream</p></td>
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>
674
+ <td class="parameter_annotations"> </td>
675
+ </tr>
676
+ <tr>
677
+ <td class="parameter_name"><p>width</p></td>
678
+ <td class="parameter_description"><p>The width the image should have or -1 to not constrain the width</p></td>
679
+ <td class="parameter_annotations"> </td>
680
+ </tr>
681
+ <tr>
682
+ <td class="parameter_name"><p>height</p></td>
683
+ <td class="parameter_description"><p>The height the image should have or -1 to not constrain the height</p></td>
684
+ <td class="parameter_annotations"> </td>
685
+ </tr>
686
+ <tr>
687
+ <td class="parameter_name"><p>preserve_aspect_ratio</p></td>
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>
689
+ <td class="parameter_annotations"> </td>
690
+ </tr>
691
+ <tr>
692
+ <td class="parameter_name"><p>cancellable</p></td>
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>
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>
695
+ </tr>
696
+ <tr>
697
+ <td class="parameter_name"><p>error</p></td>
698
+ <td class="parameter_description"><p>Return location for an error</p></td>
699
+ <td class="parameter_annotations"> </td>
700
+ </tr>
701
+ </tbody>
702
+ </table></div>
703
+ </div>
704
+ <div class="refsect3">
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
707
+ conditions occurred: the file could not be opened, the image format is
708
+ not supported, there was not enough memory to allocate the image buffer,
709
+ the stream contained invalid data, or the operation was cancelled.</p>
710
+ <p></p>
711
+ </div>
712
+ <p class="since">Since 2.14</p>
713
+ </div>
714
+ <hr>
715
+ <div class="refsect2">
716
+ <a name="gdk-pixbuf-new-from-stream-at-scale-async"></a><h3>gdk_pixbuf_new_from_stream_at_scale_async ()</h3>
717
+ <pre class="programlisting"><span class="returnvalue">void</span>
718
+ gdk_pixbuf_new_from_stream_at_scale_async
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>
726
+ <p>Creates a new pixbuf by asynchronously loading an image from an input stream.</p>
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
728
+ version of this function.</p>
729
+ <p>When the operation is finished, <em class="parameter"><code>callback</code></em>
730
+ will be called in the main thread.
731
+ 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>
732
+ <div class="refsect3">
733
+ <a name="id-1.2.6.6.12.7"></a><h4>Parameters</h4>
734
+ <div class="informaltable"><table width="100%" border="0">
735
+ <colgroup>
736
+ <col width="150px" class="parameters_name">
737
+ <col class="parameters_description">
738
+ <col width="200px" class="parameters_annotations">
739
+ </colgroup>
740
+ <tbody>
741
+ <tr>
742
+ <td class="parameter_name"><p>stream</p></td>
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>
744
+ <td class="parameter_annotations"> </td>
745
+ </tr>
746
+ <tr>
747
+ <td class="parameter_name"><p>width</p></td>
748
+ <td class="parameter_description"><p>the width the image should have or -1 to not constrain the width</p></td>
749
+ <td class="parameter_annotations"> </td>
750
+ </tr>
751
+ <tr>
752
+ <td class="parameter_name"><p>height</p></td>
753
+ <td class="parameter_description"><p>the height the image should have or -1 to not constrain the height</p></td>
754
+ <td class="parameter_annotations"> </td>
755
+ </tr>
756
+ <tr>
757
+ <td class="parameter_name"><p>preserve_aspect_ratio</p></td>
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>
759
+ <td class="parameter_annotations"> </td>
760
+ </tr>
761
+ <tr>
762
+ <td class="parameter_name"><p>cancellable</p></td>
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>
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>
765
+ </tr>
766
+ <tr>
767
+ <td class="parameter_name"><p>callback</p></td>
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>
769
+ <td class="parameter_annotations"> </td>
770
+ </tr>
771
+ <tr>
772
+ <td class="parameter_name"><p>user_data</p></td>
773
+ <td class="parameter_description"><p>the data to pass to the callback function</p></td>
774
+ <td class="parameter_annotations"> </td>
775
+ </tr>
776
+ </tbody>
777
+ </table></div>
778
+ </div>
779
+ <p class="since">Since 2.24</p>
780
+ </div>
781
+ </div>
782
+ <div class="refsect1">
783
+ <a name="gdk-pixbuf-File-Loading.other_details"></a><h2>Types and Values</h2>
784
+ </div>
785
+ <div class="refsect1">
786
+ <a name="gdk-pixbuf-File-Loading.see-also"></a><h2>See Also</h2>
787
+ <p><a class="link" href="GdkPixbufLoader.html" title="GdkPixbufLoader"><span class="type">GdkPixbufLoader</span></a>.</p>
788
+ </div>
789
+ </div>
790
+ <div class="footer">
791
+ <hr>
792
+ Generated by GTK-Doc V1.20.1</div>
793
+ </body>
794
+ </html>