gdk_pixbuf2 3.0.9-x86-mingw32 → 3.1.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 +4 -2
- data/lib/gdk_pixbuf2/loader.rb +0 -6
- data/lib/gdk_pixbuf2/pixbuf.rb +13 -0
- data/test/run-test.rb +2 -0
- data/test/test-pixbuf.rb +3 -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 +23 -4
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +83 -5
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +7 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +8 -4
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +24 -10
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +11 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +662 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +6 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +7 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +5 -5
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +71 -71
- 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 +2 -2
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +201 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +78 -78
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-32.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-36.html +146 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +107 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +90 -90
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +106 -106
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +257 -99
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +36 -35
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +49 -49
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +128 -73
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +17 -17
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +28 -28
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +164 -75
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +19 -19
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +295 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +27 -27
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +28 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +5 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +3 -3
- data/vendor/local/share/locale/ca@valencia/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/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/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_GB/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/fr/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/he/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/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kk/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/ko/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/oc/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/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/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/sr/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/tr/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/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +2 -2
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +2 -2
- metadata +8 -7
- data/vendor/local/lib/gdk_pixbuf-2.0.def +0 -134
@@ -3,12 +3,12 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Image Data in Memory: GDK-PixBuf Reference Manual</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
7
|
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-File-saving.html" title="File saving">
|
10
10
|
<link rel="next" href="gdk-pixbuf-Inline-data.html" title="Inline data">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.25
|
11
|
+
<meta name="generator" content="GTK-Doc V1.25 (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">
|
@@ -33,7 +33,7 @@
|
|
33
33
|
</tr></table></div>
|
34
34
|
<div class="refsect1">
|
35
35
|
<a name="gdk-pixbuf-Image-Data-in-Memory.functions"></a><h2>Functions</h2>
|
36
|
-
<div class="informaltable"><table width="100%" border="0">
|
36
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
37
37
|
<colgroup>
|
38
38
|
<col width="150px" class="functions_return">
|
39
39
|
<col class="functions_name">
|
@@ -112,7 +112,7 @@ the destroy notification function that will be called when the
|
|
112
112
|
data buffer needs to be freed; this will happen when a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
|
113
113
|
is finalized by the reference counting functions If you have a
|
114
114
|
chunk of static data compiled into your application, you can pass
|
115
|
-
in <a href="
|
115
|
+
in <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> as the destroy notification function so that the data
|
116
116
|
will not be freed.</p>
|
117
117
|
<p>The <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new" title="gdk_pixbuf_new ()"><code class="function">gdk_pixbuf_new()</code></a> function can be used as a convenience to
|
118
118
|
create a pixbuf with an empty buffer. This is equivalent to
|
@@ -123,7 +123,7 @@ with an efficient algorithm.</p>
|
|
123
123
|
<p>As a special case, you can use the <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-xpm-data" title="gdk_pixbuf_new_from_xpm_data ()"><code class="function">gdk_pixbuf_new_from_xpm_data()</code></a>
|
124
124
|
function to create a pixbuf from inline XPM image data.</p>
|
125
125
|
<p>You can also copy an existing pixbuf with the <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-copy" title="gdk_pixbuf_copy ()"><code class="function">gdk_pixbuf_copy()</code></a>
|
126
|
-
function. This is not the same as just doing a <a href="
|
126
|
+
function. This is not the same as just doing a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>
|
127
127
|
on the old pixbuf; the copy function will actually duplicate the
|
128
128
|
pixel data in memory and create a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure for it.</p>
|
129
129
|
</div>
|
@@ -133,7 +133,7 @@ pixel data in memory and create a new <a class="link" href="gdk-pixbuf-The-GdkPi
|
|
133
133
|
<a name="gdk-pixbuf-new"></a><h3>gdk_pixbuf_new ()</h3>
|
134
134
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
135
135
|
gdk_pixbuf_new (<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> colorspace</code></em>,
|
136
|
-
<em class="parameter"><code><a href="
|
136
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
|
137
137
|
<em class="parameter"><code><span class="type">int</span> bits_per_sample</code></em>,
|
138
138
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
139
139
|
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
@@ -142,7 +142,7 @@ buffer has an optimal rowstride. Note that the buffer is not cleared;
|
|
142
142
|
you will have to fill it completely yourself.</p>
|
143
143
|
<div class="refsect3">
|
144
144
|
<a name="gdk-pixbuf-new.parameters"></a><h4>Parameters</h4>
|
145
|
-
<div class="informaltable"><table width="100%" border="0">
|
145
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
146
146
|
<colgroup>
|
147
147
|
<col width="150px" class="parameters_name">
|
148
148
|
<col class="parameters_description">
|
@@ -180,26 +180,26 @@ you will have to fill it completely yourself.</p>
|
|
180
180
|
<div class="refsect3">
|
181
181
|
<a name="gdk-pixbuf-new.returns"></a><h4>Returns</h4>
|
182
182
|
<p> A newly-created <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> with a reference count of 1, or
|
183
|
-
<a href="
|
183
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be allocated for the image buffer.</p>
|
184
184
|
</div>
|
185
185
|
</div>
|
186
186
|
<hr>
|
187
187
|
<div class="refsect2">
|
188
188
|
<a name="gdk-pixbuf-new-from-bytes"></a><h3>gdk_pixbuf_new_from_bytes ()</h3>
|
189
189
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
190
|
-
gdk_pixbuf_new_from_bytes (<em class="parameter"><code><a href="
|
190
|
+
gdk_pixbuf_new_from_bytes (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *data</code></em>,
|
191
191
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> colorspace</code></em>,
|
192
|
-
<em class="parameter"><code><a href="
|
192
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
|
193
193
|
<em class="parameter"><code><span class="type">int</span> bits_per_sample</code></em>,
|
194
194
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
195
195
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
196
196
|
<em class="parameter"><code><span class="type">int</span> rowstride</code></em>);</pre>
|
197
197
|
<p>Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> out of in-memory readonly image data.
|
198
198
|
Currently only RGB images with 8 bits per sample are supported.
|
199
|
-
This is the <a href="
|
199
|
+
This is the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> variant of <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-data" title="gdk_pixbuf_new_from_data ()"><code class="function">gdk_pixbuf_new_from_data()</code></a>.</p>
|
200
200
|
<div class="refsect3">
|
201
201
|
<a name="gdk-pixbuf-new-from-bytes.parameters"></a><h4>Parameters</h4>
|
202
|
-
<div class="informaltable"><table width="100%" border="0">
|
202
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
203
203
|
<colgroup>
|
204
204
|
<col width="150px" class="parameters_name">
|
205
205
|
<col class="parameters_description">
|
@@ -208,7 +208,7 @@ This is the <a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.
|
|
208
208
|
<tbody>
|
209
209
|
<tr>
|
210
210
|
<td class="parameter_name"><p>data</p></td>
|
211
|
-
<td class="parameter_description"><p>Image data in 8-bit/sample packed format inside a <a href="
|
211
|
+
<td class="parameter_description"><p>Image data in 8-bit/sample packed format inside a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a></p></td>
|
212
212
|
<td class="parameter_annotations"> </td>
|
213
213
|
</tr>
|
214
214
|
<tr>
|
@@ -255,15 +255,15 @@ This is the <a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.
|
|
255
255
|
<div class="refsect2">
|
256
256
|
<a name="gdk-pixbuf-new-from-data"></a><h3>gdk_pixbuf_new_from_data ()</h3>
|
257
257
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
258
|
-
gdk_pixbuf_new_from_data (<em class="parameter"><code>const <a href="
|
258
|
+
gdk_pixbuf_new_from_data (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *data</code></em>,
|
259
259
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> colorspace</code></em>,
|
260
|
-
<em class="parameter"><code><a href="
|
260
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
|
261
261
|
<em class="parameter"><code><span class="type">int</span> bits_per_sample</code></em>,
|
262
262
|
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
263
263
|
<em class="parameter"><code><span class="type">int</span> height</code></em>,
|
264
264
|
<em class="parameter"><code><span class="type">int</span> rowstride</code></em>,
|
265
265
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html#GdkPixbufDestroyNotify" title="GdkPixbufDestroyNotify ()"><span class="type">GdkPixbufDestroyNotify</span></a> destroy_fn</code></em>,
|
266
|
-
<em class="parameter"><code><a href="
|
266
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> destroy_fn_data</code></em>);</pre>
|
267
267
|
<p>Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> out of in-memory image data. Currently only RGB
|
268
268
|
images with 8 bits per sample are supported.</p>
|
269
269
|
<p>Since you are providing a pre-allocated pixel buffer, you must also
|
@@ -274,7 +274,7 @@ it is its responsibility to free the pixel array.</p>
|
|
274
274
|
<p>See also <a class="link" href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-bytes" title="gdk_pixbuf_new_from_bytes ()"><code class="function">gdk_pixbuf_new_from_bytes()</code></a>.</p>
|
275
275
|
<div class="refsect3">
|
276
276
|
<a name="gdk-pixbuf-new-from-data.parameters"></a><h4>Parameters</h4>
|
277
|
-
<div class="informaltable"><table width="100%" border="0">
|
277
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
278
278
|
<colgroup>
|
279
279
|
<col width="150px" class="parameters_name">
|
280
280
|
<col class="parameters_description">
|
@@ -319,7 +319,7 @@ it is its responsibility to free the pixel array.</p>
|
|
319
319
|
<tr>
|
320
320
|
<td class="parameter_name"><p>destroy_fn</p></td>
|
321
321
|
<td class="parameter_description"><p> Function used to free the data when the pixbuf's reference count
|
322
|
-
drops to zero, or <a href="
|
322
|
+
drops to zero, or <a href="/home/vagrant/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 data should not be freed. </p></td>
|
323
323
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
324
324
|
</tr>
|
325
325
|
<tr>
|
@@ -345,7 +345,7 @@ gdk_pixbuf_new_from_xpm_data (<em class="parameter"><code>const <span class="typ
|
|
345
345
|
the result of including an XPM file into a program's C source.</p>
|
346
346
|
<div class="refsect3">
|
347
347
|
<a name="gdk-pixbuf-new-from-xpm-data.parameters"></a><h4>Parameters</h4>
|
348
|
-
<div class="informaltable"><table width="100%" border="0">
|
348
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
349
349
|
<colgroup>
|
350
350
|
<col width="150px" class="parameters_name">
|
351
351
|
<col class="parameters_description">
|
@@ -367,13 +367,13 @@ the result of including an XPM file into a program's C source.</p>
|
|
367
367
|
<div class="refsect2">
|
368
368
|
<a name="gdk-pixbuf-new-from-inline"></a><h3>gdk_pixbuf_new_from_inline ()</h3>
|
369
369
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
370
|
-
gdk_pixbuf_new_from_inline (<em class="parameter"><code><a href="
|
371
|
-
<em class="parameter"><code>const <a href="
|
372
|
-
<em class="parameter"><code><a href="
|
373
|
-
<em class="parameter"><code><a href="
|
370
|
+
gdk_pixbuf_new_from_inline (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> data_length</code></em>,
|
371
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>,
|
372
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
|
373
|
+
<em class="parameter"><code><a href="/home/vagrant/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>
|
374
374
|
<div class="warning">
|
375
375
|
<p><code class="literal">gdk_pixbuf_new_from_inline</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
376
|
-
<p>Use <a href="
|
376
|
+
<p>Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
377
377
|
</div>
|
378
378
|
<p>Create a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> from a flat representation that is suitable for
|
379
379
|
storing as inline data in a program. This is useful if you want to
|
@@ -397,10 +397,10 @@ In almost all cases, you should pass the <code class="literal">--raw</code> opti
|
|
397
397
|
<p></p>
|
398
398
|
<p>For the typical case where the inline pixbuf is read-only static data,
|
399
399
|
you don't need to copy the pixel data unless you intend to write to
|
400
|
-
it, so you can pass <a href="
|
400
|
+
it, so you can pass <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for <em class="parameter"><code>copy_pixels</code></em>
|
401
401
|
. (If you pass <code class="literal">--rle</code> to
|
402
402
|
<code class="literal">gdk-pixbuf-csource</code>, a copy will be made even if <em class="parameter"><code>copy_pixels</code></em>
|
403
|
-
is <a href="
|
403
|
+
is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>,
|
404
404
|
so using this option is generally a bad idea.)</p>
|
405
405
|
<p>If you create a pixbuf from const inline data compiled into your
|
406
406
|
program, it's probably safe to ignore errors and disable length checks,
|
@@ -410,7 +410,7 @@ since things will always succeed:</p>
|
|
410
410
|
<tbody>
|
411
411
|
<tr>
|
412
412
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
413
|
-
<td class="listing_code"><pre class="programlisting"><span class="normal">pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-inline">gdk_pixbuf_new_from_inline</a></span><span class="normal"> </span><span class="symbol">(-</span><span class="number">1</span><span class="symbol">,</span><span class="normal"> myimage_inline</span><span class="symbol">,</span><span class="normal"> <a href="
|
413
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-inline">gdk_pixbuf_new_from_inline</a></span><span class="normal"> </span><span class="symbol">(-</span><span class="number">1</span><span class="symbol">,</span><span class="normal"> myimage_inline</span><span class="symbol">,</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
414
414
|
</tr>
|
415
415
|
</tbody>
|
416
416
|
</table>
|
@@ -422,7 +422,7 @@ inline data located at runtime, you could have corrupt inline data in
|
|
422
422
|
addition.</p>
|
423
423
|
<div class="refsect3">
|
424
424
|
<a name="gdk-pixbuf-new-from-inline.parameters"></a><h4>Parameters</h4>
|
425
|
-
<div class="informaltable"><table width="100%" border="0">
|
425
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
426
426
|
<colgroup>
|
427
427
|
<col width="150px" class="parameters_name">
|
428
428
|
<col class="parameters_description">
|
@@ -451,7 +451,7 @@ for the resulting pixbuf</p></td>
|
|
451
451
|
</tr>
|
452
452
|
<tr>
|
453
453
|
<td class="parameter_name"><p>error</p></td>
|
454
|
-
<td class="parameter_description"><p><a href="
|
454
|
+
<td class="parameter_description"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> return location, may be <a href="/home/vagrant/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 errors</p></td>
|
455
455
|
<td class="parameter_annotations"> </td>
|
456
456
|
</tr>
|
457
457
|
</tbody>
|
@@ -460,7 +460,7 @@ for the resulting pixbuf</p></td>
|
|
460
460
|
<div class="refsect3">
|
461
461
|
<a name="gdk-pixbuf-new-from-inline.returns"></a><h4>Returns</h4>
|
462
462
|
<p> A newly-created <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> structure with a reference,
|
463
|
-
count of 1, or <a href="
|
463
|
+
count of 1, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred.</p>
|
464
464
|
</div>
|
465
465
|
</div>
|
466
466
|
<hr>
|
@@ -485,7 +485,7 @@ pixbuf is finalized.</p>
|
|
485
485
|
to be mutable.</p>
|
486
486
|
<div class="refsect3">
|
487
487
|
<a name="gdk-pixbuf-new-subpixbuf.parameters"></a><h4>Parameters</h4>
|
488
|
-
<div class="informaltable"><table width="100%" border="0">
|
488
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
489
489
|
<colgroup>
|
490
490
|
<col width="150px" class="parameters_name">
|
491
491
|
<col class="parameters_description">
|
@@ -537,10 +537,11 @@ to be mutable.</p>
|
|
537
537
|
gdk_pixbuf_copy (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
|
538
538
|
<p>Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> with a copy of the information in the specified
|
539
539
|
<em class="parameter"><code>pixbuf</code></em>
|
540
|
-
|
540
|
+
. Note that this does not copy the options set on the original <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>,
|
541
|
+
use <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-copy-options" title="gdk_pixbuf_copy_options ()"><code class="function">gdk_pixbuf_copy_options()</code></a> for this.</p>
|
541
542
|
<div class="refsect3">
|
542
543
|
<a name="gdk-pixbuf-copy.parameters"></a><h4>Parameters</h4>
|
543
|
-
<div class="informaltable"><table width="100%" border="0">
|
544
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
544
545
|
<colgroup>
|
545
546
|
<col width="150px" class="parameters_name">
|
546
547
|
<col class="parameters_description">
|
@@ -555,7 +556,7 @@ gdk_pixbuf_copy (<em class="parameter"><code>const <a class="link" href="gdk-pix
|
|
555
556
|
</div>
|
556
557
|
<div class="refsect3">
|
557
558
|
<a name="gdk-pixbuf-copy.returns"></a><h4>Returns</h4>
|
558
|
-
<p> A newly-created pixbuf with a reference count of 1, or <a href="
|
559
|
+
<p> A newly-created pixbuf with a reference count of 1, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
|
559
560
|
not enough memory could be allocated. </p>
|
560
561
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
561
562
|
</div>
|
@@ -570,6 +571,6 @@ not enough memory could be allocated. </p>
|
|
570
571
|
</div>
|
571
572
|
</div>
|
572
573
|
<div class="footer">
|
573
|
-
<hr>Generated by GTK-Doc V1.25
|
574
|
+
<hr>Generated by GTK-Doc V1.25</div>
|
574
575
|
</body>
|
575
576
|
</html>
|
@@ -3,12 +3,12 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Inline data: GDK-PixBuf Reference Manual</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
7
|
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
|
8
8
|
<link rel="up" href="rn01.html" title="API Reference">
|
9
9
|
<link rel="prev" href="gdk-pixbuf-Image-Data-in-Memory.html" title="Image Data in Memory">
|
10
10
|
<link rel="next" href="gdk-pixbuf-Scaling.html" title="Scaling">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.25
|
11
|
+
<meta name="generator" content="GTK-Doc V1.25 (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">
|
@@ -33,7 +33,7 @@
|
|
33
33
|
</tr></table></div>
|
34
34
|
<div class="refsect1">
|
35
35
|
<a name="gdk-pixbuf-Inline-data.functions"></a><h2>Functions</h2>
|
36
|
-
<div class="informaltable"><table width="100%" border="0">
|
36
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
37
37
|
<colgroup>
|
38
38
|
<col width="150px" class="functions_return">
|
39
39
|
<col class="functions_name">
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<a href="
|
44
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
|
45
45
|
</td>
|
46
46
|
<td class="function_name">
|
47
47
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-from-pixbuf" title="gdk_pixdata_from_pixbuf ()">gdk_pixdata_from_pixbuf</a> <span class="c_punctuation">()</span>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
</tr>
|
58
58
|
<tr>
|
59
59
|
<td class="function_type">
|
60
|
-
<a href="
|
60
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
61
61
|
</td>
|
62
62
|
<td class="function_name">
|
63
63
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-serialize" title="gdk_pixdata_serialize ()">gdk_pixdata_serialize</a> <span class="c_punctuation">()</span>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
67
|
<td class="function_type">
|
68
|
-
<a href="
|
68
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
69
69
|
</td>
|
70
70
|
<td class="function_name">
|
71
71
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-deserialize" title="gdk_pixdata_deserialize ()">gdk_pixdata_deserialize</a> <span class="c_punctuation">()</span>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</tr>
|
74
74
|
<tr>
|
75
75
|
<td class="function_type">
|
76
|
-
<a href="
|
76
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> *
|
77
77
|
</td>
|
78
78
|
<td class="function_name">
|
79
79
|
<a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-to-csource" title="gdk_pixdata_to_csource ()">gdk_pixdata_to_csource</a> <span class="c_punctuation">()</span>
|
@@ -84,7 +84,7 @@
|
|
84
84
|
</div>
|
85
85
|
<div class="refsect1">
|
86
86
|
<a name="gdk-pixbuf-Inline-data.other"></a><h2>Types and Values</h2>
|
87
|
-
<div class="informaltable"><table width="100%" border="0">
|
87
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
88
88
|
<colgroup>
|
89
89
|
<col width="150px" class="name">
|
90
90
|
<col class="description">
|
@@ -126,29 +126,29 @@ GdkPixBuf includes a utility named gdk-pixbuf-csource, which
|
|
126
126
|
can be used to convert image files into <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures suitable
|
127
127
|
for inclusion in C sources. To convert the <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures back
|
128
128
|
into <a href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbufs</span></a>, use gdk_pixbuf_from_pixdata.</p>
|
129
|
-
<p><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> should not be used any more. <a href="
|
129
|
+
<p><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> should not be used any more. <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> should be used to save
|
130
130
|
the original compressed images inside the program's binary.</p>
|
131
131
|
</div>
|
132
132
|
<div class="refsect1">
|
133
133
|
<a name="gdk-pixbuf-Inline-data.functions_details"></a><h2>Functions</h2>
|
134
134
|
<div class="refsect2">
|
135
135
|
<a name="gdk-pixdata-from-pixbuf"></a><h3>gdk_pixdata_from_pixbuf ()</h3>
|
136
|
-
<pre class="programlisting"><a href="
|
136
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
|
137
137
|
gdk_pixdata_from_pixbuf (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
138
138
|
<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
139
|
-
<em class="parameter"><code><a href="
|
139
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_rle</code></em>);</pre>
|
140
140
|
<div class="warning">
|
141
141
|
<p><code class="literal">gdk_pixdata_from_pixbuf</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
142
|
-
<p>Use <a href="
|
142
|
+
<p>Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
143
143
|
</div>
|
144
144
|
<p>Converts a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> to a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>. If <em class="parameter"><code>use_rle</code></em>
|
145
|
-
is <a href="
|
145
|
+
is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the
|
146
146
|
pixel data is run-length encoded into newly-allocated memory and a
|
147
147
|
pointer to that memory is returned.</p>
|
148
148
|
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
|
149
149
|
<div class="refsect3">
|
150
150
|
<a name="gdk-pixdata-from-pixbuf.parameters"></a><h4>Parameters</h4>
|
151
|
-
<div class="informaltable"><table width="100%" border="0">
|
151
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
152
152
|
<colgroup>
|
153
153
|
<col width="150px" class="parameters_name">
|
154
154
|
<col class="parameters_description">
|
@@ -177,9 +177,9 @@ with.</p></td>
|
|
177
177
|
<div class="refsect3">
|
178
178
|
<a name="gdk-pixdata-from-pixbuf.returns"></a><h4>Returns</h4>
|
179
179
|
<p> If <em class="parameter"><code>use_rle</code></em>
|
180
|
-
is <a href="
|
180
|
+
is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a pointer to the
|
181
181
|
newly-allocated memory for the run-length encoded pixel data,
|
182
|
-
otherwise <a href="
|
182
|
+
otherwise <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
183
183
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
184
184
|
</div>
|
185
185
|
</div>
|
@@ -188,19 +188,19 @@ otherwise <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macro
|
|
188
188
|
<a name="gdk-pixbuf-from-pixdata"></a><h3>gdk_pixbuf_from_pixdata ()</h3>
|
189
189
|
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
|
190
190
|
gdk_pixbuf_from_pixdata (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
191
|
-
<em class="parameter"><code><a href="
|
192
|
-
<em class="parameter"><code><a href="
|
191
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
|
192
|
+
<em class="parameter"><code><a href="/home/vagrant/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>
|
193
193
|
<div class="warning">
|
194
194
|
<p><code class="literal">gdk_pixbuf_from_pixdata</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
195
|
-
<p>Use <a href="
|
195
|
+
<p>Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
196
196
|
</div>
|
197
197
|
<p>Converts a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. If <em class="parameter"><code>copy_pixels</code></em>
|
198
|
-
is <a href="
|
198
|
+
is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> or
|
199
199
|
if the pixel data is run-length-encoded, the pixel data is copied into
|
200
200
|
newly-allocated memory; otherwise it is reused.</p>
|
201
201
|
<div class="refsect3">
|
202
202
|
<a name="gdk-pixbuf-from-pixdata.parameters"></a><h4>Parameters</h4>
|
203
|
-
<div class="informaltable"><table width="100%" border="0">
|
203
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
204
204
|
<colgroup>
|
205
205
|
<col width="150px" class="parameters_name">
|
206
206
|
<col class="parameters_description">
|
@@ -235,12 +235,12 @@ pixel data is always copied.</p></td>
|
|
235
235
|
<hr>
|
236
236
|
<div class="refsect2">
|
237
237
|
<a name="gdk-pixdata-serialize"></a><h3>gdk_pixdata_serialize ()</h3>
|
238
|
-
<pre class="programlisting"><a href="
|
238
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
|
239
239
|
gdk_pixdata_serialize (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
240
|
-
<em class="parameter"><code><a href="
|
240
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *stream_length_p</code></em>);</pre>
|
241
241
|
<div class="warning">
|
242
242
|
<p><code class="literal">gdk_pixdata_serialize</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
243
|
-
<p>Use <a href="
|
243
|
+
<p>Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
244
244
|
</div>
|
245
245
|
<p>Serializes a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure into a byte stream.
|
246
246
|
The byte stream consists of a straightforward writeout of the
|
@@ -249,7 +249,7 @@ The byte stream consists of a straightforward writeout of the
|
|
249
249
|
bytes the structure points to.</p>
|
250
250
|
<div class="refsect3">
|
251
251
|
<a name="gdk-pixdata-serialize.parameters"></a><h4>Parameters</h4>
|
252
|
-
<div class="informaltable"><table width="100%" border="0">
|
252
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
253
253
|
<colgroup>
|
254
254
|
<col width="150px" class="parameters_name">
|
255
255
|
<col class="parameters_description">
|
@@ -280,14 +280,14 @@ structure. </p>
|
|
280
280
|
<hr>
|
281
281
|
<div class="refsect2">
|
282
282
|
<a name="gdk-pixdata-deserialize"></a><h3>gdk_pixdata_deserialize ()</h3>
|
283
|
-
<pre class="programlisting"><a href="
|
283
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
284
284
|
gdk_pixdata_deserialize (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
285
|
-
<em class="parameter"><code><a href="
|
286
|
-
<em class="parameter"><code>const <a href="
|
287
|
-
<em class="parameter"><code><a href="
|
285
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> stream_length</code></em>,
|
286
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *stream</code></em>,
|
287
|
+
<em class="parameter"><code><a href="/home/vagrant/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>
|
288
288
|
<div class="warning">
|
289
289
|
<p><code class="literal">gdk_pixdata_deserialize</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
290
|
-
<p>Use <a href="
|
290
|
+
<p>Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
291
291
|
</div>
|
292
292
|
<p>Deserializes (reconstruct) a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure from a byte stream.
|
293
293
|
The byte stream consists of a straightforward writeout of the
|
@@ -300,7 +300,7 @@ for validity. This function may fail with <a class="link" href="gdk-pixbuf-The-G
|
|
300
300
|
or <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR-UNKNOWN-TYPE:CAPS"><code class="literal">GDK_PIXBUF_ERROR_UNKNOWN_TYPE</code></a>.</p>
|
301
301
|
<div class="refsect3">
|
302
302
|
<a name="gdk-pixdata-deserialize.parameters"></a><h4>Parameters</h4>
|
303
|
-
<div class="informaltable"><table width="100%" border="0">
|
303
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
304
304
|
<colgroup>
|
305
305
|
<col width="150px" class="parameters_name">
|
306
306
|
<col class="parameters_description">
|
@@ -325,7 +325,7 @@ serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="
|
|
325
325
|
</tr>
|
326
326
|
<tr>
|
327
327
|
<td class="parameter_name"><p>error</p></td>
|
328
|
-
<td class="parameter_description"><p><a href="
|
328
|
+
<td class="parameter_description"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to indicate failures (maybe <a href="/home/vagrant/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 errors).</p></td>
|
329
329
|
<td class="parameter_annotations"> </td>
|
330
330
|
</tr>
|
331
331
|
</tbody>
|
@@ -333,20 +333,20 @@ serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="
|
|
333
333
|
</div>
|
334
334
|
<div class="refsect3">
|
335
335
|
<a name="gdk-pixdata-deserialize.returns"></a><h4>Returns</h4>
|
336
|
-
<p> Upon successful deserialization <a href="
|
337
|
-
<a href="
|
336
|
+
<p> Upon successful deserialization <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned,
|
337
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
|
338
338
|
</div>
|
339
339
|
</div>
|
340
340
|
<hr>
|
341
341
|
<div class="refsect2">
|
342
342
|
<a name="gdk-pixdata-to-csource"></a><h3>gdk_pixdata_to_csource ()</h3>
|
343
|
-
<pre class="programlisting"><a href="
|
343
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> *
|
344
344
|
gdk_pixdata_to_csource (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
|
345
|
-
<em class="parameter"><code>const <a href="
|
345
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
|
346
346
|
<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> dump_type</code></em>);</pre>
|
347
347
|
<div class="warning">
|
348
348
|
<p><code class="literal">gdk_pixdata_to_csource</code> has been deprecated since version 2.32 and should not be used in newly-written code.</p>
|
349
|
-
<p>Use <a href="
|
349
|
+
<p>Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GResource.html#GResource-struct"><span class="type">GResource</span></a> instead.</p>
|
350
350
|
</div>
|
351
351
|
<p>Generates C source code suitable for compiling images directly
|
352
352
|
into programs. </p>
|
@@ -355,7 +355,7 @@ into programs. </p>
|
|
355
355
|
line interface to this function.</p>
|
356
356
|
<div class="refsect3">
|
357
357
|
<a name="gdk-pixdata-to-csource.parameters"></a><h4>Parameters</h4>
|
358
|
-
<div class="informaltable"><table width="100%" border="0">
|
358
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
359
359
|
<colgroup>
|
360
360
|
<col width="150px" class="parameters_name">
|
361
361
|
<col class="parameters_description">
|
@@ -410,7 +410,7 @@ of <em class="parameter"><code>pixdata</code></em>
|
|
410
410
|
serialization and streaming.</p>
|
411
411
|
<div class="refsect3">
|
412
412
|
<a name="GdkPixdata.members"></a><h4>Members</h4>
|
413
|
-
<div class="informaltable"><table width="100%" border="0">
|
413
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
414
414
|
<colgroup>
|
415
415
|
<col width="300px" class="struct_members_name">
|
416
416
|
<col class="struct_members_description">
|
@@ -418,41 +418,41 @@ serialization and streaming.</p>
|
|
418
418
|
</colgroup>
|
419
419
|
<tbody>
|
420
420
|
<tr>
|
421
|
-
<td class="struct_member_name"><p><a href="
|
421
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.magic"></a>magic</code></em>;</p></td>
|
422
422
|
<td class="struct_member_description"><p>magic number. A valid <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure must have
|
423
423
|
<a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXBUF-MAGIC-NUMBER:CAPS" title="GDK_PIXBUF_MAGIC_NUMBER"><span class="type">GDK_PIXBUF_MAGIC_NUMBER</span></a> here.</p></td>
|
424
424
|
<td class="struct_member_annotations"> </td>
|
425
425
|
</tr>
|
426
426
|
<tr>
|
427
|
-
<td class="struct_member_name"><p><a href="
|
427
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GdkPixdata.length"></a>length</code></em>;</p></td>
|
428
428
|
<td class="struct_member_description"><p>less than 1 to disable length checks, otherwise
|
429
429
|
<a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXDATA-HEADER-LENGTH:CAPS" title="GDK_PIXDATA_HEADER_LENGTH"><span class="type">GDK_PIXDATA_HEADER_LENGTH</span></a> + length of <em class="parameter"><code>pixel_data</code></em>
|
430
430
|
. </p></td>
|
431
431
|
<td class="struct_member_annotations"> </td>
|
432
432
|
</tr>
|
433
433
|
<tr>
|
434
|
-
<td class="struct_member_name"><p><a href="
|
434
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.pixdata-type"></a>pixdata_type</code></em>;</p></td>
|
435
435
|
<td class="struct_member_description"><p>information about colorspace, sample width and
|
436
436
|
encoding, in a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataType" title="enum GdkPixdataType"><span class="type">GdkPixdataType</span></a>. </p></td>
|
437
437
|
<td class="struct_member_annotations"> </td>
|
438
438
|
</tr>
|
439
439
|
<tr>
|
440
|
-
<td class="struct_member_name"><p><a href="
|
440
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.rowstride"></a>rowstride</code></em>;</p></td>
|
441
441
|
<td class="struct_member_description"><p>Distance in bytes between rows.</p></td>
|
442
442
|
<td class="struct_member_annotations"> </td>
|
443
443
|
</tr>
|
444
444
|
<tr>
|
445
|
-
<td class="struct_member_name"><p><a href="
|
445
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.width"></a>width</code></em>;</p></td>
|
446
446
|
<td class="struct_member_description"><p>Width of the image in pixels.</p></td>
|
447
447
|
<td class="struct_member_annotations"> </td>
|
448
448
|
</tr>
|
449
449
|
<tr>
|
450
|
-
<td class="struct_member_name"><p><a href="
|
450
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.height"></a>height</code></em>;</p></td>
|
451
451
|
<td class="struct_member_description"><p>Height of the image in pixels.</p></td>
|
452
452
|
<td class="struct_member_annotations"> </td>
|
453
453
|
</tr>
|
454
454
|
<tr>
|
455
|
-
<td class="struct_member_name"><p><a href="
|
455
|
+
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *<em class="structfield"><code><a name="GdkPixdata.pixel-data"></a>pixel_data</code></em>;</p></td>
|
456
456
|
<td class="struct_member_description"><p> <em class="parameter"><code>width</code></em>
|
457
457
|
x <em class="parameter"><code>height</code></em>
|
458
458
|
pixels, encoded according to <em class="parameter"><code>pixdata_type</code></em>
|
@@ -473,7 +473,7 @@ one for the used colorspace, one for the width of the samples and one
|
|
473
473
|
for the encoding of the pixel data.</p>
|
474
474
|
<div class="refsect3">
|
475
475
|
<a name="GdkPixdataType.members"></a><h4>Members</h4>
|
476
|
-
<div class="informaltable"><table width="100%" border="0">
|
476
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
477
477
|
<colgroup>
|
478
478
|
<col width="300px" class="enum_members_name">
|
479
479
|
<col class="enum_members_description">
|
@@ -562,7 +562,7 @@ and <em class="parameter"><code>GDK_PIXDATA_DUMP_MACROS</code></em>
|
|
562
562
|
elements are optional flags that can be freely added.</p>
|
563
563
|
<div class="refsect3">
|
564
564
|
<a name="GdkPixdataDumpType.members"></a><h4>Members</h4>
|
565
|
-
<div class="informaltable"><table width="100%" border="0">
|
565
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
566
566
|
<colgroup>
|
567
567
|
<col width="300px" class="enum_members_name">
|
568
568
|
<col class="enum_members_description">
|
@@ -659,6 +659,6 @@ elements are optional flags that can be freely added.</p>
|
|
659
659
|
</div>
|
660
660
|
</div>
|
661
661
|
<div class="footer">
|
662
|
-
<hr>Generated by GTK-Doc V1.25
|
662
|
+
<hr>Generated by GTK-Doc V1.25</div>
|
663
663
|
</body>
|
664
664
|
</html>
|