~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimpcolor/html/libgimpcolor-GimpRGB.html

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
Import upstream version 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpRGB</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
<link rel="start" href="index.html" title="GIMP Color Library Reference Manual">
8
 
<link rel="up" href="libgimpcolor.html" title="Part&#160;I.&#160;GIMP Color Library">
9
 
<link rel="prev" href="libgimpcolor.html" title="Part&#160;I.&#160;GIMP Color Library">
 
8
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
 
9
<link rel="prev" href="libgimpcolor.html" title="Part I. GIMP Color Library">
10
10
<link rel="next" href="libgimpcolor-GimpHSV.html" title="GimpHSV">
11
 
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="libgimpcolor.html" title="Part&#160;I.&#160;GIMP Color Library">
 
13
<link rel="part" href="libgimpcolor.html" title="Part I. GIMP Color Library">
14
14
<link rel="index" href="libgimpcolor-index.html" title="Index">
15
15
<link rel="index" href="libgimpcolor-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
16
16
<link rel="index" href="libgimpcolor-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
25
25
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
26
26
<td><a accesskey="n" href="libgimpcolor-GimpHSV.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
27
27
</tr>
28
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2601320" class="shortcut">Top</a>
29
 
                  &#160;|&#160;
30
 
                  <a href="#id2619886" class="shortcut">Description</a></nobr></td></tr>
 
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpcolor-GimpRGB.synopsis" class="shortcut">Top</a>
 
29
                   | 
 
30
                  <a href="#libgimpcolor-GimpRGB.description" class="shortcut">Description</a></nobr></td></tr>
31
31
</table>
32
32
<div class="refentry" lang="en">
33
33
<a name="libgimpcolor-GimpRGB"></a><div class="titlepage"></div>
34
34
<div class="refnamediv"><table width="100%"><tr>
35
35
<td valign="top">
36
 
<h2>
37
 
<a name="id2601320"></a><span class="refentrytitle">GimpRGB</span>
38
 
</h2>
39
 
<p>GimpRGB &#8212; Definitions and Functions relating to RGB colors.</p>
 
36
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpRGB.top_of_page"></a>GimpRGB</span></h2>
 
37
<p>GimpRGB — Definitions and Functions relating to RGB colors.</p>
40
38
</td>
41
39
<td valign="top" align="right"></td>
42
40
</tr></table></div>
43
41
<div class="refsynopsisdiv">
44
 
<h2>Synopsis</h2>
 
42
<a name="libgimpcolor-GimpRGB.synopsis"></a><h2>Synopsis</h2>
45
43
<pre class="synopsis">
46
 
 
47
 
 
48
 
 
49
 
                    <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a>;
50
 
enum                <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode">GimpRGBCompositeMode</a>;
51
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set">gimp_rgb_set</a>                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
52
 
                                                         <a
53
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
54
 
>gdouble</a> red,
55
 
                                                         <a
56
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
57
 
>gdouble</a> green,
58
 
                                                         <a
59
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
60
 
>gdouble</a> blue);
61
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-alpha">gimp_rgb_set_alpha</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
62
 
                                                         <a
63
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
64
 
>gdouble</a> alpha);
65
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-uchar">gimp_rgb_set_uchar</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
66
 
                                                         <a
67
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
68
 
>guchar</a> red,
69
 
                                                         <a
70
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
71
 
>guchar</a> green,
72
 
                                                         <a
73
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
74
 
>guchar</a> blue);
75
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-get-uchar">gimp_rgb_get_uchar</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
76
 
                                                         <a
77
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
78
 
>guchar</a> *red,
79
 
                                                         <a
80
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
81
 
>guchar</a> *green,
82
 
                                                         <a
83
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
84
 
>guchar</a> *blue);
85
 
<a
86
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
87
 
>gboolean</a>            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name">gimp_rgb_parse_name</a>                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
88
 
                                                         const <a
89
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
90
 
>gchar</a> *name,
91
 
                                                         <a
92
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
93
 
>gint</a> len);
94
 
<a
95
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
96
 
>gboolean</a>            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex">gimp_rgb_parse_hex</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
97
 
                                                         const <a
98
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
99
 
>gchar</a> *hex,
100
 
                                                         <a
101
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
102
 
>gint</a> len);
103
 
<a
104
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
105
 
>gboolean</a>            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css">gimp_rgb_parse_css</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
106
 
                                                         const <a
107
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
108
 
>gchar</a> *css,
109
 
                                                         <a
110
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
111
 
>gint</a> len);
112
 
<a
113
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
114
 
>gint</a>                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-list-names">gimp_rgb_list_names</a>                 (const <a
115
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
116
 
>gchar</a> ***names,
117
 
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> **colors);
118
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-add">gimp_rgb_add</a>                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
119
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb2);
120
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-subtract">gimp_rgb_subtract</a>                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
121
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb2);
122
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-multiply">gimp_rgb_multiply</a>                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
123
 
                                                         <a
124
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
125
 
>gdouble</a> factor);
126
 
<a
127
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
128
 
>gdouble</a>             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-distance">gimp_rgb_distance</a>                   (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
129
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb2);
130
 
<a
131
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
132
 
>gdouble</a>             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-max">gimp_rgb_max</a>                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
133
 
<a
134
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
135
 
>gdouble</a>             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-min">gimp_rgb_min</a>                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
136
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-clamp">gimp_rgb_clamp</a>                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
137
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-gamma">gimp_rgb_gamma</a>                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
138
 
                                                         <a
139
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
140
 
>gdouble</a> gamma);
141
 
<a
142
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
143
 
>gdouble</a>             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance">gimp_rgb_luminance</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
144
 
<a
145
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
146
 
>guchar</a>              <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar">gimp_rgb_luminance_uchar</a>            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
147
 
<a
148
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
149
 
>gdouble</a>             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity">gimp_rgb_intensity</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
150
 
<a
151
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
152
 
>guchar</a>              <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity-uchar">gimp_rgb_intensity_uchar</a>            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
153
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-composite">gimp_rgb_composite</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *color1,
154
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *color2,
155
 
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode">GimpRGBCompositeMode</a> mode);
156
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set">gimp_rgba_set</a>                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
157
 
                                                         <a
158
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
159
 
>gdouble</a> red,
160
 
                                                         <a
161
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
162
 
>gdouble</a> green,
163
 
                                                         <a
164
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
165
 
>gdouble</a> blue,
166
 
                                                         <a
167
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
168
 
>gdouble</a> alpha);
169
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set-uchar">gimp_rgba_set_uchar</a>                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
170
 
                                                         <a
171
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
172
 
>guchar</a> red,
173
 
                                                         <a
174
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
175
 
>guchar</a> green,
176
 
                                                         <a
177
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
178
 
>guchar</a> blue,
179
 
                                                         <a
180
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
181
 
>guchar</a> alpha);
182
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-get-uchar">gimp_rgba_get_uchar</a>                 (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
183
 
                                                         <a
184
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
185
 
>guchar</a> *red,
186
 
                                                         <a
187
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
188
 
>guchar</a> *green,
189
 
                                                         <a
190
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
191
 
>guchar</a> *blue,
192
 
                                                         <a
193
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
194
 
>guchar</a> *alpha);
195
 
<a
196
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
197
 
>gboolean</a>            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-parse-css">gimp_rgba_parse_css</a>                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
198
 
                                                         const <a
199
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
200
 
>gchar</a> *css,
201
 
                                                         <a
202
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
203
 
>gint</a> len);
204
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-add">gimp_rgba_add</a>                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba1,
205
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba2);
206
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-subtract">gimp_rgba_subtract</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba1,
207
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba2);
208
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-multiply">gimp_rgba_multiply</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
209
 
                                                         <a
210
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
211
 
>gdouble</a> factor);
212
 
<a
213
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
214
 
>gdouble</a>             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-distance">gimp_rgba_distance</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba1,
215
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba2);
216
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE:CAPS">GIMP_RGB_LUMINANCE</a>                  (r,g,b)
217
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-RED:CAPS">GIMP_RGB_LUMINANCE_RED</a>
218
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-GREEN:CAPS">GIMP_RGB_LUMINANCE_GREEN</a>
219
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-BLUE:CAPS">GIMP_RGB_LUMINANCE_BLUE</a>
220
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY:CAPS">GIMP_RGB_INTENSITY</a>                  (r,g,b)
221
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-RED:CAPS">GIMP_RGB_INTENSITY_RED</a>
222
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-GREEN:CAPS">GIMP_RGB_INTENSITY_GREEN</a>
223
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-BLUE:CAPS">GIMP_RGB_INTENSITY_BLUE</a>
224
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS">GIMP_TYPE_RGB</a>
225
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-PARAM-RGB:CAPS">GIMP_TYPE_PARAM_RGB</a>
226
 
<a
227
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
228
 
>GParamSpec</a>*         <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb">gimp_param_spec_rgb</a>                 (const <a
229
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
230
 
>gchar</a> *name,
231
 
                                                         const <a
232
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
233
 
>gchar</a> *nick,
234
 
                                                         const <a
235
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
236
 
>gchar</a> *blurb,
237
 
                                                         <a
238
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
239
 
>gboolean</a> has_alpha,
240
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *default_value,
241
 
                                                         <a
242
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
243
 
>GParamFlags</a> flags);
244
 
<a
245
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
246
 
>gboolean</a>            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb-has-alpha">gimp_param_spec_rgb_has_alpha</a>       (<a
247
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
248
 
>GParamSpec</a> *pspec);
249
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-VALUE-HOLDS-RGB:CAPS">GIMP_VALUE_HOLDS_RGB</a>                (value)
250
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb">gimp_value_get_rgb</a>                  (const <a
251
 
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
252
 
>GValue</a> *value,
253
 
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
254
 
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-set-rgb">gimp_value_set_rgb</a>                  (<a
255
 
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
256
 
>GValue</a> *value,
257
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);
258
 
 
 
44
                    <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a>;
 
45
enum                <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a>;
 
46
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set" title="gimp_rgb_set ()">gimp_rgb_set</a>                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
47
                                                         gdouble red,
 
48
                                                         gdouble green,
 
49
                                                         gdouble blue);
 
50
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-alpha" title="gimp_rgb_set_alpha ()">gimp_rgb_set_alpha</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
51
                                                         gdouble alpha);
 
52
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-uchar" title="gimp_rgb_set_uchar ()">gimp_rgb_set_uchar</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
53
                                                         guchar red,
 
54
                                                         guchar green,
 
55
                                                         guchar blue);
 
56
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-get-uchar" title="gimp_rgb_get_uchar ()">gimp_rgb_get_uchar</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
57
                                                         guchar *red,
 
58
                                                         guchar *green,
 
59
                                                         guchar *blue);
 
60
gboolean            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()">gimp_rgb_parse_name</a>                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
61
                                                         const gchar *name,
 
62
                                                         gint len);
 
63
gboolean            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex" title="gimp_rgb_parse_hex ()">gimp_rgb_parse_hex</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
64
                                                         const gchar *hex,
 
65
                                                         gint len);
 
66
gboolean            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()">gimp_rgb_parse_css</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
67
                                                         const gchar *css,
 
68
                                                         gint len);
 
69
gint                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-list-names" title="gimp_rgb_list_names ()">gimp_rgb_list_names</a>                 (const gchar ***names,
 
70
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> **colors);
 
71
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-add" title="gimp_rgb_add ()">gimp_rgb_add</a>                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
72
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);
 
73
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-subtract" title="gimp_rgb_subtract ()">gimp_rgb_subtract</a>                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
74
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);
 
