1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>gdk-pixbuf</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
<link rel="home" href="index.html" title="GDK-PixBuf Reference Manual">
8
<link rel="up" href="rn01.html" title="API Reference">
9
<link rel="prev" href="gdk-pixbuf-Versioning.html" title="Versioning">
10
<link rel="next" href="gdk-pixbuf-refcounting.html" title="refcounting">
11
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="gdk-pixbuf-Versioning.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">GDK-PixBuf Reference Manual</th>
21
<td><a accesskey="n" href="gdk-pixbuf-refcounting.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#gdk-pixbuf-gdk-pixbuf.synopsis" class="shortcut">Top</a>
26
<a href="#gdk-pixbuf-gdk-pixbuf.description" class="shortcut">Description</a>
28
<a href="#gdk-pixbuf-gdk-pixbuf.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#gdk-pixbuf-gdk-pixbuf.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#gdk-pixbuf-gdk-pixbuf.properties" class="shortcut">Properties</a>
35
<div class="refentry">
36
<a name="gdk-pixbuf-gdk-pixbuf"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="gdk-pixbuf-gdk-pixbuf.top_of_page"></a>gdk-pixbuf</span></h2>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv">
45
<a name="gdk-pixbuf-gdk-pixbuf.synopsis"></a><h2>Synopsis</h2>
46
<a name="GdkPixbuf"></a><pre class="synopsis">
47
#include <gdk-pixbuf/gdk-pixbuf.h>
49
enum <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbufError" title="enum GdkPixbufError">GdkPixbufError</a>;
50
#define <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GDK-PIXBUF-ERROR:CAPS" title="GDK_PIXBUF_ERROR">GDK_PIXBUF_ERROR</a>
51
enum <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkColorspace" title="enum GdkColorspace">GdkColorspace</a>;
52
enum <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbufAlphaMode" title="enum GdkPixbufAlphaMode">GdkPixbufAlphaMode</a>;
53
<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf-struct" title="GdkPixbuf">GdkPixbuf</a>;
54
<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-colorspace" title="gdk_pixbuf_get_colorspace ()">gdk_pixbuf_get_colorspace</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
55
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-n-channels" title="gdk_pixbuf_get_n_channels ()">gdk_pixbuf_get_n_channels</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
56
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-has-alpha" title="gdk_pixbuf_get_has_alpha ()">gdk_pixbuf_get_has_alpha</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
57
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-bits-per-sample" title="gdk_pixbuf_get_bits_per_sample ()">gdk_pixbuf_get_bits_per_sample</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
58
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-pixels" title="gdk_pixbuf_get_pixels ()">gdk_pixbuf_get_pixels</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
59
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-width" title="gdk_pixbuf_get_width ()">gdk_pixbuf_get_width</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
60
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-height" title="gdk_pixbuf_get_height ()">gdk_pixbuf_get_height</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
61
<span class="returnvalue">int</span> <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-rowstride" title="gdk_pixbuf_get_rowstride ()">gdk_pixbuf_get_rowstride</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
62
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#gdk-pixbuf-get-option" title="gdk_pixbuf_get_option ()">gdk_pixbuf_get_option</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
63
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);
66
<div class="refsect1">
67
<a name="gdk-pixbuf-gdk-pixbuf.object-hierarchy"></a><h2>Object Hierarchy</h2>
68
<pre class="synopsis">
69
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
73
<div class="refsect1">
74
<a name="gdk-pixbuf-gdk-pixbuf.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
77
<a href="http://library.gnome.org/devel/gio/unstable/GIcon.html">GIcon</a>.</p>
79
<div class="refsect1">
80
<a name="gdk-pixbuf-gdk-pixbuf.properties"></a><h2>Properties</h2>
81
<pre class="synopsis">
82
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--bits-per-sample" title='The "bits-per-sample" property'>bits-per-sample</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
83
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--colorspace" title='The "colorspace" property'>colorspace</a>" <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> : Read / Write / Construct Only
84
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--has-alpha" title='The "has-alpha" property'>has-alpha</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only
85
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--height" title='The "height" property'>height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
86
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--n-channels" title='The "n-channels" property'>n-channels</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
87
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--pixels" title='The "pixels" property'>pixels</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write / Construct Only
88
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--rowstride" title='The "rowstride" property'>rowstride</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
89
"<a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf--width" title='The "width" property'>width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only
92
<div class="refsect1">
93
<a name="gdk-pixbuf-gdk-pixbuf.description"></a><h2>Description</h2>
97
<div class="refsect1">
98
<a name="gdk-pixbuf-gdk-pixbuf.details"></a><h2>Details</h2>
99
<div class="refsect2">
100
<a name="GdkPixbufError"></a><h3>enum GdkPixbufError</h3>
101
<pre class="programlisting">typedef enum {
102
/* image data hosed */
103
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
104
/* no mem to load image */
105
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
106
/* bad option passed to save routine */
107
GDK_PIXBUF_ERROR_BAD_OPTION,
108
/* unsupported image type (sort of an ENOSYS) */
109
GDK_PIXBUF_ERROR_UNKNOWN_TYPE,
110
/* unsupported operation (load, save) for image type */
111
GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION,
112
GDK_PIXBUF_ERROR_FAILED
119
<div class="refsect2">
120
<a name="GDK-PIXBUF-ERROR:CAPS"></a><h3>GDK_PIXBUF_ERROR</h3>
121
<pre class="programlisting">#define GDK_PIXBUF_ERROR gdk_pixbuf_error_quark ()
127
<div class="refsect2">
128
<a name="GdkColorspace"></a><h3>enum GdkColorspace</h3>
129
<pre class="programlisting">typedef enum {
137
<div class="refsect2">
138
<a name="GdkPixbufAlphaMode"></a><h3>enum GdkPixbufAlphaMode</h3>
139
<pre class="programlisting">typedef enum
141
GDK_PIXBUF_ALPHA_BILEVEL,
142
GDK_PIXBUF_ALPHA_FULL
143
} GdkPixbufAlphaMode;
149
<div class="refsect2">
150
<a name="GdkPixbuf-struct"></a><h3>GdkPixbuf</h3>
151
<pre class="programlisting">typedef struct _GdkPixbuf GdkPixbuf;</pre>
156
<div class="refsect2">
157
<a name="gdk-pixbuf-get-colorspace"></a><h3>gdk_pixbuf_get_colorspace ()</h3>
158
<pre class="programlisting"><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkColorspace" title="enum GdkColorspace"><span class="returnvalue">GdkColorspace</span></a> gdk_pixbuf_get_colorspace (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
160
Queries the color space of a pixbuf.
162
<div class="variablelist"><table border="0">
163
<col align="left" valign="top">
166
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
170
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
171
<td>Color space.</td>
177
<div class="refsect2">
178
<a name="gdk-pixbuf-get-n-channels"></a><h3>gdk_pixbuf_get_n_channels ()</h3>
179
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_n_channels (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
181
Queries the number of channels of a pixbuf.
183
<div class="variablelist"><table border="0">
184
<col align="left" valign="top">
187
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
191
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
192
<td>Number of channels.</td>
198
<div class="refsect2">
199
<a name="gdk-pixbuf-get-has-alpha"></a><h3>gdk_pixbuf_get_has_alpha ()</h3>
200
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixbuf_get_has_alpha (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
202
Queries whether a pixbuf has an alpha channel (opacity information).
204
<div class="variablelist"><table border="0">
205
<col align="left" valign="top">
208
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
212
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
214
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if it has an alpha channel, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
220
<div class="refsect2">
221
<a name="gdk-pixbuf-get-bits-per-sample"></a><h3>gdk_pixbuf_get_bits_per_sample ()</h3>
222
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_bits_per_sample (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
224
Queries the number of bits per color sample in a pixbuf.
226
<div class="variablelist"><table border="0">
227
<col align="left" valign="top">
230
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
234
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
235
<td>Number of bits per color sample.</td>
241
<div class="refsect2">
242
<a name="gdk-pixbuf-get-pixels"></a><h3>gdk_pixbuf_get_pixels ()</h3>
243
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * gdk_pixbuf_get_pixels (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
245
Queries a pointer to the pixel data of a pixbuf.
247
<div class="variablelist"><table border="0">
248
<col align="left" valign="top">
251
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
255
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
256
<td>A pointer to the pixbuf's pixel data. Please see <a class="xref" href="">???</a>
257
for information about how the pixel data is stored in
264
<div class="refsect2">
265
<a name="gdk-pixbuf-get-width"></a><h3>gdk_pixbuf_get_width ()</h3>
266
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_width (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
268
Queries the width of a pixbuf.
270
<div class="variablelist"><table border="0">
271
<col align="left" valign="top">
274
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
278
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
279
<td>Width in pixels.</td>
285
<div class="refsect2">
286
<a name="gdk-pixbuf-get-height"></a><h3>gdk_pixbuf_get_height ()</h3>
287
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_height (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
289
Queries the height of a pixbuf.
291
<div class="variablelist"><table border="0">
292
<col align="left" valign="top">
295
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
299
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
300
<td>Height in pixels.</td>
306
<div class="refsect2">
307
<a name="gdk-pixbuf-get-rowstride"></a><h3>gdk_pixbuf_get_rowstride ()</h3>
308
<pre class="programlisting"><span class="returnvalue">int</span> gdk_pixbuf_get_rowstride (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
310
Queries the rowstride of a pixbuf, which is the number of bytes between the start of a row
311
and the start of the next row.
313
<div class="variablelist"><table border="0">
314
<col align="left" valign="top">
317
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
321
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
322
<td>Distance between row starts.</td>
328
<div class="refsect2">
329
<a name="gdk-pixbuf-get-option"></a><h3>gdk_pixbuf_get_option ()</h3>
330
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gdk_pixbuf_get_option (<em class="parameter"><code><a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
331
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
333
Looks up <em class="parameter"><code>key</code></em> in the list of options that may have been attached to the
334
<em class="parameter"><code>pixbuf</code></em> when it was loaded, or that may have been attached by another
335
function using <a class="link" href="gdk-pixbuf-Module-Interface.html#gdk-pixbuf-set-option" title="gdk_pixbuf_set_option ()"><code class="function">gdk_pixbuf_set_option()</code></a>.
338
For instance, the ANI loader provides "Title" and "Artist" options.
339
The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
340
options for cursor definitions. The PNG loader provides the tEXt ancillary
341
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
342
return an "orientation" option string that corresponds to the embedded
343
TIFF/Exif orientation tag (if present).
345
<div class="variablelist"><table border="0">
346
<col align="left" valign="top">
349
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
350
<td>a <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
354
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
355
<td>a nul-terminated string.</td>
358
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
359
<td>the value associated with <em class="parameter"><code>key</code></em>. This is a nul-terminated
360
string that should not be freed or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>key</code></em> was not found.</td>
366
<div class="refsect1">
367
<a name="gdk-pixbuf-gdk-pixbuf.property-details"></a><h2>Property Details</h2>
368
<div class="refsect2">
369
<a name="GdkPixbuf--bits-per-sample"></a><h3>The <code class="literal">"bits-per-sample"</code> property</h3>
370
<pre class="programlisting"> "bits-per-sample" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only</pre>
372
The number of bits per sample.
373
Currently only 8 bit per sample are supported.
375
<p>Allowed values: [1,16]</p>
376
<p>Default value: 8</p>
379
<div class="refsect2">
380
<a name="GdkPixbuf--colorspace"></a><h3>The <code class="literal">"colorspace"</code> property</h3>
381
<pre class="programlisting"> "colorspace" <a class="link" href="gdk-pixbuf-gdk-pixbuf.html#GdkColorspace" title="enum GdkColorspace"><span class="type">GdkColorspace</span></a> : Read / Write / Construct Only</pre>
382
<p>The colorspace in which the samples are interpreted.</p>
383
<p>Default value: GDK_COLORSPACE_RGB</p>
386
<div class="refsect2">
387
<a name="GdkPixbuf--has-alpha"></a><h3>The <code class="literal">"has-alpha"</code> property</h3>
388
<pre class="programlisting"> "has-alpha" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only</pre>
389
<p>Whether the pixbuf has an alpha channel.</p>
390
<p>Default value: FALSE</p>
393
<div class="refsect2">
394
<a name="GdkPixbuf--height"></a><h3>The <code class="literal">"height"</code> property</h3>
395
<pre class="programlisting"> "height" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only</pre>
396
<p>The number of rows of the pixbuf.</p>
397
<p>Allowed values: >= 1</p>
398
<p>Default value: 1</p>
401
<div class="refsect2">
402
<a name="GdkPixbuf--n-channels"></a><h3>The <code class="literal">"n-channels"</code> property</h3>
403
<pre class="programlisting"> "n-channels" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only</pre>
405
The number of samples per pixel.
406
Currently, only 3 or 4 samples per pixel are supported.
408
<p>Allowed values: >= 0</p>
409
<p>Default value: 3</p>
412
<div class="refsect2">
413
<a name="GdkPixbuf--pixels"></a><h3>The <code class="literal">"pixels"</code> property</h3>
414
<pre class="programlisting"> "pixels" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write / Construct Only</pre>
415
<p>A pointer to the pixel data of the pixbuf.</p>
418
<div class="refsect2">
419
<a name="GdkPixbuf--rowstride"></a><h3>The <code class="literal">"rowstride"</code> property</h3>
420
<pre class="programlisting"> "rowstride" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only</pre>
422
The number of bytes between the start of a row and
423
the start of the next row. This number must (obviously)
424
be at least as large as the width of the pixbuf.
426
<p>Allowed values: >= 1</p>
427
<p>Default value: 1</p>
430
<div class="refsect2">
431
<a name="GdkPixbuf--width"></a><h3>The <code class="literal">"width"</code> property</h3>
432
<pre class="programlisting"> "width" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write / Construct Only</pre>
433
<p>The number of columns of the pixbuf.</p>
434
<p>Allowed values: >= 1</p>
435
<p>Default value: 1</p>
441
Generated by GTK-Doc V1.16.1</div>
b'\\ No newline at end of file'