gdk_pixbuf2 3.2.5-x86-mingw32 → 3.2.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING.LIB +502 -0
- data/README.md +30 -0
- data/Rakefile +5 -5
- data/gdk_pixbuf2.gemspec +42 -0
- data/lib/gdk_pixbuf2/deprecated.rb +9 -7
- data/lib/gdk_pixbuf2/loader.rb +10 -1
- data/lib/gdk_pixbuf2/pixbuf.rb +14 -12
- data/test/test-pixbuf.rb +2 -2
- 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/gdk-pixbuf-thumbnailer.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-features.h +2 -2
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +1 -1
- data/vendor/local/lib/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 +3 -3
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +24 -20
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +4 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +75 -74
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +108 -105
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +133 -133
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +34 -34
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +43 -43
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +55 -55
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +14 -14
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +82 -82
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +15 -15
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +2 -2
- 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_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/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fur/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/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kk/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/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/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_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/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +1 -135
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -73
- metadata +7 -18
@@ -8,7 +8,7 @@
|
|
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.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.27 (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">
|
@@ -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 <
|
115
|
+
in <code class="literal">NULL</code> 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 <
|
126
|
+
function. This is not the same as just doing a <code class="function">g_object_ref()</code>
|
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><
|
136
|
+
<em class="parameter"><code><span class="type">gboolean</span> 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>
|
@@ -180,23 +180,23 @@ 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
|
-
<
|
183
|
+
<code class="literal">NULL</code> 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><
|
190
|
+
gdk_pixbuf_new_from_bytes (<em class="parameter"><code><span class="type">GBytes</span> *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><
|
192
|
+
<em class="parameter"><code><span class="type">gboolean</span> 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 <
|
199
|
+
This is the <span class="type">GBytes</span> 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
202
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -208,7 +208,7 @@ This is the <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GB
|
|
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 <
|
211
|
+
<td class="parameter_description"><p>Image data in 8-bit/sample packed format inside a <span class="type">GBytes</span></p></td>
|
212
212
|
<td class="parameter_annotations"> </td>
|
213
213
|
</tr>
|
214
214
|
<tr>
|
@@ -246,7 +246,7 @@ This is the <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GB
|
|
246
246
|
</div>
|
247
247
|
<div class="refsect3">
|
248
248
|
<a name="gdk-pixbuf-new-from-bytes.returns"></a><h4>Returns</h4>
|
249
|
-
<p>
|
249
|
+
<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 count of 1. </p>
|
250
250
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
251
251
|
</div>
|
252
252
|
<p class="since">Since: <a class="link" href="api-index-2-32.html#api-index-2.32">2.32</a></p>
|
@@ -255,15 +255,15 @@ This is the <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GB
|
|
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 <
|
258
|
+
gdk_pixbuf_new_from_data (<em class="parameter"><code>const <span class="type">guchar</span> *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><
|
260
|
+
<em class="parameter"><code><span class="type">gboolean</span> 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><
|
266
|
+
<em class="parameter"><code><span class="type">gpointer</span> 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
|
@@ -283,7 +283,7 @@ it is its responsibility to free the pixel array.</p>
|
|
283
283
|
<tbody>
|
284
284
|
<tr>
|
285
285
|
<td class="parameter_name"><p>data</p></td>
|
286
|
-
<td class="parameter_description"><p>
|
286
|
+
<td class="parameter_description"><p>Image data in 8-bit/sample packed format. </p></td>
|
287
287
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>]</span></td>
|
288
288
|
</tr>
|
289
289
|
<tr>
|
@@ -318,13 +318,13 @@ it is its responsibility to free the pixel array.</p>
|
|
318
318
|
</tr>
|
319
319
|
<tr>
|
320
320
|
<td class="parameter_name"><p>destroy_fn</p></td>
|
321
|
-
<td class="parameter_description"><p>
|
322
|
-
drops to zero, or <
|
321
|
+
<td class="parameter_description"><p>Function used to free the data when the pixbuf's reference count
|
322
|
+
drops to zero, or <code class="literal">NULL</code> 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>
|
326
326
|
<td class="parameter_name"><p>destroy_fn_data</p></td>
|
327
|
-
<td class="parameter_description"><p>
|
327
|
+
<td class="parameter_description"><p>Closure data to pass to the destroy notification function. </p></td>
|
328
328
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
|
329
329
|
</tr>
|
330
330
|
</tbody>
|
@@ -332,7 +332,7 @@ drops to zero, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code cl
|
|
332
332
|
</div>
|
333
333
|
<div class="refsect3">
|
334
334
|
<a name="gdk-pixbuf-new-from-data.returns"></a><h4>Returns</h4>
|
335
|
-
<p>
|
335
|
+
<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 count of 1. </p>
|
336
336
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
337
337
|
</div>
|
338
338
|
</div>
|
@@ -353,7 +353,7 @@ the result of including an XPM file into a program's C source.</p>
|
|
353
353
|
</colgroup>
|
354
354
|
<tbody><tr>
|
355
355
|
<td class="parameter_name"><p>data</p></td>
|
356
|
-
<td class="parameter_description"><p>
|
356
|
+
<td class="parameter_description"><p>Pointer to inline XPM data. </p></td>
|
357
357
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
|
358
358
|
</tr></tbody>
|
359
359
|
</table></div>
|
@@ -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><
|
371
|
-
<em class="parameter"><code>const <
|
372
|
-
<em class="parameter"><code><
|
373
|
-
<em class="parameter"><code><
|
370
|
+
gdk_pixbuf_new_from_inline (<em class="parameter"><code><span class="type">gint</span> data_length</code></em>,
|
371
|
+
<em class="parameter"><code>const <span class="type">guint8</span> *data</code></em>,
|
372
|
+
<em class="parameter"><code><span class="type">gboolean</span> copy_pixels</code></em>,
|
373
|
+
<em class="parameter"><code><span class="type">GError</span> **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 <
|
376
|
+
<p>Use <span class="type">GResource</span> 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
|
@@ -388,7 +388,7 @@ In almost all cases, you should pass the <code class="literal">--raw</code> opti
|
|
388
388
|
<tbody>
|
389
389
|
<tr>
|
390
390
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
391
|
-
<td class="listing_code"><pre class="programlisting">gdk
|
391
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">gdk</span><span class="symbol">-</span><span class="normal">pixbuf</span><span class="symbol">-</span><span class="normal">csource </span><span class="symbol">--</span><span class="normal">raw </span><span class="symbol">--</span><span class="normal">name</span><span class="symbol">=</span><span class="usertype">myimage_inline</span><span class="normal"> myimage</span><span class="symbol">.</span><span class="normal">png</span></pre></td>
|
392
392
|
</tr>
|
393
393
|
</tbody>
|
394
394
|
</table>
|
@@ -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 <
|
400
|
+
it, so you can pass <code class="literal">FALSE</code> 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 <
|
403
|
+
is <code class="literal">FALSE</code>,
|
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">pixbuf
|
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"> FALSE</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">);</span></pre></td>
|
414
414
|
</tr>
|
415
415
|
</tbody>
|
416
416
|
</table>
|
@@ -438,7 +438,7 @@ disable length checks</p></td>
|
|
438
438
|
</tr>
|
439
439
|
<tr>
|
440
440
|
<td class="parameter_name"><p>data</p></td>
|
441
|
-
<td class="parameter_description"><p>
|
441
|
+
<td class="parameter_description"><p>Byte data containing a
|
442
442
|
serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure. </p></td>
|
443
443
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=data_length]</span></td>
|
444
444
|
</tr>
|
@@ -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><
|
454
|
+
<td class="parameter_description"><p><span class="type">GError</span> return location, may be <code class="literal">NULL</code> 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 <
|
463
|
+
count of 1, or <code class="literal">NULL</code> if an error occurred.</p>
|
464
464
|
</div>
|
465
465
|
</div>
|
466
466
|
<hr>
|
@@ -526,7 +526,7 @@ to be mutable.</p>
|
|
526
526
|
</div>
|
527
527
|
<div class="refsect3">
|
528
528
|
<a name="gdk-pixbuf-new-subpixbuf.returns"></a><h4>Returns</h4>
|
529
|
-
<p>
|
529
|
+
<p>a new pixbuf. </p>
|
530
530
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
531
531
|
</div>
|
532
532
|
</div>
|
@@ -556,7 +556,7 @@ use <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-cop
|
|
556
556
|
</div>
|
557
557
|
<div class="refsect3">
|
558
558
|
<a name="gdk-pixbuf-copy.returns"></a><h4>Returns</h4>
|
559
|
-
<p>
|
559
|
+
<p>A newly-created pixbuf with a reference count of 1, or <code class="literal">NULL</code> if
|
560
560
|
not enough memory could be allocated. </p>
|
561
561
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
562
562
|
</div>
|
@@ -571,6 +571,6 @@ not enough memory could be allocated. </p>
|
|
571
571
|
</div>
|
572
572
|
</div>
|
573
573
|
<div class="footer">
|
574
|
-
<hr>Generated by GTK-Doc V1.
|
574
|
+
<hr>Generated by GTK-Doc V1.27</div>
|
575
575
|
</body>
|
576
576
|
</html>
|
@@ -8,7 +8,7 @@
|
|
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.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.27 (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">
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<
|
44
|
+
<span class="returnvalue">gpointer</span>
|
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
|
-
<
|
60
|
+
<span class="returnvalue">guint8</span> *
|
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
|
-
<
|
68
|
+
<span class="returnvalue">gboolean</span>
|
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
|
-
<
|
76
|
+
<span class="returnvalue">GString</span> *
|
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>
|
@@ -126,23 +126,23 @@ 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. <
|
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. <span class="type">GResource</span> 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"><
|
136
|
+
<pre class="programlisting"><span class="returnvalue">gpointer</span>
|
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><
|
139
|
+
<em class="parameter"><code><span class="type">gboolean</span> 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 <
|
142
|
+
<p>Use <span class="type">GResource</span> 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 <
|
145
|
+
is <code class="literal">TRUE</code>, 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>
|
@@ -176,10 +176,10 @@ with.</p></td>
|
|
176
176
|
</div>
|
177
177
|
<div class="refsect3">
|
178
178
|
<a name="gdk-pixdata-from-pixbuf.returns"></a><h4>Returns</h4>
|
179
|
-
<p>
|
180
|
-
is <
|
179
|
+
<p>If <em class="parameter"><code>use_rle</code></em>
|
180
|
+
is <code class="literal">TRUE</code>, a pointer to the
|
181
181
|
newly-allocated memory for the run-length encoded pixel data,
|
182
|
-
otherwise <
|
182
|
+
otherwise <code class="literal">NULL</code>. </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,14 +188,14 @@ otherwise <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="lit
|
|
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><
|
192
|
-
<em class="parameter"><code><
|
191
|
+
<em class="parameter"><code><span class="type">gboolean</span> copy_pixels</code></em>,
|
192
|
+
<em class="parameter"><code><span class="type">GError</span> **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 <
|
195
|
+
<p>Use <span class="type">GResource</span> 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 <
|
198
|
+
is <code class="literal">TRUE</code> 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">
|
@@ -228,19 +228,19 @@ pixel data is always copied.</p></td>
|
|
228
228
|
</div>
|
229
229
|
<div class="refsect3">
|
230
230
|
<a name="gdk-pixbuf-from-pixdata.returns"></a><h4>Returns</h4>
|
231
|
-
<p>
|
231
|
+
<p>a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. </p>
|
232
232
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
233
233
|
</div>
|
234
234
|
</div>
|
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"><
|
238
|
+
<pre class="programlisting"><span class="returnvalue">guint8</span> *
|
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><
|
240
|
+
<em class="parameter"><code><span class="type">guint</span> *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 <
|
243
|
+
<p>Use <span class="type">GResource</span> 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
|
@@ -271,7 +271,7 @@ bytes the structure points to.</p>
|
|
271
271
|
</div>
|
272
272
|
<div class="refsect3">
|
273
273
|
<a name="gdk-pixdata-serialize.returns"></a><h4>Returns</h4>
|
274
|
-
<p>
|
274
|
+
<p>A
|
275
275
|
newly-allocated string containing the serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>
|
276
276
|
structure. </p>
|
277
277
|
<p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=stream_length_p][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
@@ -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"><
|
283
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
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><
|
286
|
-
<em class="parameter"><code>const <
|
287
|
-
<em class="parameter"><code><
|
285
|
+
<em class="parameter"><code><span class="type">guint</span> stream_length</code></em>,
|
286
|
+
<em class="parameter"><code>const <span class="type">guint8</span> *stream</code></em>,
|
287
|
+
<em class="parameter"><code><span class="type">GError</span> **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 <
|
290
|
+
<p>Use <span class="type">GResource</span> 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
|
@@ -319,13 +319,13 @@ or <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERRO
|
|
319
319
|
</tr>
|
320
320
|
<tr>
|
321
321
|
<td class="parameter_name"><p>stream</p></td>
|
322
|
-
<td class="parameter_description"><p>
|
322
|
+
<td class="parameter_description"><p>stream of bytes containing a
|
323
323
|
serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure. </p></td>
|
324
324
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=stream_length]</span></td>
|
325
325
|
</tr>
|
326
326
|
<tr>
|
327
327
|
<td class="parameter_name"><p>error</p></td>
|
328
|
-
<td class="parameter_description"><p><
|
328
|
+
<td class="parameter_description"><p><span class="type">GError</span> location to indicate failures (maybe <code class="literal">NULL</code> 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 <
|
337
|
-
<
|
336
|
+
<p> Upon successful deserialization <code class="literal">TRUE</code> is returned,
|
337
|
+
<code class="literal">FALSE</code> 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"><
|
343
|
+
<pre class="programlisting"><span class="returnvalue">GString</span> *
|
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 <
|
345
|
+
<em class="parameter"><code>const <span class="type">gchar</span> *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 <
|
349
|
+
<p>Use <span class="type">GResource</span> instead.</p>
|
350
350
|
</div>
|
351
351
|
<p>Generates C source code suitable for compiling images directly
|
352
352
|
into programs. </p>
|
@@ -418,42 +418,42 @@ serialization and streaming.</p>
|
|
418
418
|
</colgroup>
|
419
419
|
<tbody>
|
420
420
|
<tr>
|
421
|
-
<td class="struct_member_name"><p><
|
421
|
+
<td class="struct_member_name"><p><span class="type">guint32</span> <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><
|
427
|
+
<td class="struct_member_name"><p><span class="type">gint32</span> <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><
|
434
|
+
<td class="struct_member_name"><p><span class="type">guint32</span> <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><
|
440
|
+
<td class="struct_member_name"><p><span class="type">guint32</span> <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><
|
445
|
+
<td class="struct_member_name"><p><span class="type">guint32</span> <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><
|
450
|
+
<td class="struct_member_name"><p><span class="type">guint32</span> <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><
|
456
|
-
<td class="struct_member_description"><p
|
455
|
+
<td class="struct_member_name"><p><span class="type">guint8</span> *<em class="structfield"><code><a name="GdkPixdata.pixel-data"></a>pixel_data</code></em>;</p></td>
|
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>
|
459
459
|
and <em class="parameter"><code>rowstride</code></em>
|
@@ -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.
|
662
|
+
<hr>Generated by GTK-Doc V1.27</div>
|
663
663
|
</body>
|
664
664
|
</html>
|