75
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-multiply" title="gimp_rgb_multiply ()">gimp_rgb_multiply</a>                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
76
                                                         gdouble factor);
 
77
gdouble             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-distance" title="gimp_rgb_distance ()">gimp_rgb_distance</a>                   (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
78
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);
 
79
gdouble             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-max" title="gimp_rgb_max ()">gimp_rgb_max</a>                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
80
gdouble             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-min" title="gimp_rgb_min ()">gimp_rgb_min</a>                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
81
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-clamp" title="gimp_rgb_clamp ()">gimp_rgb_clamp</a>                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
82
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-gamma" title="gimp_rgb_gamma ()">gimp_rgb_gamma</a>                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
83
                                                         gdouble gamma);
 
84
gdouble             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance" title="gimp_rgb_luminance ()">gimp_rgb_luminance</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
85
guchar              <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar" title="gimp_rgb_luminance_uchar ()">gimp_rgb_luminance_uchar</a>            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
86
gdouble             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity" title="gimp_rgb_intensity ()">gimp_rgb_intensity</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
87
guchar              <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity-uchar" title="gimp_rgb_intensity_uchar ()">gimp_rgb_intensity_uchar</a>            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
88
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-composite" title="gimp_rgb_composite ()">gimp_rgb_composite</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color1,
 
89
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color2,
 
90
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a> mode);
 
91
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set" title="gimp_rgba_set ()">gimp_rgba_set</a>                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
92
                                                         gdouble red,
 
93
                                                         gdouble green,
 
94
                                                         gdouble blue,
 
95
                                                         gdouble alpha);
 
96
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set-uchar" title="gimp_rgba_set_uchar ()">gimp_rgba_set_uchar</a>                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
97
                                                         guchar red,
 
98
                                                         guchar green,
 
99
                                                         guchar blue,
 
100
                                                         guchar alpha);
 
101
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-get-uchar" title="gimp_rgba_get_uchar ()">gimp_rgba_get_uchar</a>                 (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
102
                                                         guchar *red,
 
103
                                                         guchar *green,
 
104
                                                         guchar *blue,
 
105
                                                         guchar *alpha);
 
106
gboolean            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-parse-css" title="gimp_rgba_parse_css ()">gimp_rgba_parse_css</a>                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
107
                                                         const gchar *css,
 
108
                                                         gint len);
 
109
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-add" title="gimp_rgba_add ()">gimp_rgba_add</a>                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
 
110
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
 
111
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-subtract" title="gimp_rgba_subtract ()">gimp_rgba_subtract</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
 
112
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
 
113
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-multiply" title="gimp_rgba_multiply ()">gimp_rgba_multiply</a>                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
114
                                                         gdouble factor);
 
115
gdouble             <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-distance" title="gimp_rgba_distance ()">gimp_rgba_distance</a>                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
 
116
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
 
117
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE:CAPS" title="GIMP_RGB_LUMINANCE()">GIMP_RGB_LUMINANCE</a>                  (r,g,b)
 
118
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-RED:CAPS" title="GIMP_RGB_LUMINANCE_RED">GIMP_RGB_LUMINANCE_RED</a>
 
119
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-GREEN:CAPS" title="GIMP_RGB_LUMINANCE_GREEN">GIMP_RGB_LUMINANCE_GREEN</a>
 
120
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-BLUE:CAPS" title="GIMP_RGB_LUMINANCE_BLUE">GIMP_RGB_LUMINANCE_BLUE</a>
 
121
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY:CAPS" title="GIMP_RGB_INTENSITY()">GIMP_RGB_INTENSITY</a>                  (r,g,b)
 
122
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-RED:CAPS" title="GIMP_RGB_INTENSITY_RED">GIMP_RGB_INTENSITY_RED</a>
 
123
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-GREEN:CAPS" title="GIMP_RGB_INTENSITY_GREEN">GIMP_RGB_INTENSITY_GREEN</a>
 
124
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-BLUE:CAPS" title="GIMP_RGB_INTENSITY_BLUE">GIMP_RGB_INTENSITY_BLUE</a>
 
125
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS" title="GIMP_TYPE_RGB">GIMP_TYPE_RGB</a>
 
126
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-PARAM-RGB:CAPS" title="GIMP_TYPE_PARAM_RGB">GIMP_TYPE_PARAM_RGB</a>
 
127
GParamSpec*         <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb" title="gimp_param_spec_rgb ()">gimp_param_spec_rgb</a>                 (const gchar *name,
 
128
                                                         const gchar *nick,
 
129
                                                         const gchar *blurb,
 
130
                                                         gboolean has_alpha,
 
131
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *default_value,
 
132
                                                         GParamFlags flags);
 
133
gboolean            <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb-has-alpha" title="gimp_param_spec_rgb_has_alpha ()">gimp_param_spec_rgb_has_alpha</a>       (GParamSpec *pspec);
 
134
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-VALUE-HOLDS-RGB:CAPS" title="GIMP_VALUE_HOLDS_RGB()">GIMP_VALUE_HOLDS_RGB</a>                (value)
 
135
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb" title="gimp_value_get_rgb ()">gimp_value_get_rgb</a>                  (const GValue *value,
 
136
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
 
137
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-set-rgb" title="gimp_value_set_rgb ()">gimp_value_set_rgb</a>                  (GValue *value,
 
138
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
259
139
</pre>
260
140
</div>
261
141
<div class="refsect1" lang="en">
262
 
<a name="id2619886"></a><h2>Description</h2>
 
142
<a name="libgimpcolor-GimpRGB.description"></a><h2>Description</h2>
263
143
<p>
264
144
Definitions and Functions relating to RGB colors.
265
145
</p>
266
146
</div>
267
147
<div class="refsect1" lang="en">
268
 
<a name="id2619900"></a><h2>Details</h2>
 
148
<a name="libgimpcolor-GimpRGB.details"></a><h2>Details</h2>
269
149
<div class="refsect2" lang="en">
270
 
<a name="id2619909"></a><h3>
271
 
<a name="GimpRGB"></a>GimpRGB</h3>
272
 
<a class="indexterm" name="id2619920"></a><pre class="programlisting">typedef struct {
 
150
<a name="GimpRGB"></a><h3>GimpRGB</h3>
 
151
<pre class="programlisting">typedef struct {
273
152
  gdouble r, g, b, a;
274
153
} GimpRGB;
275
154
</pre>
279
158
</div>
280
159
<hr>
281
160
<div class="refsect2" lang="en">
282
 
<a name="id2619935"></a><h3>
283
 
<a name="GimpRGBCompositeMode"></a>enum GimpRGBCompositeMode</h3>
284
 
<a class="indexterm" name="id2619946"></a><pre class="programlisting">typedef enum
 
161
<a name="GimpRGBCompositeMode"></a><h3>enum GimpRGBCompositeMode</h3>
 
162
<pre class="programlisting">typedef enum
285
163
{
286
164
  GIMP_RGB_COMPOSITE_NONE = 0,
287
165
  GIMP_RGB_COMPOSITE_NORMAL,
294
172
</div>
295
173
<hr>
296
174
<div class="refsect2" lang="en">
297
 
<a name="id2619964"></a><h3>
298
 
<a name="gimp-rgb-set"></a>gimp_rgb_set ()</h3>
299
 
<a class="indexterm" name="id2619976"></a><pre class="programlisting">void                gimp_rgb_set                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
300
 
                                                         <a
301
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
302
 
>gdouble</a> red,
303
 
                                                         <a
304
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
305
 
>gdouble</a> green,
306
 
                                                         <a
307
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
308
 
>gdouble</a> blue);</pre>
 
175
<a name="gimp-rgb-set"></a><h3>gimp_rgb_set ()</h3>
 
176
<pre class="programlisting">void                gimp_rgb_set                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
177
                                                         gdouble red,
 
178
                                                         gdouble green,
 
179
                                                         gdouble blue);</pre>
309
180
<p>
310
181
Sets the red, green and blue components of <em class="parameter"><code>rgb</code></em> and leaves the
311
182
alpha component unchanged. The color values should be between 0.0
318
189
<col align="left" valign="top">
319
190
<tbody>
320
191
<tr>
321
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
322
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct
323
 
</td>
324
 
</tr>
325
 
<tr>
326
 
<td><p><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></p></td>
327
 
<td>
328
 
</td>
329
 
</tr>
330
 
<tr>
331
 
<td><p><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></p></td>
332
 
<td>
333
 
</td>
334
 
</tr>
335
 
<tr>
336
 
<td><p><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></p></td>
 
192
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
193
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct
 
194
</td>
 
195
</tr>
 
196
<tr>
 
197
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
 
198
<td>
 
199
</td>
 
200
</tr>
 
201
<tr>
 
202
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
 
203
<td>
 
204
</td>
 
205
</tr>
 
206
<tr>
 
207
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
337
208
<td>
338
209
</td>
339
210
</tr>
342
213
</div>
343
214
<hr>
344
215
<div class="refsect2" lang="en">
345
 
<a name="id2620088"></a><h3>
346
 
<a name="gimp-rgb-set-alpha"></a>gimp_rgb_set_alpha ()</h3>
347
 
<a class="indexterm" name="id2620098"></a><pre class="programlisting">void                gimp_rgb_set_alpha                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
348
 
                                                         <a
349
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
350
 
>gdouble</a> alpha);</pre>
 
216
<a name="gimp-rgb-set-alpha"></a><h3>gimp_rgb_set_alpha ()</h3>
 
217
<pre class="programlisting">void                gimp_rgb_set_alpha                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
218
                                                         gdouble alpha);</pre>
351
219
<p>
352
220
Sets the alpha component of <em class="parameter"><code>rgb</code></em> and leaves the RGB components unchanged.</p>
353
221
<p>
357
225
<col align="left" valign="top">
358
226
<tbody>
359
227
<tr>
360
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
361
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct
 
228
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
229
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct
362
230
</td>
363
231
</tr>
364
232
<tr>
365
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
233
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
366
234
<td>
367
235
</td>
368
236
</tr>
371
239
</div>
372
240
<hr>
373
241
<div class="refsect2" lang="en">
374
 
<a name="id2620172"></a><h3>
375
 
<a name="gimp-rgb-set-uchar"></a>gimp_rgb_set_uchar ()</h3>
376
 
<a class="indexterm" name="id2620183"></a><pre class="programlisting">void                gimp_rgb_set_uchar                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
377
 
                                                         <a
378
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
379
 
>guchar</a> red,
380
 
                                                         <a
381
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
382
 
>guchar</a> green,
383
 
                                                         <a
384
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
385
 
>guchar</a> blue);</pre>
 
242
<a name="gimp-rgb-set-uchar"></a><h3>gimp_rgb_set_uchar ()</h3>
 
243
<pre class="programlisting">void                gimp_rgb_set_uchar                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
244
                                                         guchar red,
 
245
                                                         guchar green,
 
246
                                                         guchar blue);</pre>
386
247
<p>
387
248
Sets the red, green and blue components of <em class="parameter"><code>rgb</code></em> from 8bit values
388
249
(0 to 255) and leaves the alpha component unchanged.</p>
393
254
<col align="left" valign="top">
394
255
<tbody>
395
256
<tr>
396
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
397
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct
398
 
</td>
399
 
</tr>
400
 
<tr>
401
 
<td><p><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></p></td>
402
 
<td>
403
 
</td>
404
 
</tr>
405
 
<tr>
406
 
<td><p><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></p></td>
407
 
<td>
408
 
</td>
409
 
</tr>
410
 
<tr>
411
 
<td><p><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></p></td>
 
257
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
258
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct
 
259
</td>
 
260
</tr>
 
261
<tr>
 
262
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
 
