~ubuntu-branches/ubuntu/precise/gdk-pixbuf/precise-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gdk-pixbuf/html/gdk-pixbuf-gdk-pixbuf.html

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-04-05 10:14:08 UTC
  • mto: (1.3.2) (4.1.4 sid) (33.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110405101408-xmmvv2ug9rzyoiag
Tags: upstream-2.23.3
Import upstream version 2.23.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html>
3
 
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<title>gdk-pixbuf</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">
13
 
</head>
14
 
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
 
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
 
<tr valign="middle">
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>
22
 
</tr>
23
 
<tr><td colspan="5" class="shortcuts">
24
 
<a href="#gdk-pixbuf-gdk-pixbuf.synopsis" class="shortcut">Top</a>
25
 
                   | 
26
 
                  <a href="#gdk-pixbuf-gdk-pixbuf.description" class="shortcut">Description</a>
27
 
                   | 
28
 
                  <a href="#gdk-pixbuf-gdk-pixbuf.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
 
                   | 
30
 
                  <a href="#gdk-pixbuf-gdk-pixbuf.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31
 
                   | 
32
 
                  <a href="#gdk-pixbuf-gdk-pixbuf.properties" class="shortcut">Properties</a>
33
 
</td></tr>
34
 
</table>
35
 
<div class="refentry">
36
 
<a name="gdk-pixbuf-gdk-pixbuf"></a><div class="titlepage"></div>
37
 
<div class="refnamediv"><table width="100%"><tr>
38
 
<td valign="top">
39
 
<h2><span class="refentrytitle"><a name="gdk-pixbuf-gdk-pixbuf.top_of_page"></a>gdk-pixbuf</span></h2>
40
 
<p>gdk-pixbuf</p>
41
 
</td>
42
 
<td valign="top" align="right"></td>
43
 
</tr></table></div>
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 &lt;gdk-pixbuf/gdk-pixbuf.h&gt;
48
 
 
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>);
64
 
</pre>
65
 
</div>
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>
70
 
   +----GdkPixbuf
71
 
</pre>
72
 
</div>
73
 
<div class="refsect1">
74
 
<a name="gdk-pixbuf-gdk-pixbuf.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
75
 
<p>
76
 
GdkPixbuf implements
77
 
 <a href="http://library.gnome.org/devel/gio/unstable/GIcon.html">GIcon</a>.</p>
78
 
</div>
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
90
 
</pre>
91
 
</div>
92
 
<div class="refsect1">
93
 
<a name="gdk-pixbuf-gdk-pixbuf.description"></a><h2>Description</h2>
94
 
<p>
95
 
</p>
96
 
</div>
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
113
 
} GdkPixbufError;
114
 
</pre>
115
 
<p>
116
 
</p>
117
 
</div>
118
 
<hr>
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 ()
122
 
</pre>
123
 
<p>
124
 
</p>
125
 
</div>
126
 
<hr>
127
 
<div class="refsect2">
128
 
<a name="GdkColorspace"></a><h3>enum GdkColorspace</h3>
129
 
<pre class="programlisting">typedef enum {
130
 
        GDK_COLORSPACE_RGB
131
 
} GdkColorspace;
132
 
</pre>
133
 
<p>
134
 
</p>
135
 
</div>
136
 
<hr>
137
 
<div class="refsect2">
138
 
<a name="GdkPixbufAlphaMode"></a><h3>enum GdkPixbufAlphaMode</h3>
139
 
<pre class="programlisting">typedef enum
140
 
{
141
 
        GDK_PIXBUF_ALPHA_BILEVEL,
142
 
        GDK_PIXBUF_ALPHA_FULL
143
 
} GdkPixbufAlphaMode;
144
 
</pre>
145
 
<p>
146
 
</p>
147
 
</div>
148
 
<hr>
149
 
<div class="refsect2">
150
 
<a name="GdkPixbuf-struct"></a><h3>GdkPixbuf</h3>
151
 
<pre class="programlisting">typedef struct _GdkPixbuf GdkPixbuf;</pre>
152
 
<p>
153
 
</p>
154
 
</div>
155
 
<hr>
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>
159
 
<p>
160
 
Queries the color space of a pixbuf.
161
 
</p>
162
 
<div class="variablelist"><table border="0">
163
 
<col align="left" valign="top">
164
 
<tbody>
165
 
<tr>
166
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
167
 
<td>A pixbuf.</td>
168
 
</tr>
169
 
<tr>
170
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
171
 
<td>Color space.</td>
172
 
</tr>
173
 
</tbody>
174
 
</table></div>
175
 
</div>
176
 
<hr>
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>
180
 
<p>
181
 
Queries the number of channels of a pixbuf.
182
 
</p>
183
 
<div class="variablelist"><table border="0">
184
 
<col align="left" valign="top">
185
 
<tbody>
186
 
<tr>
187
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
188
 
<td>A pixbuf.</td>
189
 
</tr>
190
 
<tr>
191
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
192
 
<td>Number of channels.</td>
193
 
