~ubuntu-branches/ubuntu/oneiric/gimp/oneiric

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2009-03-17 03:00:24 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20090317030024-gnp1dhd0hnt80f4h
Tags: 2.6.6-0ubuntu1
* New upstream release (LP: #344052)
* debian/patches/04_from_bugzilla_572403.patch:
  - Dropped, the fix is in the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="libgimp-image.html" title="Manupulating Images and their Properties">
9
9
<link rel="prev" href="libgimp-gimpcolor.html" title="gimpcolor">
10
10
<link rel="next" href="libgimp-gimpdisplay.html" title="gimpdisplay">
11
 
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
14
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
32
32
<th width="100%" align="center">GIMP Library Reference Manual</th>
33
33
<td><a accesskey="n" href="libgimp-gimpdisplay.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
34
34
</tr>
35
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimp-gimpconvert.synopsis" class="shortcut">Top</a>
36
 
                   | 
37
 
                  <a href="#libgimp-gimpconvert.description" class="shortcut">Description</a></nobr></td></tr>
 
35
<tr><td colspan="5" class="shortcuts">
 
36
<a href="#libgimp-gimpconvert.synopsis" class="shortcut">Top</a>
 
37
                 | 
 
38
                <a href="#libgimp-gimpconvert.description" class="shortcut">Description</a>
 
39
</td></tr>
38
40
</table>
39
41
<div class="refentry" lang="en">
40
42
<a name="libgimp-gimpconvert"></a><div class="titlepage"></div>
49
51
<a name="libgimp-gimpconvert.synopsis"></a><h2>Synopsis</h2>
50
52
<pre class="synopsis">
51
53
<a
52
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
53
 
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-rgb" title="gimp_image_convert_rgb ()">gimp_image_convert_rgb</a>              (gint32 image_ID);
54
 
<a
55
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
56
 
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-grayscale" title="gimp_image_convert_grayscale ()">gimp_image_convert_grayscale</a>        (gint32 image_ID);
57
 
<a
58
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
59
 
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-indexed" title="gimp_image_convert_indexed ()">gimp_image_convert_indexed</a>          (gint32 image_ID,
 
54
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
 
55
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-rgb" title="gimp_image_convert_rgb ()">gimp_image_convert_rgb</a>              (<a
 
56
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
 
57
>gint32</a> image_ID);
 
58
<a
 
59
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
 
60
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-grayscale" title="gimp_image_convert_grayscale ()">gimp_image_convert_grayscale</a>        (<a
 
61
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
 
62
>gint32</a> image_ID);
 
63
<a
 
64
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
 
65
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-indexed" title="gimp_image_convert_indexed ()">gimp_image_convert_indexed</a>          (<a
 
66
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
 
67
>gint32</a> image_ID,
60
68
                                                         <a class="link" href="libgimp-gimpenums.html#GimpConvertDitherType" title="enum GimpConvertDitherType">GimpConvertDitherType</a> dither_type,
61
69
                                                         <a class="link" href="libgimp-gimpenums.html#GimpConvertPaletteType" title="enum GimpConvertPaletteType">GimpConvertPaletteType</a> palette_type,
62
70
                                                         <a
63
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
71
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
64
72
>gint</a> num_cols,
65
73
                                                         <a
66
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
74
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
67
75
>gboolean</a> alpha_dither,
68
76
                                                         <a
69
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
77
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
70
78
>gboolean</a> remove_unused,
71
79
                                                         const <a
72
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
 
80
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
73
81
>gchar</a> *palette);
74
82
<a
75
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
83
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
76
84
>gboolean</a>            <a class="link" href="libgimp-gimpconvert.html#gimp-image-convert-set-dither-matrix" title="gimp_image_convert_set_dither_matrix ()">gimp_image_convert_set_dither_matrix</a>
77
85
                                                        (<a
78
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
86
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
79
87
>gint</a> width,
80
88
                                                         <a
81
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
89
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
82
90
>gint</a> height,
83
91
                                                         <a
84
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
92
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
85
93
>gint</a> matrix_length,
86
 
                                                         const guint8 *matrix);
 
94
                                                         const <a
 
95
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
 
96
>guint8</a> *matrix);
87
97
</pre>
88
98
</div>
89
99
<div class="refsect1" lang="en">
90
100
<a name="libgimp-gimpconvert.description"></a><h2>Description</h2>
91
101
<p>
92
102
Conversions between RGB, indexed, and grayscale modes.
93
 
 
94
103
</p>
95
104
</div>
96
105
<div class="refsect1" lang="en">
98
107
<div class="refsect2" lang="en">
99
108
<a name="gimp-image-convert-rgb"></a><h3>gimp_image_convert_rgb ()</h3>
100
109
<pre class="programlisting"><a
101
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
102
 