263
<td>
 
264
</td>
 
265
</tr>
 
266
<tr>
 
267
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
 
268
<td>
 
269
</td>
 
270
</tr>
 
271
<tr>
 
272
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
412
273
<td>
413
274
</td>
414
275
</tr>
417
278
</div>
418
279
<hr>
419
280
<div class="refsect2" lang="en">
420
 
<a name="id2620298"></a><h3>
421
 
<a name="gimp-rgb-get-uchar"></a>gimp_rgb_get_uchar ()</h3>
422
 
<a class="indexterm" name="id2620308"></a><pre class="programlisting">void                gimp_rgb_get_uchar                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
423
 
                                                         <a
424
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
425
 
>guchar</a> *red,
426
 
                                                         <a
427
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
428
 
>guchar</a> *green,
429
 
                                                         <a
430
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
431
 
>guchar</a> *blue);</pre>
 
281
<a name="gimp-rgb-get-uchar"></a><h3>gimp_rgb_get_uchar ()</h3>
 
282
<pre class="programlisting">void                gimp_rgb_get_uchar                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
283
                                                         guchar *red,
 
284
                                                         guchar *green,
 
285
                                                         guchar *blue);</pre>
432
286
<p>
433
287
 
434
288
</p>
436
290
<col align="left" valign="top">
437
291
<tbody>
438
292
<tr>
439
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
440
 
<td>
441
 
</td>
442
 
</tr>
443
 
<tr>
444
 
<td><p><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></p></td>
445
 
<td>
446
 
</td>
447
 
</tr>
448
 
<tr>
449
 
<td><p><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></p></td>
450
 
<td>
451
 
</td>
452
 
</tr>
453
 
<tr>
454
 
<td><p><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></p></td>
 
293
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
294
<td>
 
295
</td>
 
296
</tr>
 
297
<tr>
 
298
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
 
299
<td>
 
300
</td>
 
301
</tr>
 
302
<tr>
 
303
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
 
304
<td>
 
305
</td>
 
306
</tr>
 
307
<tr>
 
308
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
455
309
<td>
456
310
 
457
311
 
462
316
</div>
463
317
<hr>
464
318
<div class="refsect2" lang="en">
465
 
<a name="id2620406"></a><h3>
466
 
<a name="gimp-rgb-parse-name"></a>gimp_rgb_parse_name ()</h3>
467
 
<a class="indexterm" name="id2620419"></a><pre class="programlisting"><a
468
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
469
 
>gboolean</a>            gimp_rgb_parse_name                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
470
 
                                                         const <a
471
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
472
 
>gchar</a> *name,
473
 
                                                         <a
474
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
475
 
>gint</a> len);</pre>
 
319
<a name="gimp-rgb-parse-name"></a><h3>gimp_rgb_parse_name ()</h3>
 
320
<pre class="programlisting">gboolean            gimp_rgb_parse_name                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
321
                                                         const gchar *name,
 
322
                                                         gint len);</pre>
476
323
<p>
477
324
Attempts to parse a color name. This function accepts <a class="ulink" href="http://www.w3.org/TR/SVG/types.html" target="_top">SVG 1.0 color keywords</a>.
478
325
</p>
485
332
<col align="left" valign="top">
486
333
<tbody>
487
334
<tr>
488
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
489
 
<td>  a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
 
335
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
336
<td>  a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
490
337
</td>
491
338
</tr>
492
339
<tr>
493
 
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
 
340
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
494
341
<td> a color name (in UTF-8 encoding)
495
342
</td>
496
343
</tr>
497
344
<tr>
498
 
<td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td>
 
345
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
499
346
<td>  the length of <em class="parameter"><code>name</code></em>, in bytes. or -1 if <em class="parameter"><code>name</code></em> is nul-terminated
500
347
</td>
501
348
</tr>
502
349
<tr>
503
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
504
 
<td> <a
505
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
506
 
><code class="literal">TRUE</code></a> if <em class="parameter"><code>name</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has
507
 
              been set, <a
508
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
509
 
><code class="literal">FALSE</code></a> otherwise
 
350
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
351
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>name</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has
 
352
              been set, <code class="literal">FALSE</code> otherwise
510
353
 
511
354
</td>
512
355
</tr>
517
360
</div>
518
361
<hr>
519
362
<div class="refsect2" lang="en">
520
 
<a name="id2620578"></a><h3>
521
 
<a name="gimp-rgb-parse-hex"></a>gimp_rgb_parse_hex ()</h3>
522
 
<a class="indexterm" name="id2620590"></a><pre class="programlisting"><a
523
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
524
 
>gboolean</a>            gimp_rgb_parse_hex                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
525
 
                                                         const <a
526
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
527
 
>gchar</a> *hex,
528
 
                                                         <a
529
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
530
 
>gint</a> len);</pre>
 
363
<a name="gimp-rgb-parse-hex"></a><h3>gimp_rgb_parse_hex ()</h3>
 
364
<pre class="programlisting">gboolean            gimp_rgb_parse_hex                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
365
                                                         const gchar *hex,
 
366
                                                         gint len);</pre>
531
367
<p>
532
368
Attempts to parse a string describing an RGB color in hexadecimal
533
369
notation (optionally prefixed with a '#').
541
377
<col align="left" valign="top">
542
378
<tbody>
543
379
<tr>
544
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
545
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
 
380
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
381
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
546
382
</td>
547
383
</tr>
548
384
<tr>
549
 
<td><p><span class="term"><em class="parameter"><code>hex</code></em>&#160;:</span></p></td>
 
385
<td><p><span class="term"><em class="parameter"><code>hex</code></em> :</span></p></td>
550
386
<td> a string describing a color in hexadecimal notation
551
387
</td>
552
388
</tr>
553
389
<tr>
554
 
<td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td>
 
390
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
555
391
<td> the length of <em class="parameter"><code>hex</code></em>, in bytes. or -1 if <em class="parameter"><code>hex</code></em> is nul-terminated
556
392
</td>
557
393
</tr>
558
394
<tr>
559
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
560
 
<td> <a
561
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
562
 
><code class="literal">TRUE</code></a> if <em class="parameter"><code>hex</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has
563
 
              been set, <a
564
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
565
 
><code class="literal">FALSE</code></a> otherwise
 
395
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
396
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>hex</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has
 
397
              been set, <code class="literal">FALSE</code> otherwise
566
398
 
567
399
</td>
568
400
</tr>
573
405
</div>
574
406
<hr>
575
407
<div class="refsect2" lang="en">
576
 
<a name="id2620746"></a><h3>
577
 
<a name="gimp-rgb-parse-css"></a>gimp_rgb_parse_css ()</h3>
578
 
<a class="indexterm" name="id2620759"></a><pre class="programlisting"><a
579
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
580
 
>gboolean</a>            gimp_rgb_parse_css                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
581
 
                                                         const <a
582
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
583
 
>gchar</a> *css,
584
 
                                                         <a
585
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
586
 
>gint</a> len);</pre>
 
408
<a name="gimp-rgb-parse-css"></a><h3>gimp_rgb_parse_css ()</h3>
 
409
<pre class="programlisting">gboolean            gimp_rgb_parse_css                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
410
                                                         const gchar *css,
 
411
                                                         gint len);</pre>
587
412
<p>
588
413
Attempts to parse a string describing an RGB color in CSS
589
414
notation. This can be either a numerical representation
590
415
(<code class="code">rgb(255,0,0)</code> or <code class="code">rgb(100%,0%,0%)</code>)
591
 
or a hexadecimal notation as parsed by <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex"><code class="function">gimp_rgb_parse_hex()</code></a>
 
416
or a hexadecimal notation as parsed by <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex" title="gimp_rgb_parse_hex ()"><code class="function">gimp_rgb_parse_hex()</code></a>
592
417
(<code class="code">#<span class="type">ff0000</span></code>) or a color name as parsed by
593
 
<a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name"><code class="function">gimp_rgb_parse_name()</code></a> (<code class="code">red</code>).
 
418
<a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()"><code class="function">gimp_rgb_parse_name()</code></a> (<code class="code">red</code>).
594
419
</p>
595
420
<p>
596
421
This function does not touch the alpha component of <em class="parameter"><code>rgb</code></em>.</p>
601
426
<col align="left" valign="top">
602
427
<tbody>
603
428
<tr>
604
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
605
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
 
429
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
430
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
606
431
</td>
607
432
</tr>
608
433
<tr>
609
 
<td><p><span class="term"><em class="parameter"><code>css</code></em>&#160;:</span></p></td>
 
434
<td><p><span class="term"><em class="parameter"><code>css</code></em> :</span></p></td>
610
435
<td> a string describing a color in CSS notation
611
436
</td>
612
437
</tr>
613
438
<tr>
614
 
<td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td>
 
439
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
615
440
<td> the length of <em class="parameter"><code>hex</code></em>, in bytes. or -1 if <em class="parameter"><code>hex</code></em> is nul-terminated
616
441
</td>
617
442
</tr>
618
443
<tr>
619
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
620
 
<td> <a
621
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
622
 
><code class="literal">TRUE</code></a> if <em class="parameter"><code>css</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has been
623
 
              set, <a
624
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
625
 
><code class="literal">FALSE</code></a> otherwise
 
444
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
445
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>css</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has been
 
446
              set, <code class="literal">FALSE</code> otherwise
626
447
 
627
448
</td>
628
449
</tr>
633
454
</div>
634
455
<hr>
635
456
<div class="refsect2" lang="en">
636
 
<a name="id2620951"></a><h3>
637
 
<a name="gimp-rgb-list-names"></a>gimp_rgb_list_names ()</h3>
638
 
<a class="indexterm" name="id2620963"></a><pre class="programlisting"><a
639
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
640
 
>gint</a>                gimp_rgb_list_names                 (const <a
641
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
642
 
>gchar</a> ***names,
643
 
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> **colors);</pre>
 
457
<a name="gimp-rgb-list-names"></a><h3>gimp_rgb_list_names ()</h3>
 
458
<pre class="programlisting">gint                gimp_rgb_list_names                 (const gchar ***names,
 
459
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> **colors);</pre>
644
460
<p>
645
461
Allows to retrieve the list of <a class="ulink" href="http://www.w3.org/TR/SVG/types.html" target="_top">SVG 1.0 color
646
 
keywords</a> that is used by <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name"><code class="function">gimp_rgb_parse_name()</code></a>.
 
462
keywords</a> that is used by <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()"><code class="function">gimp_rgb_parse_name()</code></a>.
647
463
</p>
648
464
<p>
649
465
The returned strings are const and must not be freed. Only the two
650
 
arrays are allocated dynamically. You must call <a
651
 
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
652
 
><code class="function">g_free()</code></a> on the
 
466
arrays are allocated dynamically. You must call <code class="function">g_free()</code> on the
653
467
<em class="parameter"><code>names</code></em> and <em class="parameter"><code>colors</code></em> arrays when they are not any longer needed.</p>
654
468
<p>
655
469
 
658
472
<col align="left" valign="top">
659
473
<tbody>
660
474
<tr>
661
 
<td><p><span class="term"><em class="parameter"><code>names</code></em>&#160;:</span></p></td>
 
475
<td><p><span class="term"><em class="parameter"><code>names</code></em> :</span></p></td>
662
476
<td>  return location for an array of color names
663
477
</td>
664
478
</tr>
665
479
<tr>
666
 
<td><p><span class="term"><em class="parameter"><code>colors</code></em>&#160;:</span></p></td>
 
480
<td><p><span class="term"><em class="parameter"><code>colors</code></em> :</span></p></td>
667
481
<td> return location for an array of GimpRGB structs
668
482
</td>
669
483
</tr>
670
484
<tr>
671
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
485
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
672
486
<td> the number of named colors
673
487
              (i.e. the length of the returned arrays)
674
488
 
681
495
</div>
682
496
<hr>
683
497
<div class="refsect2" lang="en">
684
 
<a name="id2621085"></a><h3>
685
 
<a name="gimp-rgb-add"></a>gimp_rgb_add ()</h3>
686
 
<a class="indexterm" name="id2621096"></a><pre class="programlisting">void                gimp_rgb_add                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
687
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb2);</pre>
688
 
