56
58
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-cmyk-to-rgb" title="gimp_cmyk_to_rgb ()">gimp_cmyk_to_rgb</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
57
59
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
58
60
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hwb" title="gimp_rgb_to_hwb ()">gimp_rgb_to_hwb</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
62
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hwb-to-rgb" title="gimp_hwb_to_rgb ()">gimp_hwb_to_rgb</a> (gdouble hue,
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
65
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
66
>gdouble</a> *whiteness,
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
69
>gdouble</a> *blackness);
70
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hwb-to-rgb" title="gimp_hwb_to_rgb ()">gimp_hwb_to_rgb</a> (<a
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
75
>gdouble</a> whiteness,
77
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
78
>gdouble</a> blackness,
65
79
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
66
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv-int" title="gimp_rgb_to_hsv_int ()">gimp_rgb_to_hsv_int</a> (gint *red,
69
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb-int" title="gimp_hsv_to_rgb_int ()">gimp_hsv_to_rgb_int</a> (gint *hue,
72
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsl-int" title="gimp_rgb_to_hsl_int ()">gimp_rgb_to_hsl_int</a> (gint *red,
75
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-cmyk-int" title="gimp_rgb_to_cmyk_int ()">gimp_rgb_to_cmyk_int</a> (gint *red,
79
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-cmyk-to-rgb-int" title="gimp_cmyk_to_rgb_int ()">gimp_cmyk_to_rgb_int</a> (gint *cyan,
83
gint <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-l-int" title="gimp_rgb_to_l_int ()">gimp_rgb_to_l_int</a> (gint red,
86
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsl-to-rgb-int" title="gimp_hsl_to_rgb_int ()">gimp_hsl_to_rgb_int</a> (gint *hue,
89
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv4" title="gimp_rgb_to_hsv4 ()">gimp_rgb_to_hsv4</a> (const guchar *rgb,
93
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb4" title="gimp_hsv_to_rgb4 ()">gimp_hsv_to_rgb4</a> (guchar *rgb,
80
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv-int" title="gimp_rgb_to_hsv_int ()">gimp_rgb_to_hsv_int</a> (<a
81
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
84
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
87
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
89
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb-int" title="gimp_hsv_to_rgb_int ()">gimp_hsv_to_rgb_int</a> (<a
90
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
93
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
94
>gint</a> *saturation,
96
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
98
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsl-int" title="gimp_rgb_to_hsl_int ()">gimp_rgb_to_hsl_int</a> (<a
99
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
102
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
105
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
107
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-cmyk-int" title="gimp_rgb_to_cmyk_int ()">gimp_rgb_to_cmyk_int</a> (<a
108
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
111
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
114
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
117
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
119
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-cmyk-to-rgb-int" title="gimp_cmyk_to_rgb_int ()">gimp_cmyk_to_rgb_int</a> (<a
120
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
123
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
126
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
129
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
132
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
133
>gint</a> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-l-int" title="gimp_rgb_to_l_int ()">gimp_rgb_to_l_int</a> (<a
134
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
137
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
140
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
142
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsl-to-rgb-int" title="gimp_hsl_to_rgb_int ()">gimp_hsl_to_rgb_int</a> (<a
143
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
146
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
147
>gint</a> *saturation,
149
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
150
>gint</a> *lightness);
151
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv4" title="gimp_rgb_to_hsv4 ()">gimp_rgb_to_hsv4</a> (const <a
152
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
155
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
158
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
159
>gdouble</a> *saturation,
161
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
162
>gdouble</a> *value);
163
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb4" title="gimp_hsv_to_rgb4 ()">gimp_hsv_to_rgb4</a> (<a
164
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
167
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
170
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
171
>gdouble</a> saturation,
173
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
99
177
<div class="refsect1" lang="en">
560
686
<div class="refsect2" lang="en">
561
687
<a name="gimp-rgb-to-l-int"></a><h3>gimp_rgb_to_l_int ()</h3>
562
<pre class="programlisting">gint gimp_rgb_to_l_int (gint red,
688
<pre class="programlisting"><a
689
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
690
>gint</a> gimp_rgb_to_l_int (<a
691
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
694
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
697
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
698
>gint</a> blue);</pre>
566
700
Calculates the lightness value of an RGB triplet with the formula
567
701
L = (max(R, G, B) + min (R, G, B)) / 2</p>
598
732
<div class="refsect2" lang="en">
599
733
<a name="gimp-hsl-to-rgb-int"></a><h3>gimp_hsl_to_rgb_int ()</h3>
600
<pre class="programlisting">void gimp_hsl_to_rgb_int (gint *hue,
602
gint *lightness);</pre>
734
<pre class="programlisting">void gimp_hsl_to_rgb_int (<a
735
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
738
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
739
>gint</a> *saturation,
741
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
742
>gint</a> *lightness);</pre>
604
744
The arguments are pointers to int, with the values pointed to in the
605
745
following ranges: H [0, 360], L [0, 255], S [0, 255].