~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/libgimp-gimppixbuf.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
Import upstream version 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppixbuf</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part�III.�GIMP User Interface Library"><link rel="prev" href="libgimp-gimpimagecombobox.html" title="gimpimagecombobox"><link rel="next" href="GimpProgressBar.html" title="GimpProgressBar"><meta name="generator" content="GTK-Doc V1.2 (XML mode)"><style type="text/css">
 
2
        .synopsis, .classsynopsis {
 
3
            background: #eeeeee;
 
4
            border: solid 1px #aaaaaa;
 
5
            padding: 0.5em;
 
6
        }
 
7
        .programlisting {
 
8
            background: #eeeeff;
 
9
            border: solid 1px #aaaaff;
 
10
            padding: 0.5em;
 
11
        }
 
12
        .variablelist {
 
13
            padding: 4px;
 
14
            margin-left: 3em;
 
15
        }
 
16
        .navigation {
 
17
            background: #ffeeee;
 
18
            border: solid 1px #ffaaaa;
 
19
            margin-top: 0.5em;
 
20
            margin-bottom: 0.5em;
 
21
        }
 
22
        .navigation a {
 
23
            color: #770000;
 
24
        }
 
25
        .navigation a:visited {
 
26
            color: #550000;
 
27
        }
 
28
        .navigation .title {
 
29
            font-size: 200%;
 
30
        }
 
31
      </style></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpimagecombobox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="GimpProgressBar.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppixbuf"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">gimppixbuf</span></h2><p>gimppixbuf &#8212; Get a thumbnail pixbuf for a drawable or image.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
 
32
 
 
33
 
 
34
 
 
35
enum        <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a>;
 
36
<a
 
37
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
38
>GdkPixbuf</a>*  <a href="libgimp-gimppixbuf.html#gimp-image-get-thumbnail">gimp_image_get_thumbnail</a>        (<a
 
39
href="../glib/glib-Basic-Types.html#gint32"
 
40
>gint32</a> image_ID,
 
41
                                             <a
 
42
href="../glib/glib-Basic-Types.html#gint"
 
43
>gint</a> width,
 
44
                                             <a
 
45
href="../glib/glib-Basic-Types.html#gint"
 
46
>gint</a> height,
 
47
                                             <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);
 
48
<a
 
49
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
50
>GdkPixbuf</a>*  <a href="libgimp-gimppixbuf.html#gimp-drawable-get-thumbnail">gimp_drawable_get_thumbnail</a>     (<a
 
51
href="../glib/glib-Basic-Types.html#gint32"
 
52
>gint32</a> drawable_ID,
 
53
                                             <a
 
54
href="../glib/glib-Basic-Types.html#gint"
 
55
>gint</a> width,
 
56
                                             <a
 
57
href="../glib/glib-Basic-Types.html#gint"
 
58
>gint</a> height,
 
59
                                             <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);
 
60
<a
 
61
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
62
>GdkPixbuf</a>*  <a href="libgimp-gimppixbuf.html#gimp-drawable-get-sub-thumbnail">gimp_drawable_get_sub_thumbnail</a> (<a
 
63
href="../glib/glib-Basic-Types.html#gint32"
 
64
>gint32</a> drawable_ID,
 
65
                                             <a
 
66
href="../glib/glib-Basic-Types.html#gint"
 
67
>gint</a> src_x,
 
68
                                             <a
 
69
href="../glib/glib-Basic-Types.html#gint"
 
70
>gint</a> src_y,
 
71
                                             <a
 
72
href="../glib/glib-Basic-Types.html#gint"
 
73
>gint</a> src_width,
 
74
                                             <a
 
75
href="../glib/glib-Basic-Types.html#gint"
 
76
>gint</a> src_height,
 
77
                                             <a
 
78
href="../glib/glib-Basic-Types.html#gint"
 
79
>gint</a> dest_width,
 
80
                                             <a
 
81
href="../glib/glib-Basic-Types.html#gint"
 
82
>gint</a> dest_height,
 
83
                                             <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);
 
84
</pre></div><div class="refsect1" lang="en"><a name="id2667951"></a><h2>Description</h2><p>
 
85
Get a thumbnail pixbuf for a drawable or image.
 
86
</p></div><div class="refsect1" lang="en"><a name="id2667962"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2667967"></a><h3><a name="GimpPixbufTransparency"></a>enum GimpPixbufTransparency</h3><a class="indexterm" name="id2667975"></a><pre class="programlisting">typedef enum
 
87
{
 
88
  GIMP_PIXBUF_KEEP_ALPHA,
 
89
  GIMP_PIXBUF_SMALL_CHECKS,
 
90
  GIMP_PIXBUF_LARGE_CHECKS
 
91
} GimpPixbufTransparency;
 
92
</pre><p>
 
93
 
 
94
</p></div><hr><div class="refsect2" lang="en"><a name="id2664732"></a><h3><a name="gimp-image-get-thumbnail"></a>gimp_image_get_thumbnail ()</h3><a class="indexterm" name="id2664739"></a><pre class="programlisting"><a
 