<p>
689
 
 
690
 
</p>
691
 
<div class="variablelist"><table border="0">
692
 
<col align="left" valign="top">
693
 
<tbody>
694
 
<tr>
695
 
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em>&#160;:</span></p></td>
696
 
<td>
697
 
</td>
698
 
</tr>
699
 
<tr>
700
 
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em>&#160;:</span></p></td>
701
 
<td>
702
 
 
703
 
 
704
 
</td>
705
 
</tr>
706
 
</tbody>
707
 
</table></div>
708
 
</div>
709
 
<hr>
710
 
<div class="refsect2" lang="en">
711
 
<a name="id2621156"></a><h3>
712
 
<a name="gimp-rgb-subtract"></a>gimp_rgb_subtract ()</h3>
713
 
<a class="indexterm" name="id2621166"></a><pre class="programlisting">void                gimp_rgb_subtract                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
714
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb2);</pre>
715
 
<p>
716
 
 
717
 
</p>
718
 
<div class="variablelist"><table border="0">
719
 
<col align="left" valign="top">
720
 
<tbody>
721
 
<tr>
722
 
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em>&#160;:</span></p></td>
723
 
<td>
724
 
</td>
725
 
</tr>
726
 
<tr>
727
 
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em>&#160;:</span></p></td>
728
 
<td>
729
 
 
730
 
 
731
 
</td>
732
 
</tr>
733
 
</tbody>
734
 
</table></div>
735
 
</div>
736
 
<hr>
737
 
<div class="refsect2" lang="en">
738
 
<a name="id2621226"></a><h3>
739
 
<a name="gimp-rgb-multiply"></a>gimp_rgb_multiply ()</h3>
740
 
<a class="indexterm" name="id2621237"></a><pre class="programlisting">void                gimp_rgb_multiply                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
741
 
                                                         <a
742
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
743
 
>gdouble</a> factor);</pre>
744
 
<p>
745
 
 
746
 
</p>
747
 
<div class="variablelist"><table border="0">
748
 
<col align="left" valign="top">
749
 
<tbody>
750
 
<tr>
751
 
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em>&#160;:</span></p></td>
752
 
<td>
753
 
</td>
754
 
</tr>
755
 
<tr>
756
 
<td><p><span class="term"><em class="parameter"><code>factor</code></em>&#160;:</span></p></td>
757
 
<td>
758
 
 
759
 
 
760
 
</td>
761
 
</tr>
762
 
</tbody>
763
 
</table></div>
764
 
</div>
765
 
<hr>
766
 
<div class="refsect2" lang="en">
767
 
<a name="id2621296"></a><h3>
768
 
<a name="gimp-rgb-distance"></a>gimp_rgb_distance ()</h3>
769
 
<a class="indexterm" name="id2621307"></a><pre class="programlisting"><a
770
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
771
 
>gdouble</a>             gimp_rgb_distance                   (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb1,
772
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb2);</pre>
773
 
<p>
774
 
 
775
 
</p>
776
 
<div class="variablelist"><table border="0">
777
 
<col align="left" valign="top">
778
 
<tbody>
779
 
<tr>
780
 
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em>&#160;:</span></p></td>
781
 
<td>
782
 
</td>
783
 
</tr>
784
 
<tr>
785
 
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em>&#160;:</span></p></td>
786
 
<td>
787
 
</td>
788
 
</tr>
789
 
<tr>
790
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
791
 
<td>
792
 
 
793
 
 
794
 
</td>
795
 
</tr>
796
 
</tbody>
797
 
</table></div>
798
 
</div>
799
 
<hr>
800
 
<div class="refsect2" lang="en">
801
 
<a name="id2621376"></a><h3>
802
 
<a name="gimp-rgb-max"></a>gimp_rgb_max ()</h3>
803
 
<a class="indexterm" name="id2621387"></a><pre class="programlisting"><a
804
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
805
 
>gdouble</a>             gimp_rgb_max                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
806
 
<p>
807
 
 
808
 
</p>
809
 
<div class="variablelist"><table border="0">
810
 
<col align="left" valign="top">
811
 
<tbody>
812
 
<tr>
813
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
814
 
<td>
815
 
</td>
816
 
</tr>
817
 
<tr>
818
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
819
 
<td>
820
 
 
821
 
 
822
 
</td>
823
 
</tr>
824
 
</tbody>
825
 
</table></div>
826
 
</div>
827
 
<hr>
828
 
<div class="refsect2" lang="en">
829
 
<a name="id2621437"></a><h3>
830
 
<a name="gimp-rgb-min"></a>gimp_rgb_min ()</h3>
831
 
<a class="indexterm" name="id2621448"></a><pre class="programlisting"><a
832
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
833
 
>gdouble</a>             gimp_rgb_min                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
834
 
<p>
835
 
 
836
 
</p>
837
 
<div class="variablelist"><table border="0">
838
 
<col align="left" valign="top">
839
 
<tbody>
840
 
<tr>
841
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
842
 
<td>
843
 
</td>
844
 
</tr>
845
 
<tr>
846
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
847
 
<td>
848
 
 
849
 
 
850
 
</td>
851
 
</tr>
852
 
</tbody>
853
 
</table></div>
854
 
</div>
855
 
<hr>
856
 
<div class="refsect2" lang="en">
857
 
<a name="id2621498"></a><h3>
858
 
<a name="gimp-rgb-clamp"></a>gimp_rgb_clamp ()</h3>
859
 
<a class="indexterm" name="id2621508"></a><pre class="programlisting">void                gimp_rgb_clamp                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
498
<a name="gimp-rgb-add"></a><h3>gimp_rgb_add ()</h3>
 
499
<pre class="programlisting">void                gimp_rgb_add                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
500
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
 
501
<p>
 
502
 
 
503
</p>
 
504
<div class="variablelist"><table border="0">
 
505
<col align="left" valign="top">
 
506
<tbody>
 
507
<tr>
 
508
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em> :</span></p></td>
 
509
<td>
 
510
</td>
 
511
</tr>
 
512
<tr>
 
513
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
 
514
<td>
 
515
 
 
516
 
 
517
</td>
 
518
</tr>
 
519
</tbody>
 
520
</table></div>
 
521
</div>
 
522
<hr>
 
523
<div class="refsect2" lang="en">
 
524
<a name="gimp-rgb-subtract"></a><h3>gimp_rgb_subtract ()</h3>
 
525
<pre class="programlisting">void                gimp_rgb_subtract                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
526
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
 
527
<p>
 
528
 
 
529
</p>
 
530
<div class="variablelist"><table border="0">
 
531
<col align="left" valign="top">
 
532
<tbody>
 
533
<tr>
 
534
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em> :</span></p></td>
 
535
<td>
 
536
</td>
 
537
</tr>
 
538
<tr>
 
539
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
 
540
<td>
 
541
 
 
542
 
 
543
</td>
 
544
</tr>
 
545
</tbody>
 
546
</table></div>
 
547
</div>
 
548
<hr>
 
549
<div class="refsect2" lang="en">
 
550
<a name="gimp-rgb-multiply"></a><h3>gimp_rgb_multiply ()</h3>
 
551
<pre class="programlisting">void                gimp_rgb_multiply                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
552
                                                         gdouble factor);</pre>
 
553
<p>
 
554
 
 
555
</p>
 
556
<div class="variablelist"><table border="0">
 
557
<col align="left" valign="top">
 
558
<tbody>
 
559
<tr>
 
560
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em> :</span></p></td>
 
561
<td>
 
562
</td>
 
563
</tr>
 
564
<tr>
 
565
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
 
566
<td>
 
567
 
 
568
 
 
569
</td>
 
570
</tr>
 
571
</tbody>
 
572
</table></div>
 
573
</div>
 
574
<hr>
 
575
<div class="refsect2" lang="en">
 
576
<a name="gimp-rgb-distance"></a><h3>gimp_rgb_distance ()</h3>
 
577
<pre class="programlisting">gdouble             gimp_rgb_distance                   (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
 
578
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
 
579
<p>
 
580
 
 
581
</p>
 
582
<div class="variablelist"><table border="0">
 
583
<col align="left" valign="top">
 
584
<tbody>
 
585
<tr>
 
586
<td><p><span class="term"><em class="parameter"><code>rgb1</code></em> :</span></p></td>
 
587
<td>
 
588
</td>
 
589
</tr>
 
590
<tr>
 
591
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
 
592
<td>
 
593
</td>
 
594
</tr>
 
595
<tr>
 
596
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
597
<td>
 
598
 
 
599
 
 
600
</td>
 
601
</tr>
 
602
</tbody>
 
603
</table></div>
 
604
</div>
 
605
<hr>
 
606
<div class="refsect2" lang="en">
 
607
<a name="gimp-rgb-max"></a><h3>gimp_rgb_max ()</h3>
 
608
<pre class="programlisting">gdouble             gimp_rgb_max                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
 
609
<p>
 
610
 
 
611
</p>
 
612
<div class="variablelist"><table border="0">
 
613
<col align="left" valign="top">
 
614
<tbody>
 
615
<tr>
 
616
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
617
<td>
 
618
</td>
 
619
</tr>
 
620
<tr>
 
621
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
622
<td>
 
623
 
 
624
 
 
625
</td>
 
626
</tr>
 
627
</tbody>
 
628
</table></div>
 
629
</div>
 
630
<hr>
 
631
<div class="refsect2" lang="en">
 
632
<a name="gimp-rgb-min"></a><h3>gimp_rgb_min ()</h3>
 
633
<pre class="programlisting">gdouble             gimp_rgb_min                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
 
634
<p>
 
635
 
 
636
</p>
 
637
<div class="variablelist"><table border="0">
 
638
<col align="left" valign="top">
 
639
<tbody>
 
640
<tr>
 
641
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
 
642
<td>
 
643
</td>
 
644
</tr>
 
645
<tr>
 
646
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
647
<td>
 
648
 
 
649
 
 
650
</td>
 
651
</tr>
 
652
</tbody>
 
653
</table></div>
 
654
</div>
 
655
<hr>
 
656
<div class="refsect2" lang="en">
 
657
<a name="gimp-rgb-clamp"></a><h3>gimp_rgb_clamp ()</h3>
 
658
<pre class="programlisting">void                gimp_rgb_clamp                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
860
659
<p>
861
660
 
862
661
</p>
863
662
<div class="variablelist"><table border="0">
864
663
<col align="left" valign="top">
865
664
<tbody><tr>
866
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
665
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
867
666
<td>
868
667
 
869
668
 
873
672
</div>
874
673
<hr>
875
674
<div class="refsect2" lang="en">
876
 
<a name="id2621549"></a><h3>
877
 
<a name="gimp-rgb-gamma"></a>gimp_rgb_gamma ()</h3>
878
 
<a class="indexterm" name="id2621560"></a><pre class="programlisting">void                gimp_rgb_gamma                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb,
879
 
                                                         <a
880
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
881
 
>gdouble</a> gamma);</pre>
 
675
<a name="gimp-rgb-gamma"></a><h3>gimp_rgb_gamma ()</h3>
 