</tr>
194
 
</tbody>
195
 
</table></div>
196
 
</div>
197
 
<hr>
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>
201
 
<p>
202
 
Queries whether a pixbuf has an alpha channel (opacity information).
203
 
</p>
204
 
<div class="variablelist"><table border="0">
205
 
<col align="left" valign="top">
206
 
<tbody>
207
 
<tr>
208
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
209
 
<td>A pixbuf.</td>
210
 
</tr>
211
 
<tr>
212
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
213
 
<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>
215
 
</tr>
216
 
</tbody>
217
 
</table></div>
218
 
</div>
219
 
<hr>
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>
223
 
<p>
224
 
Queries the number of bits per color sample in a pixbuf.
225
 
</p>
226
 
<div class="variablelist"><table border="0">
227
 
<col align="left" valign="top">
228
 
<tbody>
229
 
<tr>
230
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
231
 
<td>A pixbuf.</td>
232
 
</tr>
233
 
<tr>
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>
236
 
</tr>
237
 
</tbody>
238
 
</table></div>
239
 
</div>
240
 
<hr>
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>
244
 
<p>
245
 
Queries a pointer to the pixel data of a pixbuf.
246
 
</p>
247
 
<div class="variablelist"><table border="0">
248
 
<col align="left" valign="top">
249
 
<tbody>
250
 
<tr>
251
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
252
 
<td>A pixbuf.</td>
253
 
</tr>
254
 
<tr>
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
258
 
memory.</td>
259
 
</tr>
260
 
</tbody>
261
 
</table></div>
262
 
</div>
263
 
<hr>
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>
267
 
<p>
268
 
Queries the width of a pixbuf.
269
 
</p>
270
 
<div class="variablelist"><table border="0">
271
 
<col align="left" valign="top">
272
 
<tbody>
273
 
<tr>
274
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
275
 
<td>A pixbuf.</td>
276
 
</tr>
277
 
<tr>
278
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
279
 
<td>Width in pixels.</td>
280
 
</tr>
281
 
</tbody>
282
 
</table></div>
283
 
</div>
284
 
<hr>
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>
288
 
<p>
289
 
Queries the height of a pixbuf.
290
 
</p>
291
 
<div class="variablelist"><table border="0">
292
 
<col align="left" valign="top">
293
 
<tbody>
294
 
<tr>
295
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
296
 
<td>A pixbuf.</td>
297
 
</tr>
298
 
<tr>
299
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
300
 
<td>Height in pixels.</td>
301
 
</tr>
302
 
</tbody>
303
 
</table></div>
304
 
</div>
305
 
<hr>
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>
309
 
<p>
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.
312
 
</p>
313
 
<div class="variablelist"><table border="0">
314
 
<col align="left" valign="top">
315
 
<tbody>
316
 
<tr>
317
 
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
318
 
<td>A pixbuf.</td>
319
 
</tr>
320
 
<tr>
321
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
322
 
<td>Distance between row starts.</td>
323
 
</tr>
324
 
</tbody>
325
 
</table></div>
326
 
</div>
327
 
<hr>
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>
332
 
<p>
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>.
336
 
</p>
337
 
<p>
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).
344
 
</p>
345
 
<div class="variablelist"><table border="0">
346
 
<col align="left" valign="top">
347
 
<tbody>
348
 
<tr>
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>
351
 
</td>
352
 
</tr>
353
 
<tr>
354
 
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
355
 
<td>a nul-terminated string.</td>
356
 
</tr>
357
 
<tr>
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>
361
 
</tr>
362
 
</tbody>
363
 
</table></div>
364
 
</div>
365
 
</div>
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>
371
 
<p>
372
 
The number of bits per sample.
373
 
Currently only 8 bit per sample are supported.
374
 
</p>
375
 
<p>Allowed values: [1,16]</p>
376
 
<p>Default value: 8</p>
377
 
</div>
378
 
<hr>
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>
384
 
</div>
385
 
<hr>
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>
391
 
</div>
392
 
<hr>
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: &gt;= 1</p>
398
 
<p>Default value: 1</p>
399
 
</div>
400
 
<hr>
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>
404
 
<p>
405
 
The number of samples per pixel. 
406
 
Currently, only 3 or 4 samples per pixel are supported.
407
 
</p>
408
 
<p>Allowed values: &gt;= 0</p>
409
 
<p>Default value: 3</p>
410
 
</div>
411
 
<hr>
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>
416
 
</div>
417
 
<hr>
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>
421
 
<p>
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.
425
 
</p>
426
 
<p>Allowed values: &gt;= 1</p>
427
 
<p>Default value: 1</p>
428
 
</div>
429
 
<hr>
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: &gt;= 1</p>
435
 
<p>Default value: 1</p>
436
 
</div>
437
 
</div>
438
 
</div>
439
 
<div class="footer">
440
 
<hr>
441
 
          Generated by GTK-Doc V1.16.1</div>
442
 
</body>
443
 
</html>
 
 
b'\\ No newline at end of file'