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>
35
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimp-gimpconvert.synopsis" class="shortcut">Top</a>
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>
38
<a href="#libgimp-gimpconvert.description" class="shortcut">Description</a>
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">
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);
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);
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);
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);
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"
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,
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,
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,
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,
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);
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>
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"
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"
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);
95
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
89
99
<div class="refsect1" lang="en">
90
100
<a name="libgimp-gimpconvert.description"></a><h2>Description</h2>
92
102
Conversions between RGB, indexed, and grayscale modes.
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>
104
115
Convert specified image to RGB color
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>
137
149
Convert specified image to grayscale (256 intensity levels)
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,
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,
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,
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,
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>
183
196
Convert specified image to and Indexed image
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
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"
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,
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>
276
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"
277
>guint8</a> *matrix);</pre>
265
279
Set dither matrix for conversion to indexed