676
<pre class="programlisting">void                gimp_rgb_gamma                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
 
677
                                                         gdouble gamma);</pre>
882
678
<p>
883
679
 
884
680
</p>
886
682
<col align="left" valign="top">
887
683
<tbody>
888
684
<tr>
889
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
685
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
890
686
<td>
891
687
</td>
892
688
</tr>
893
689
<tr>
894
 
<td><p><span class="term"><em class="parameter"><code>gamma</code></em>&#160;:</span></p></td>
 
690
<td><p><span class="term"><em class="parameter"><code>gamma</code></em> :</span></p></td>
895
691
<td>
896
692
 
897
693
 
902
698
</div>
903
699
<hr>
904
700
<div class="refsect2" lang="en">
905
 
<a name="id2621620"></a><h3>
906
 
<a name="gimp-rgb-luminance"></a>gimp_rgb_luminance ()</h3>
907
 
<a class="indexterm" name="id2621632"></a><pre class="programlisting"><a
908
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
909
 
>gdouble</a>             gimp_rgb_luminance                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
701
<a name="gimp-rgb-luminance"></a><h3>gimp_rgb_luminance ()</h3>
 
702
<pre class="programlisting">gdouble             gimp_rgb_luminance                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
910
703
<p>
911
704
</p>
912
705
<p>
916
709
<col align="left" valign="top">
917
710
<tbody>
918
711
<tr>
919
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
712
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
920
713
<td>
921
714
</td>
922
715
</tr>
923
716
<tr>
924
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
717
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
925
718
<td> the luminous intensity of the range from 0.0 to 1.0.
926
719
 
927
720
</td>
933
726
</div>
934
727
<hr>
935
728
<div class="refsect2" lang="en">
936
 
<a name="id2621693"></a><h3>
937
 
<a name="gimp-rgb-luminance-uchar"></a>gimp_rgb_luminance_uchar ()</h3>
938
 
<a class="indexterm" name="id2621705"></a><pre class="programlisting"><a
939
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
940
 
>guchar</a>              gimp_rgb_luminance_uchar            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
729
<a name="gimp-rgb-luminance-uchar"></a><h3>gimp_rgb_luminance_uchar ()</h3>
 
730
<pre class="programlisting">guchar              gimp_rgb_luminance_uchar            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
941
731
<p>
942
732
</p>
943
733
<p>
947
737
<col align="left" valign="top">
948
738
<tbody>
949
739
<tr>
950
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
740
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
951
741
<td>
952
742
</td>
953
743
</tr>
954
744
<tr>
955
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
745
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
956
746
<td> the luminous intensity in the range from 0 to 255.
957
747
 
958
748
</td>
964
754
</div>
965
755
<hr>
966
756
<div class="refsect2" lang="en">
967
 
<a name="id2621766"></a><h3>
968
 
<a name="gimp-rgb-intensity"></a>gimp_rgb_intensity ()</h3>
969
 
<a class="indexterm" name="id2621778"></a><pre class="programlisting"><a
970
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
971
 
>gdouble</a>             gimp_rgb_intensity                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
757
<a name="gimp-rgb-intensity"></a><h3>gimp_rgb_intensity ()</h3>
 
758
<pre class="programlisting">gdouble             gimp_rgb_intensity                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
972
759
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
973
760
<h3 class="title">Warning</h3>
974
761
<p><code class="literal">gimp_rgb_intensity</code> is deprecated and should not be used in newly-written code.</p>
975
762
</div>
976
763
<p>
977
 
This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance"><code class="function">gimp_rgb_luminance()</code></a> instead.</p>
 
764
This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance" title="gimp_rgb_luminance ()"><code class="function">gimp_rgb_luminance()</code></a> instead.</p>
978
765
<p>
979
766
 
980
767
</p>
982
769
<col align="left" valign="top">
983
770
<tbody>
984
771
<tr>
985
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
772
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
986
773
<td>
987
774
</td>
988
775
</tr>
989
776
<tr>
990
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
777
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
991
778
<td> the intensity in the range from 0.0 to 1.0.
992
779
</td>
993
780
</tr>
996
783
</div>
997
784
<hr>
998
785
<div class="refsect2" lang="en">
999
 
<a name="id2621853"></a><h3>
1000
 
<a name="gimp-rgb-intensity-uchar"></a>gimp_rgb_intensity_uchar ()</h3>
1001
 
<a class="indexterm" name="id2621866"></a><pre class="programlisting"><a
1002
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1003
 
>guchar</a>              gimp_rgb_intensity_uchar            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
786
<a name="gimp-rgb-intensity-uchar"></a><h3>gimp_rgb_intensity_uchar ()</h3>
 
787
<pre class="programlisting">guchar              gimp_rgb_intensity_uchar            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
1004
788
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1005
789
<h3 class="title">Warning</h3>
1006
790
<p><code class="literal">gimp_rgb_intensity_uchar</code> is deprecated and should not be used in newly-written code.</p>
1007
791
</div>
1008
792
<p>
1009
 
This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar"><code class="function">gimp_rgb_luminance_uchar()</code></a> instead.</p>
 
793
This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar" title="gimp_rgb_luminance_uchar ()"><code class="function">gimp_rgb_luminance_uchar()</code></a> instead.</p>
1010
794
<p>
1011
795
 
1012
796
</p>
1014
798
<col align="left" valign="top">
1015
799
<tbody>
1016
800
<tr>
1017
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
801
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
1018
802
<td>
1019
803
</td>
1020
804
</tr>
1021
805
<tr>
1022
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
806
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1023
807
<td> the intensity in the range from 0 to 255.
1024
808
</td>
1025
809
</tr>
1028
812
</div>
1029
813
<hr>
1030
814
<div class="refsect2" lang="en">
1031
 
<a name="id2621941"></a><h3>
1032
 
<a name="gimp-rgb-composite"></a>gimp_rgb_composite ()</h3>
1033
 
<a class="indexterm" name="id2621951"></a><pre class="programlisting">void                gimp_rgb_composite                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *color1,
1034
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *color2,
1035
 
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode">GimpRGBCompositeMode</a> mode);</pre>
 
815
<a name="gimp-rgb-composite"></a><h3>gimp_rgb_composite ()</h3>
 
816
<pre class="programlisting">void                gimp_rgb_composite                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color1,
 
817
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color2,
 
818
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a> mode);</pre>
1036
819
<p>
1037
820
 
1038
821
</p>
1040
823
<col align="left" valign="top">
1041
824
<tbody>
1042
825
<tr>
1043
 
<td><p><span class="term"><em class="parameter"><code>color1</code></em>&#160;:</span></p></td>
1044
 
<td>
1045
 
</td>
1046
 
</tr>
1047
 
<tr>
1048
 
<td><p><span class="term"><em class="parameter"><code>color2</code></em>&#160;:</span></p></td>
1049
 
<td>
1050
 
</td>
1051
 
</tr>
1052
 
<tr>
1053
 
<td><p><span class="term"><em class="parameter"><code>mode</code></em>&#160;:</span></p></td>
 
826
<td><p><span class="term"><em class="parameter"><code>color1</code></em> :</span></p></td>
 
827
<td>
 
828
</td>
 
829
</tr>
 
830
<tr>
 
831
<td><p><span class="term"><em class="parameter"><code>color2</code></em> :</span></p></td>
 
832
<td>
 
833
</td>
 
834
</tr>
 
835
<tr>
 
836
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
1054
837
<td>
1055
838
 
1056
839
 
1061
844
</div>
1062
845
<hr>
1063
846
<div class="refsect2" lang="en">
1064
 
<a name="id2622030"></a><h3>
1065
 
<a name="gimp-rgba-set"></a>gimp_rgba_set ()</h3>
1066
 
<a class="indexterm" name="id2622041"></a><pre class="programlisting">void                gimp_rgba_set                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
1067
 
                                                         <a
1068
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1069
 
>gdouble</a> red,
1070
 
                                                         <a
1071
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1072
 
>gdouble</a> green,
1073
 
                                                         <a
1074
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1075
 
>gdouble</a> blue,
1076
 
                                                         <a
1077
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1078
 
>gdouble</a> alpha);</pre>
 
847
<a name="gimp-rgba-set"></a><h3>gimp_rgba_set ()</h3>
 
848
<pre class="programlisting">void                gimp_rgba_set                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
849
                                                         gdouble red,
 
850
                                                         gdouble green,
 
851
                                                         gdouble blue,
 
852
                                                         gdouble alpha);</pre>
1079
853
<p>
1080
854
Sets the red, green, blue and alpha components of <em class="parameter"><code>rgb</code></em>. The values
1081
855
should be between 0.0 and 1.0 but there is no check to enforce this
1087
861
<col align="left" valign="top">
1088
862
<tbody>
1089
863
<tr>
1090
 
<td><p><span class="term"><em class="parameter"><code>rgba</code></em>&#160;:</span></p></td>
1091
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct
1092
 
</td>
1093
 
</tr>
1094
 
<tr>
1095
 
<td><p><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></p></td>
1096
 
<td>
1097
 
</td>
1098
 
</tr>
1099
 
<tr>
1100
 
<td><p><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></p></td>
1101
 
<td>
1102
 
</td>
1103
 
</tr>
1104
 
<tr>
1105
 
<td><p><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></p></td>
1106
 
<td>
1107
 
</td>
1108
 
</tr>
1109
 
<tr>
1110
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
864
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
 
865
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct
 
866
</td>
 
867
</tr>
 
868
<tr>
 
869
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
 
870
<td>
 
871
</td>
 
872
</tr>
 
873
<tr>
 
874
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
 
875
<td>
 
876
</td>
 
877
</tr>
 
878
<tr>
 
879
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
 
880
<td>
 
881
</td>
 
882
</tr>
 
883
<tr>
 
884
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1111
885
<td>
1112
886
</td>
1113
887
</tr>
1116
890
</div>
1117
891
<hr>
1118
892
<div class="refsect2" lang="en">
1119
 
<a name="id2622176"></a><h3>
1120
 
<a name="gimp-rgba-set-uchar"></a>gimp_rgba_set_uchar ()</h3>
1121
 
<a class="indexterm" name="id2622186"></a><pre class="programlisting">void                gimp_rgba_set_uchar                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
1122
 
                                                         <a
1123
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1124
 
>guchar</a> red,
1125
 
                                                         <a
1126
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1127
 
>guchar</a> green,
1128
 
                                                         <a
1129
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1130
 
>guchar</a> blue,
1131
 
                                                         <a
1132
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1133
 
>guchar</a> alpha);</pre>
 
893
<a name="gimp-rgba-set-uchar"></a><h3>gimp_rgba_set_uchar ()</h3>
 
894
<pre class="programlisting">void                gimp_rgba_set_uchar                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
895
                                                         guchar red,
 
896
                                                         guchar green,
 
897
                                                         guchar blue,
 
898
                                                         guchar alpha);</pre>
1134
899
<p>
1135
900
Sets the red, green, blue and alpha components of <em class="parameter"><code>rgb</code></em> from 8bit
1136
901
values (0 to 255).</p>
1141
906
<col align="left" valign="top">
1142
907
<tbody>
1143
908
<tr>
1144
 
<td><p><span class="term"><em class="parameter"><code>rgba</code></em>&#160;:</span></p></td>
1145
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct
1146
 
</td>
1147
 
</tr>
1148
 
<tr>
1149
 
<td><p><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></p></td>
1150
 
<td>
1151
 
</td>
1152
 
</tr>
1153
 
<tr>
1154
 
<td><p><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></p></td>
1155
 
<td>
1156
 
</td>
1157
 
</tr>
1158
 
<tr>
1159
 