95
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
96
>GdkPixbuf</a>*  gimp_image_get_thumbnail        (<a
 
97
href="../glib/glib-Basic-Types.html#gint32"
 
98
>gint32</a> image_ID,
 
99
                                             <a
 
100
href="../glib/glib-Basic-Types.html#gint"
 
101
>gint</a> width,
 
102
                                             <a
 
103
href="../glib/glib-Basic-Types.html#gint"
 
104
>gint</a> height,
 
105
                                             <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);</pre><p>
 
106
Retrieves a thumbnail pixbuf for the image identified by <i class="parameter"><tt>image_ID</tt></i>.
 
107
The thumbnail will be not larger than the requested size.</p><p>
 
108
 
 
109
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i>�:</span></td><td> the image ID
 
110
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i>�:</span></td><td>    the requested thumbnail width  (&lt;= 512 pixels)
 
111
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i>�:</span></td><td>   the requested thumbnail height (&lt;= 512 pixels)
 
112
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha</tt></i>�:</span></td><td>    how to handle an alpha channel
 
113
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a new <a
 
114
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
115
><span class="type">GdkPixbuf</span></a>
 
116
 
 
117
</td></tr></tbody></table></div><p>Since  GIMP 2.2
 
118
</p></div><hr><div class="refsect2" lang="en"><a name="id2664852"></a><h3><a name="gimp-drawable-get-thumbnail"></a>gimp_drawable_get_thumbnail ()</h3><a class="indexterm" name="id2667405"></a><pre class="programlisting"><a
 
119
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
120
>GdkPixbuf</a>*  gimp_drawable_get_thumbnail     (<a
 
121
href="../glib/glib-Basic-Types.html#gint32"
 
122
>gint32</a> drawable_ID,
 
123
                                             <a
 
124
href="../glib/glib-Basic-Types.html#gint"
 
125
>gint</a> width,
 
126
                                             <a
 
127
href="../glib/glib-Basic-Types.html#gint"
 
128
>gint</a> height,
 
129
                                             <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);</pre><p>
 
130
Retrieves a thumbnail pixbuf for the drawable identified by
 
131
<i class="parameter"><tt>drawable_ID</tt></i>. The thumbnail will be not larger than the requested
 
132
size.</p><p>
 
133
 
 
134
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i>�:</span></td><td> the drawable ID
 
135
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i>�:</span></td><td>       the requested thumbnail width  (&lt;= 512 pixels)
 
136
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i>�:</span></td><td>      the requested thumbnail height (&lt;= 512 pixels)
 
137
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha</tt></i>�:</span></td><td>       how to handle an alpha channel
 
138
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a new <a
 
139
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
140
><span class="type">GdkPixbuf</span></a>
 
141
 
 
142
</td></tr></tbody></table></div><p>Since  GIMP 2.2
 
143
</p></div><hr><div class="refsect2" lang="en"><a name="id2667518"></a><h3><a name="gimp-drawable-get-sub-thumbnail"></a>gimp_drawable_get_sub_thumbnail ()</h3><a class="indexterm" name="id2667527"></a><pre class="programlisting"><a
 
144
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
145
>GdkPixbuf</a>*  gimp_drawable_get_sub_thumbnail (<a
 
146
href="../glib/glib-Basic-Types.html#gint32"
 
147
>gint32</a> drawable_ID,
 
148
                                             <a
 
149
href="../glib/glib-Basic-Types.html#gint"
 
150
>gint</a> src_x,
 
151
                                             <a
 
152
href="../glib/glib-Basic-Types.html#gint"
 
153
>gint</a> src_y,
 
154
                                             <a
 
155
href="../glib/glib-Basic-Types.html#gint"
 
156
>gint</a> src_width,
 
157
                                             <a
 
158
href="../glib/glib-Basic-Types.html#gint"
 
159
>gint</a> src_height,
 
160
                                             <a
 
161
href="../glib/glib-Basic-Types.html#gint"
 
162
>gint</a> dest_width,
 
163
                                             <a
 
164
href="../glib/glib-Basic-Types.html#gint"
 
165
>gint</a> dest_height,
 
166
                                             <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);</pre><p>
 
167
Retrieves a thumbnail pixbuf for the drawable identified by
 
168
<i class="parameter"><tt>drawable_ID</tt></i>. The thumbnail will be not larger than the requested
 
169
size.</p><p>
 
170
 
 
171
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i>�:</span></td><td> the drawable ID
 
172
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_x</tt></i>�:</span></td><td>       the x coordinate of the area
 
173
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_y</tt></i>�:</span></td><td>       the y coordinate of the area
 
174
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_width</tt></i>�:</span></td><td>   the width of the area
 
175
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_height</tt></i>�:</span></td><td>  the height of the area
 
176
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_width</tt></i>�:</span></td><td>  the requested thumbnail width  (&lt;= 512 pixels)
 
177
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_height</tt></i>�:</span></td><td> the requested thumbnail height (&lt;= 512 pixels)
 
178
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha</tt></i>�:</span></td><td>       how to handle an alpha channel
 
179
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> a new <a
 
180
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
 
181
><span class="type">GdkPixbuf</span></a>
 
182
 
 
183
</td></tr></tbody></table></div><p>Since  GIMP 2.2
 
184
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpimagecombobox.html"><b>&lt;&lt;�gimpimagecombobox</b></a></td><td align="right"><a accesskey="n" href="GimpProgressBar.html"><b>GimpProgressBar�&gt;&gt;</b></a></td></tr></table></body></html>