>gboolean</a>            gimp_image_convert_rgb              (gint32 image_ID);</pre>
 
110
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
 
111
>gboolean</a>            gimp_image_convert_rgb              (<a
 
112
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
 
113
>gint32</a> image_ID);</pre>
103
114
<p>
104
115
Convert specified image to RGB color
105
116
</p>
109
120
image content is lost in this process aside from the colormap for an
110
121
indexed image.</p>
111
122
<p>
112
 
 
113
123
</p>
114
124
<div class="variablelist"><table border="0">
115
125
<col align="left" valign="top">
131
141
<div class="refsect2" lang="en">
132
142
<a name="gimp-image-convert-grayscale"></a><h3>gimp_image_convert_grayscale ()</h3>
133
143
<pre class="programlisting"><a
134
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
135
 
>gboolean</a>            gimp_image_convert_grayscale        (gint32 image_ID);</pre>
 
144
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
 
145
>gboolean</a>            gimp_image_convert_grayscale        (<a
 
146
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
 
147
>gint32</a> image_ID);</pre>
136
148
<p>
137
149
Convert specified image to grayscale (256 intensity levels)
138
150
</p>
141
153
per pixel (256 intensity levels). This process requires an image in
142
154
RGB or Indexed color mode.</p>
143
155
<p>
144
 
 
145
156
</p>
146
157
<div class="variablelist"><table border="0">
147
158
<col align="left" valign="top">
163
174
<div class="refsect2" lang="en">
164
175
<a name="gimp-image-convert-indexed"></a><h3>gimp_image_convert_indexed ()</h3>
165
176
<pre class="programlisting"><a
166
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
167
 
>gboolean</a>            gimp_image_convert_indexed          (gint32 image_ID,
 
177
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
 
178
>gboolean</a>            gimp_image_convert_indexed          (<a
 
179
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
 
180
>gint32</a> image_ID,
168
181
                                                         <a class="link" href="libgimp-gimpenums.html#GimpConvertDitherType" title="enum GimpConvertDitherType">GimpConvertDitherType</a> dither_type,
169
182
                                                         <a class="link" href="libgimp-gimpenums.html#GimpConvertPaletteType" title="enum GimpConvertPaletteType">GimpConvertPaletteType</a> palette_type,
170
183
                                                         <a
171
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
184
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
172
185
>gint</a> num_cols,
173
186
                                                         <a
174
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
187
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
175
188
>gboolean</a> alpha_dither,
176
189
                                                         <a
177
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
190
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
178
191
>gboolean</a> remove_unused,
179
192
                                                         const <a
180
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
 
193
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
181
194
>gchar</a> *palette);</pre>
182
195
<p>
183
196
Convert specified image to and Indexed image
197
210
diffusion with reduced bleeding, '3' means dithering based on pixel
198
211
location ('Fixed' dithering).</p>
199
212
<p>
200
 
 
201
213
</p>
202
214
<div class="variablelist"><table border="0">
203
215
<col align="left" valign="top">
249
261
<div class="refsect2" lang="en">
250
262
<a name="gimp-image-convert-set-dither-matrix"></a><h3>gimp_image_convert_set_dither_matrix ()</h3>
251
263
<pre class="programlisting"><a
252
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
 
264
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
253
265
>gboolean</a>            gimp_image_convert_set_dither_matrix
254
266
                                                        (<a
255
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
267
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
256
268
>gint</a> width,
257
269
                                                         <a
258
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
270
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
259
271
>gint</a> height,
260
272
                                                         <a
261
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
273
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
262
274
>gint</a> matrix_length,
263
 
                                                         const guint8 *matrix);</pre>
 
275
                                                         const <a
 
276
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
 
277
>guint8</a> *matrix);</pre>
264
278
<p>
265
279
Set dither matrix for conversion to indexed
266
280
</p>
268
282
This procedure sets the dither matrix used when converting images to
269
283
INDEXED mode with positional dithering.</p>
270
284
<p>
271
 
 
272
285
</p>
273
286
<div class="variablelist"><table border="0">
274
287
<col align="left" valign="top">
301
314
</tr>
302
315
</tbody>
303
316
</table></div>
304
 
<p class="since">Since  GIMP 2.4
305
 
</p>
 
317
<p class="since">Since GIMP 2.4</p>
306
318
</div>
307
319
</div>
308
320
</div>
309
321
<div class="footer">
310
322
<hr>
311
 
          Generated by GTK-Doc V1.10</div>
 
323
          Generated by GTK-Doc V1.11</div>
312
324
</body>
313
325
</html>