<td><p><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></p></td>
1160
 
<td>
1161
 
</td>
1162
 
</tr>
1163
 
<tr>
1164
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
909
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
 
910
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct
 
911
</td>
 
912
</tr>
 
913
<tr>
 
914
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
 
915
<td>
 
916
</td>
 
917
</tr>
 
918
<tr>
 
919
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
 
920
<td>
 
921
</td>
 
922
</tr>
 
923
<tr>
 
924
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
 
925
<td>
 
926
</td>
 
927
</tr>
 
928
<tr>
 
929
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1165
930
<td>
1166
931
</td>
1167
932
</tr>
1170
935
</div>
1171
936
<hr>
1172
937
<div class="refsect2" lang="en">
1173
 
<a name="id2622319"></a><h3>
1174
 
<a name="gimp-rgba-get-uchar"></a>gimp_rgba_get_uchar ()</h3>
1175
 
<a class="indexterm" name="id2622330"></a><pre class="programlisting">void                gimp_rgba_get_uchar                 (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
1176
 
                                                         <a
1177
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1178
 
>guchar</a> *red,
1179
 
                                                         <a
1180
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1181
 
>guchar</a> *green,
1182
 
                                                         <a
1183
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1184
 
>guchar</a> *blue,
1185
 
                                                         <a
1186
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
1187
 
>guchar</a> *alpha);</pre>
 
938
<a name="gimp-rgba-get-uchar"></a><h3>gimp_rgba_get_uchar ()</h3>
 
939
<pre class="programlisting">void                gimp_rgba_get_uchar                 (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
940
                                                         guchar *red,
 
941
                                                         guchar *green,
 
942
                                                         guchar *blue,
 
943
                                                         guchar *alpha);</pre>
1188
944
<p>
1189
945
 
1190
946
</p>
1192
948
<col align="left" valign="top">
1193
949
<tbody>
1194
950
<tr>
1195
 
<td><p><span class="term"><em class="parameter"><code>rgba</code></em>&#160;:</span></p></td>
1196
 
<td>
1197
 
</td>
1198
 
</tr>
1199
 
<tr>
1200
 
<td><p><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></p></td>
1201
 
<td>
1202
 
</td>
1203
 
</tr>
1204
 
<tr>
1205
 
<td><p><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></p></td>
1206
 
<td>
1207
 
</td>
1208
 
</tr>
1209
 
<tr>
1210
 
<td><p><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></p></td>
1211
 
<td>
1212
 
</td>
1213
 
</tr>
1214
 
<tr>
1215
 
<td><p><span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></p></td>
 
951
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
 
952
<td>
 
953
</td>
 
954
</tr>
 
955
<tr>
 
956
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
 
957
<td>
 
958
</td>
 
959
</tr>
 
960
<tr>
 
961
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
 
962
<td>
 
963
</td>
 
964
</tr>
 
965
<tr>
 
966
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
 
967
<td>
 
968
</td>
 
969
</tr>
 
970
<tr>
 
971
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1216
972
<td>
1217
973
 
1218
974
 
1223
979
</div>
1224
980
<hr>
1225
981
<div class="refsect2" lang="en">
1226
 
<a name="id2622447"></a><h3>
1227
 
<a name="gimp-rgba-parse-css"></a>gimp_rgba_parse_css ()</h3>
1228
 
<a class="indexterm" name="id2622459"></a><pre class="programlisting"><a
1229
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1230
 
>gboolean</a>            gimp_rgba_parse_css                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
1231
 
                                                         const <a
1232
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1233
 
>gchar</a> *css,
1234
 
                                                         <a
1235
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
1236
 
>gint</a> len);</pre>
 
982
<a name="gimp-rgba-parse-css"></a><h3>gimp_rgba_parse_css ()</h3>
 
983
<pre class="programlisting">gboolean            gimp_rgba_parse_css                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
984
                                                         const gchar *css,
 
985
                                                         gint len);</pre>
1237
986
<p>
1238
 
Similar to <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css"><code class="function">gimp_rgb_parse_css()</code></a> but handles RGB colors with alpha
 
987
Similar to <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()"><code class="function">gimp_rgb_parse_css()</code></a> but handles RGB colors with alpha
1239
988
channel in the numerical CSS notation (<code class="code">rgba(255,0,0,255)</code>
1240
989
or <code class="code">rgba(100%,0%,0%,1000%)</code>).
1241
990
</p>
1249
998
<col align="left" valign="top">
1250
999
<tbody>
1251
1000
<tr>
1252
 
<td><p><span class="term"><em class="parameter"><code>rgba</code></em>&#160;:</span></p></td>
1253
 
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
 
1001
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
 
1002
<td> a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> struct used to return the parsed color
1254
1003
</td>
1255
1004
</tr>
1256
1005
<tr>
1257
 
<td><p><span class="term"><em class="parameter"><code>css</code></em>&#160;:</span></p></td>
 
1006
<td><p><span class="term"><em class="parameter"><code>css</code></em> :</span></p></td>
1258
1007
<td> a string describing a color in CSS notation
1259
1008
</td>
1260
1009
</tr>
1261
1010
<tr>
1262
 
<td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td>
 
1011
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
1263
1012
<td> the length of <em class="parameter"><code>hex</code></em>, in bytes. or -1 if <em class="parameter"><code>hex</code></em> is nul-terminated
1264
1013
</td>
1265
1014
</tr>
1266
1015
<tr>
1267
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1268
 
<td> <a
1269
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
1270
 
><code class="literal">TRUE</code></a> if <em class="parameter"><code>css</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has been
1271
 
              set, <a
1272
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
1273
 
><code class="literal">FALSE</code></a> otherwise
 
1016
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1017
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>css</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has been
 
1018
              set, <code class="literal">FALSE</code> otherwise
1274
1019
 
1275
1020
</td>
1276
1021
</tr>
1281
1026
</div>
1282
1027
<hr>
1283
1028
<div class="refsect2" lang="en">
1284
 
<a name="id2622639"></a><h3>
1285
 
<a name="gimp-rgba-add"></a>gimp_rgba_add ()</h3>
1286
 
<a class="indexterm" name="id2622652"></a><pre class="programlisting">void                gimp_rgba_add                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba1,
1287
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba2);</pre>
1288
 
<p>
1289
 
 
1290
 
</p>
1291
 
<div class="variablelist"><table border="0">
1292
 
<col align="left" valign="top">
1293
 
<tbody>
1294
 
<tr>
1295
 
<td><p><span class="term"><em class="parameter"><code>rgba1</code></em>&#160;:</span></p></td>
1296
 
<td>
1297
 
</td>
1298
 
</tr>
1299
 
<tr>
1300
 
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em>&#160;:</span></p></td>
1301
 
<td>
1302
 
 
1303
 
 
1304
 
</td>
1305
 
</tr>
1306
 
</tbody>
1307
 
</table></div>
1308
 
</div>
1309
 
<hr>
1310
 
<div class="refsect2" lang="en">
1311
 
<a name="id2622719"></a><h3>
1312
 
<a name="gimp-rgba-subtract"></a>gimp_rgba_subtract ()</h3>
1313
 
<a class="indexterm" name="id2622733"></a><pre class="programlisting">void                gimp_rgba_subtract                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba1,
1314
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba2);</pre>
1315
 
<p>
1316
 
 
1317
 
</p>
1318
 
<div class="variablelist"><table border="0">
1319
 
<col align="left" valign="top">
1320
 
<tbody>
1321
 
<tr>
1322
 
<td><p><span class="term"><em class="parameter"><code>rgba1</code></em>&#160;:</span></p></td>
1323
 
<td>
1324
 
</td>
1325
 
</tr>
1326
 
<tr>
1327
 
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em>&#160;:</span></p></td>
1328
 
<td>
1329
 
 
1330
 
 
1331
 
</td>
1332
 
</tr>
1333
 
</tbody>
1334
 
</table></div>
1335
 
</div>
1336
 
<hr>
1337
 
<div class="refsect2" lang="en">
1338
 
<a name="id2622800"></a><h3>
1339
 
<a name="gimp-rgba-multiply"></a>gimp_rgba_multiply ()</h3>
1340
 
<a class="indexterm" name="id2622813"></a><pre class="programlisting">void                gimp_rgba_multiply                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba,
1341
 
                                                         <a
1342
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1343
 
>gdouble</a> factor);</pre>
1344
 
<p>
1345
 
 
1346
 
</p>
1347
 
<div class="variablelist"><table border="0">
1348
 
<col align="left" valign="top">
1349
 
<tbody>
1350
 
<tr>
1351
 
<td><p><span class="term"><em class="parameter"><code>rgba</code></em>&#160;:</span></p></td>
1352
 
<td>
1353
 
</td>
1354
 
</tr>
1355
 
<tr>
1356
 
<td><p><span class="term"><em class="parameter"><code>factor</code></em>&#160;:</span></p></td>
1357
 
<td>
1358
 
 
1359
 
 
1360
 
</td>
1361
 
</tr>
1362
 
</tbody>
1363
 
</table></div>
1364
 
</div>
1365
 
<hr>
1366
 
<div class="refsect2" lang="en">
1367
 
<a name="id2622880"></a><h3>
1368
 
<a name="gimp-rgba-distance"></a>gimp_rgba_distance ()</h3>
1369
 
<a class="indexterm" name="id2622894"></a><pre class="programlisting"><a
1370
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
1371
 
>gdouble</a>             gimp_rgba_distance                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba1,
1372
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgba2);</pre>
1373
 
<p>
1374
 
 
1375
 
</p>
1376
 
<div class="variablelist"><table border="0">
1377
 
<col align="left" valign="top">
1378
 
<tbody>
1379
 
<tr>
1380
 
<td><p><span class="term"><em class="parameter"><code>rgba1</code></em>&#160;:</span></p></td>
1381
 
<td>
1382
 
</td>
1383
 
</tr>
1384
 
<tr>
1385
 
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em>&#160;:</span></p></td>
1386
 
<td>
1387
 
</td>
1388
 
</tr>
1389
 
<tr>
1390
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1391
 
<td>
1392
 
 
1393
 
 
1394
 
</td>
1395
 
</tr>
1396
 
</tbody>
1397
 
</table></div>
1398
 
</div>
1399
 
<hr>
1400
 
<div class="refsect2" lang="en">
1401
 
<a name="id2622971"></a><h3>
1402
 
<a name="GIMP-RGB-LUMINANCE:CAPS"></a>GIMP_RGB_LUMINANCE()</h3>
1403
 
<a class="indexterm" name="id2622985"></a><pre class="programlisting">#define             GIMP_RGB_LUMINANCE(r,g,b)</pre>
1404
 
<p>
1405
 
 
1406
 
</p>
1407
 
<div class="variablelist"><table border="0">
1408
 
<col align="left" valign="top">
1409
 
<tbody>
1410
 
<tr>
1411
 
<td><p><span class="term"><em class="parameter"><code>r</code></em>&#160;:</span></p></td>
1412
 
<td>
1413
 
</td>
1414
 
</tr>
1415
 
<tr>
1416
 
<td><p><span class="term"><em class="parameter"><code>g</code></em>&#160;:</span></p></td>
1417
 
<td>
1418
 
</td>
1419
 
</tr>
1420
 
<tr>
1421
 
<td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td>
1422
 
<td>
1423
 
 
1424
 
 
1425
 
</td>
1426
 
</tr>
1427
 
</tbody>
1428
 
</table></div>
1429
 
</div>
1430
 
<hr>
1431
 
<div class="refsect2" lang="en">
1432
 
<a name="id2623049"></a><h3>
1433
 
<a name="GIMP-RGB-LUMINANCE-RED:CAPS"></a>GIMP_RGB_LUMINANCE_RED</h3>
1434
 
<a class="indexterm" name="id2623062"></a><pre class="programlisting">#define GIMP_RGB_LUMINANCE_RED    (0.2126)
1435
 
</pre>
1436
 
<p>
1437
 
 
1438
 
</p>
1439
 
</div>
1440
 
<hr>
1441
 
<div class="refsect2" lang="en">
1442
 
<a name="id2623078"></a><h3>
1443
 
<a name="GIMP-RGB-LUMINANCE-GREEN:CAPS"></a>GIMP_RGB_LUMINANCE_GREEN</h3>
1444
 
<a class="indexterm" name="id2623093"></a><pre class="programlisting">#define GIMP_RGB_LUMINANCE_GREEN  (0.7152)
1445
 
</pre>
1446
 
<p>
1447
 
 
1448
 
</p>
1449
 
</div>
1450
 
<hr>
1451
 
<div class="refsect2" lang="en">
1452
 
<a name="id2623109"></a><h3>
1453
 
<a name="GIMP-RGB-LUMINANCE-BLUE:CAPS"></a>GIMP_RGB_LUMINANCE_BLUE</h3>
1454
 
<a class="indexterm" name="id2623123"></a><pre class="programlisting">#define GIMP_RGB_LUMINANCE_BLUE   (0.0722)
1455
 
</pre>
1456
 
<p>
1457
 
 
1458
 
</p>
1459
 
</div>
1460
 
<hr>
1461
 
<div class="refsect2" lang="en">
1462
 
<a name="id2623139"></a><h3>
1463
 
<a name="GIMP-RGB-INTENSITY:CAPS"></a>GIMP_RGB_INTENSITY()</h3>
1464
 
<a class="indexterm" name="id2623155"></a><pre class="programlisting">#define             GIMP_RGB_INTENSITY(r,g,b)</pre>
 
1029
<a name="gimp-rgba-add"></a><h3>gimp_rgba_add ()</h3>
 
1030
<pre class="programlisting">void                gimp_rgba_add                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
 
1031
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
 
1032
<p>
 
1033
 
 
1034
</p>
 
1035
<div class="variablelist"><table border="0">
 
1036
<col align="left" valign="top">
 
1037
<tbody>
 
1038
<tr>
 
1039
<td><p><span class="term"><em class="parameter"><code>rgba1</code></em> :</span></p></td>
 
1040
<td>
 
1041
</td>
 
1042
</tr>
 
1043
<tr>
 
1044
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
 
1045
<td>
 
1046
 
 
1047
 
 
1048
</td>
 
1049
</tr>
 
1050
</tbody>
 
1051
</table></div>
 
1052
</div>
 
1053
<hr>
 
1054
<div class="refsect2" lang="en">
 
1055
<a name="gimp-rgba-subtract"></a><h3>gimp_rgba_subtract ()</h3>
 
1056
<pre class="programlisting">void                gimp_rgba_subtract                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
 
1057
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
 
1058
<p>
 
1059
 
 
1060
</p>
 
1061
<div class="variablelist"><table border="0">
 
1062
<col align="left" valign="top">
 
1063
<tbody>
 
1064
<tr>
 
1065
<td><p><span class="term"><em class="parameter"><code>rgba1</code></em> :</span></p></td>
 
1066
<td>
 
1067
</td>
 
1068
</tr>
 
1069
<tr>
 
1070
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
 
1071
<td>
 
1072
 
 
1073
 
 
1074
</td>
 
1075
</tr>
 
1076
</tbody>
 
1077
</table></div>
 
1078
</div>
 
1079
<hr>
 
1080
<div class="refsect2" lang="en">
 
1081
<a name="gimp-rgba-multiply"></a><h3>gimp_rgba_multiply ()</h3>
 
1082
<pre class="programlisting">void                gimp_rgba_multiply                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
 
1083
                                                         gdouble factor);</pre>
 
1084
<p>
 
1085
 
 
1086
</p>
 
1087
<div class="variablelist"><table border="0">
 
1088
<col align="left" valign="top">
 
1089
<tbody>
 
1090
<tr>
 
1091
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
 
1092
<td>
 
1093
</td>
 
1094
</tr>
 
1095
<tr>
 
1096
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
 
1097
<td>
 
1098
 
 
1099
 
 
1100
</td>
 
1101
</tr>
 
1102
</tbody>
 
1103
</table></div>
 
1104
</div>
 
1105
<hr>
 
1106
<div class="refsect2" lang="en">
 
1107
<a name="gimp-rgba-distance"></a><h3>gimp_rgba_distance ()</h3>
 
1108
<pre class="programlisting">gdouble             gimp_rgba_distance                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
 
1109
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
 
1110
<p>
 
1111
 
 
1112
</p>
 
1113
<div class="variablelist"><table border="0">
 
1114
<col align="left" valign="top">
 
1115
<tbody>
 
1116
<tr>
 
1117
<td><p><span class="term"><em class="parameter"><code>rgba1</code></em> :</span></p></td>
 
1118
<td>
 
1119
</td>
 
1120
</tr>
 
1121
<tr>
 
1122
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
 
1123
<td>
 
1124
</td>
 
1125
</tr>
 
1126
<tr>
 
1127
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1128
<td>
 
1129
 
 
1130
 
 
1131
</td>
 
1132
</tr>
 
1133
</tbody>
 
1134
</table></div>
 
1135
</div>
 
1136
<hr>
 
1137
<div class="refsect2" lang="en">
 
1138
<a name="GIMP-RGB-LUMINANCE:CAPS"></a><h3>GIMP_RGB_LUMINANCE()</h3>
 
1139
<pre class="programlisting">#define             GIMP_RGB_LUMINANCE(r,g,b)</pre>
 
1140
<p>
 
1141
 
 
1142
</p>
 
1143
<div class="variablelist"><table border="0">
 
1144
<col align="left" valign="top">
 
1145
<tbody>
 
1146
<tr>
 
1147
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
 
1148
<td>
 
1149
</td>
 
1150
</tr>
 
1151
<tr>
 
1152
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
 
1153
<td>
 
1154
</td>
 
1155
</tr>
 
1156
<tr>
 
1157
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
 
1158
<td>
 
1159
 
 
1160
 
 
1161
</td>
 
1162
</tr>
 
1163
</tbody>
 
1164
</table></div>
 
1165
</div>
 
1166
<hr>
 
1167
<div class="refsect2" lang="en">
 
1168
<a name="GIMP-RGB-LUMINANCE-RED:CAPS"></a><h3>GIMP_RGB_LUMINANCE_RED</h3>
 
1169
<pre class="programlisting">#define GIMP_RGB_LUMINANCE_RED    (0.2126)
 
1170
</pre>
 
1171
<p>
 
1172
 
 
1173
</p>
 
1174
</div>
 
1175
<hr>
 
1176
<div class="refsect2" lang="en">
 
1177
<a name="GIMP-RGB-LUMINANCE-GREEN:CAPS"></a><h3>GIMP_RGB_LUMINANCE_GREEN</h3>
 
1178
<pre class="programlisting">#define GIMP_RGB_LUMINANCE_GREEN  (0.7152)
 
1179
</pre>
 
1180
<p>
 
1181
 
 
1182
</p>
 
1183
</div>
 
1184
<hr>
 
1185
<div class="refsect2" lang="en">
 
1186
<a name="GIMP-RGB-LUMINANCE-BLUE:CAPS"></a><h3>GIMP_RGB_LUMINANCE_BLUE</h3>
 
1187
<pre class="programlisting">#define GIMP_RGB_LUMINANCE_BLUE   (0.0722)
 
1188
</pre>
 
1189
<p>
 
1190
 
 
1191
</p>
 
1192
</div>
 
1193
<hr>
 
1194
<div class="refsect2" lang="en">
 
1195
<a name="GIMP-RGB-INTENSITY:CAPS"></a><h3>GIMP_RGB_INTENSITY()</h3>
 
1196
<pre class="programlisting">#define             GIMP_RGB_INTENSITY(r,g,b)</pre>
1465
1197
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1466
1198
<h3 class="title">Warning</h3>
1467
1199
<p><code class="literal">GIMP_RGB_INTENSITY</code> is deprecated and should not be used in newly-written code.</p>
1474
1206
<col align="left" valign="top">
1475
1207
<tbody>
1476
1208
<tr>
1477
 
<td><p><span class="term"><em class="parameter"><code>r</code></em>&#160;:</span></p></td>
 
1209
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
1478
1210
<td>red
1479
1211
</td>
1480
1212
</tr>
1481
1213
<tr>
1482
 
<td><p><span class="term"><em class="parameter"><code>g</code></em>&#160;:</span></p></td>
 
1214
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
1483
1215
<td>green
1484
1216
</td>
1485
1217
</tr>
1486
1218
<tr>
1487
 
<td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td>
 
1219
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
1488
1220
<td>blue
1489
1221
 
1490
1222
 
1495
1227
</div>
1496
1228
<hr>
1497
1229
<div class="refsect2" lang="en">
1498
 
<a name="id2623233"></a><h3>
1499
 
<a name="GIMP-RGB-INTENSITY-RED:CAPS"></a>GIMP_RGB_INTENSITY_RED</h3>
1500
 
<a class="indexterm" name="id2623249"></a><pre class="programlisting">#define GIMP_RGB_INTENSITY_RED    (0.30)
 
1230
<a name="GIMP-RGB-INTENSITY-RED:CAPS"></a><h3>GIMP_RGB_INTENSITY_RED</h3>
 
1231
<pre class="programlisting">#define GIMP_RGB_INTENSITY_RED    (0.30)
1501
1232
</pre>
1502
1233
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1503
1234
<h3 class="title">Warning</h3>
1509
1240
</div>
1510
1241
<hr>
1511
1242
<div class="refsect2" lang="en">
1512
 
<a name="id2623278"></a><h3>
1513
 
<a name="GIMP-RGB-INTENSITY-GREEN:CAPS"></a>GIMP_RGB_INTENSITY_GREEN</h3>
1514
 
<a class="indexterm" name="id2623294"></a><pre class="programlisting">#define GIMP_RGB_INTENSITY_GREEN  (0.59)
 
1243
<a name="GIMP-RGB-INTENSITY-GREEN:CAPS"></a><h3>GIMP_RGB_INTENSITY_GREEN</h3>
 
1244
<pre class="programlisting">#define GIMP_RGB_INTENSITY_GREEN  (0.59)
1515
1245
</pre>
1516
1246
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1517
1247
<h3 class="title">Warning</h3>
1523
1253
</div>
1524
1254
<hr>
1525
1255
<div class="refsect2" lang="en">
1526
 
<a name="id2623324"></a><h3>
1527
 
<a name="GIMP-RGB-INTENSITY-BLUE:CAPS"></a>GIMP_RGB_INTENSITY_BLUE</h3>
1528
 
<a class="indexterm" name="id2623340"></a><pre class="programlisting">#define GIMP_RGB_INTENSITY_BLUE   (0.11)
 
1256
<a name="GIMP-RGB-INTENSITY-BLUE:CAPS"></a><h3>GIMP_RGB_INTENSITY_BLUE</h3>
 
1257
<pre class="programlisting">#define GIMP_RGB_INTENSITY_BLUE   (0.11)
1529
1258
</pre>
1530
1259
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1531
1260
<h3 class="title">Warning</h3>
1537
1266
</div>
1538
1267
<hr>
1539
1268
<div class="refsect2" lang="en">
1540
 
<a name="id2623369"></a><h3>
1541
 
<a name="GIMP-TYPE-RGB:CAPS"></a>GIMP_TYPE_RGB</h3>
1542
 
<a class="indexterm" name="id2623382"></a><pre class="programlisting">#define GIMP_TYPE_RGB               (gimp_rgb_get_type ())
 
1269
<a name="GIMP-TYPE-RGB:CAPS"></a><h3>GIMP_TYPE_RGB</h3>
 
1270
<pre class="programlisting">#define GIMP_TYPE_RGB               (gimp_rgb_get_type ())
1543
1271
</pre>
1544
1272
<p>
1545
 
<a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS"><span class="type">GIMP_TYPE_RGB</span></a> is a <a
1546
 
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
1547
 
><span class="type">GType</span></a> derived from <a
1548
 
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-BOXED:CAPS"
1549
 
><span class="type">G_TYPE_BOXED</span></a>.
 
1273
<a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS" title="GIMP_TYPE_RGB"><span class="type">GIMP_TYPE_RGB</span></a> is a <span class="type">GType</span> derived from <span class="type">G_TYPE_BOXED</span>.
1550
1274
</p>
1551
1275
</div>
1552
1276
<hr>
1553
1277
<div class="refsect2" lang="en">
1554
 
<a name="id2623420"></a><h3>
1555
 
<a name="GIMP-TYPE-PARAM-RGB:CAPS"></a>GIMP_TYPE_PARAM_RGB</h3>
1556
 
<a class="indexterm" name="id2623434"></a><pre class="programlisting">#define GIMP_TYPE_PARAM_RGB           (gimp_param_rgb_get_type ())
 
1278
<a name="GIMP-TYPE-PARAM-RGB:CAPS"></a><h3>GIMP_TYPE_PARAM_RGB</h3>
 
1279
<pre class="programlisting">#define GIMP_TYPE_PARAM_RGB           (gimp_param_rgb_get_type ())
1557
1280
</pre>
1558
1281
<p>
1559
1282
 
1561
1284
</div>
1562
1285
<hr>
1563
1286
<div class="refsect2" lang="en">
1564
 
<a name="id2623451"></a><h3>
1565
 
<a name="gimp-param-spec-rgb"></a>gimp_param_spec_rgb ()</h3>
1566
 
<a class="indexterm" name="id2623466"></a><pre class="programlisting"><a
1567
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
1568
 
>GParamSpec</a>*         gimp_param_spec_rgb                 (const <a
1569
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1570
 
>gchar</a> *name,
1571
 
                                                         const <a
1572
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1573
 
>gchar</a> *nick,
1574
 
                                                         const <a
1575
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
1576
 
>gchar</a> *blurb,
1577
 
                                                         <a
1578
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1579
 
>gboolean</a> has_alpha,
1580
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *default_value,
1581
 
                                                         <a
1582
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
1583
 
>GParamFlags</a> flags);</pre>
 
1287
<a name="gimp-param-spec-rgb"></a><h3>gimp_param_spec_rgb ()</h3>
 
1288
<pre class="programlisting">GParamSpec*         gimp_param_spec_rgb                 (const gchar *name,
 
1289
                                                         const gchar *nick,
 
1290
                                                         const gchar *blurb,
 
1291
                                                         gboolean has_alpha,
 
1292
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *default_value,
 
1293
                                                         GParamFlags flags);</pre>
1584
1294
<p>
1585
 
Creates a param spec to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> value.
1586
 
See <a
1587
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#g-param-spec-internal"
1588
 
><code class="function">g_param_spec_internal()</code></a> for more information.</p>
 
1295
Creates a param spec to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> value.
 
1296
See <code class="function">g_param_spec_internal()</code> for more information.</p>
1589
1297
<p>
1590
1298
 
1591
1299
</p>
1593
1301
<col align="left" valign="top">
1594
1302
<tbody>
1595
1303
<tr>
1596
 
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
 
1304
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
1597
1305
<td>          Canonical name of the param
1598
1306
</td>
1599
1307
</tr>
1600
1308
<tr>
1601
 
<td><p><span class="term"><em class="parameter"><code>nick</code></em>&#160;:</span></p></td>
 
1309
<td><p><span class="term"><em class="parameter"><code>nick</code></em> :</span></p></td>
1602
1310
<td>          Nickname of the param
1603
1311
</td>
1604
1312
</tr>
1605
1313
<tr>
1606
 
<td><p><span class="term"><em class="parameter"><code>blurb</code></em>&#160;:</span></p></td>
 
1314
<td><p><span class="term"><em class="parameter"><code>blurb</code></em> :</span></p></td>
1607
1315
<td>         Brief desciption of param.
1608
1316
</td>
1609
1317
</tr>
1610
1318
<tr>
1611
 
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em>&#160;:</span></p></td>
1612
 
<td>     <a
1613
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
1614
 
><code class="literal">TRUE</code></a> if the alpha channel has relevance.
 
1319
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></p></td>
 
1320
<td>     <code class="literal">TRUE</code> if the alpha channel has relevance.
1615
1321
</td>
1616
1322
</tr>
1617
1323
<tr>
1618
 
<td><p><span class="term"><em class="parameter"><code>default_value</code></em>&#160;:</span></p></td>
 
1324
<td><p><span class="term"><em class="parameter"><code>default_value</code></em> :</span></p></td>
1619
1325
<td> Value to use if none is assigned.
1620
1326
</td>
1621
1327
</tr>
1622
1328
<tr>
1623
 
<td><p><span class="term"><em class="parameter"><code>flags</code></em>&#160;:</span></p></td>
1624
 
<td>         a combination of <a
1625
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
1626
 
><span class="type">GParamFlags</span></a>
 
1329
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
 
1330
<td>         a combination of <span class="type">GParamFlags</span>
1627
1331
</td>
1628
1332
</tr>
1629
1333
<tr>
1630
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1631
 
<td> a newly allocated <a
1632
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
1633
 
><span class="type">GParamSpec</span></a> instance
 
1334
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1335
<td> a newly allocated <span class="type">GParamSpec</span> instance
1634
1336
 
1635
1337
</td>
1636
1338
</tr>
1641
1343
</div>
1642
1344
<hr>
1643
1345
<div class="refsect2" lang="en">
1644
 
<a name="id2623683"></a><h3>
1645
 
<a name="gimp-param-spec-rgb-has-alpha"></a>gimp_param_spec_rgb_has_alpha ()</h3>
1646
 
<a class="indexterm" name="id2623699"></a><pre class="programlisting"><a
1647
 
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
1648
 
>gboolean</a>            gimp_param_spec_rgb_has_alpha       (<a
1649
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
1650
 
>GParamSpec</a> *pspec);</pre>
 
1346
<a name="gimp-param-spec-rgb-has-alpha"></a><h3>gimp_param_spec_rgb_has_alpha ()</h3>
 
1347
<pre class="programlisting">gboolean            gimp_param_spec_rgb_has_alpha       (GParamSpec *pspec);</pre>
1651
1348
<p>
1652
1349
</p>
1653
1350
<p>
1657
1354
<col align="left" valign="top">
1658
1355
<tbody>
1659
1356
<tr>
1660
 
<td><p><span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></p></td>
1661
 
<td> a <a
1662
 
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
1663
 
><span class="type">GParamSpec</span></a> to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> value.
 
1357
<td><p><span class="term"><em class="parameter"><code>pspec</code></em> :</span></p></td>
 
1358
<td> a <span class="type">GParamSpec</span> to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> value.
1664
1359
</td>
1665
1360
</tr>
1666
1361
<tr>
1667
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
1668
 
<td> <a
1669
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
1670
 
><code class="literal">TRUE</code></a> if the alpha channel is relevant.
 
1362
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
1363
<td> <code class="literal">TRUE</code> if the alpha channel is relevant.
1671
1364
 
1672
1365
</td>
1673
1366
</tr>
1678
1371
</div>
1679
1372
<hr>
1680
1373
<div class="refsect2" lang="en">
1681
 
<a name="id2623791"></a><h3>
1682
 
<a name="GIMP-VALUE-HOLDS-RGB:CAPS"></a>GIMP_VALUE_HOLDS_RGB()</h3>
1683
 
<a class="indexterm" name="id2623805"></a><pre class="programlisting">#define GIMP_VALUE_HOLDS_RGB(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_RGB))
 
1374
<a name="GIMP-VALUE-HOLDS-RGB:CAPS"></a><h3>GIMP_VALUE_HOLDS_RGB()</h3>
 
1375
<pre class="programlisting">#define GIMP_VALUE_HOLDS_RGB(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_RGB))
1684
1376
</pre>
1685
1377
<p>
1686
1378
 
1688
1380
<div class="variablelist"><table border="0">
1689
1381
<col align="left" valign="top">
1690
1382
<tbody><tr>
1691
 
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
 
1383
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
1692
1384
<td>
1693
1385
 
1694
1386
 
1698
1390
</div>
1699
1391
<hr>
1700
1392
<div class="refsect2" lang="en">
1701
 
<a name="id2623841"></a><h3>
1702
 
<a name="gimp-value-get-rgb"></a>gimp_value_get_rgb ()</h3>
1703
 
<a class="indexterm" name="id2623854"></a><pre class="programlisting">void                gimp_value_get_rgb                  (const <a
1704
 
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
1705
 
>GValue</a> *value,
1706
 
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
1393
<a name="gimp-value-get-rgb"></a><h3>gimp_value_get_rgb ()</h3>
 
1394
<pre class="programlisting">void                gimp_value_get_rgb                  (const GValue *value,
 
1395
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
1707
1396
<p>
1708
1397
 
1709
1398
</p>
1711
1400
<col align="left" valign="top">
1712
1401
<tbody>
1713
1402
<tr>
1714
 
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
 
1403
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
1715
1404
<td>
1716
1405
</td>
1717
1406
</tr>
1718
1407
<tr>
1719
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
1408
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
1720
1409
<td>
1721
1410
 
1722
1411
 
1727
1416
</div>
1728
1417
<hr>
1729
1418
<div class="refsect2" lang="en">
1730
 
<a name="id2623921"></a><h3>
1731
 
<a name="gimp-value-set-rgb"></a>gimp_value_set_rgb ()</h3>
1732
 
<a class="indexterm" name="id2623935"></a><pre class="programlisting">void                gimp_value_set_rgb                  (<a
1733
 
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
1734
 
>GValue</a> *value,
1735
 
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *rgb);</pre>
 
1419
<a name="gimp-value-set-rgb"></a><h3>gimp_value_set_rgb ()</h3>
 
1420
<pre class="programlisting">void                gimp_value_set_rgb                  (GValue *value,
 
1421
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
1736
1422
<p>
1737
1423
 
1738
1424
</p>
1740
1426
<col align="left" valign="top">
1741
1427
<tbody>
1742
1428
<tr>
1743
 
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
 
1429
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
1744
1430
<td>
1745
1431
</td>
1746
1432
</tr>
1747
1433
<tr>
1748
 
<td><p><span class="term"><em class="parameter"><code>rgb</code></em>&#160;:</span></p></td>
 
1434
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
1749
1435
<td>
1750
1436
 
1751
1437
 
1755
1441
</table></div>
1756
1442
</div>
1757
1443
</div>
1758
 
<div class="refsect1" lang="en">
1759
 
<a name="id2624003"></a><div class="refsect2" lang="en"><a name="id2624004"></a></div>
 
1444
</div>
 
1445
<div class="footer">
1760
1446
<hr>
1761
 
<div class="refsect2" lang="en"><a name="id2624005"></a></div>
1762
 
</div>
1763
 
</div>
 
1447
          Generated by GTK-Doc V1.10</div>
1764
1448
</body>
1765
1449
</html>