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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-10-10 00:13:42 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20081010001342-uja9qine9uybggd9
Tags: 2.6.1-1ubuntu1
* Sync new bugfix version on debian (lp: #280345, #280848)
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch:
  - updated some strings for ubuntu
* debian/rules:
  - updated translation templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
void                <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsl" title="gimp_rgb_to_hsl ()">gimp_rgb_to_hsl</a>                     (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
48
48
                                                         <a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="GimpHSL">GimpHSL</a> *hsl);
49
49
void                <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-cmyk" title="gimp_rgb_to_cmyk ()">gimp_rgb_to_cmyk</a>                    (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
50
 
                                                         gdouble pullout,
 
50
                                                         <a
 
51
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
52
>gdouble</a> pullout,
51
53
                                                         <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk);
52
54
void                <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb" title="gimp_hsv_to_rgb ()">gimp_hsv_to_rgb</a>                     (const <a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a> *hsv,
53
55
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
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,
59
 
                                                         gdouble *hue,
60
 
                                                         gdouble *whiteness,
61
 
                                                         gdouble *blackness);
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,
63
 
                                                         gdouble whiteness,
64
 
                                                         gdouble blackness,
 
61
                                                         <a
 
62
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
63
>gdouble</a> *hue,
 
64
                                                         <a
 
65
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
66
>gdouble</a> *whiteness,
 
67
                                                         <a
 
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"
 
72
>gdouble</a> hue,
 
73
                                                         <a
 
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
75
>gdouble</a> whiteness,
 
76
                                                         <a
 
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,
67
 
                                                         gint *green,
68
 
                                                         gint *blue);
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,
70
 
                                                         gint *saturation,
71
 
                                                         gint *value);
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,
73
 
                                                         gint *green,
74
 
                                                         gint *blue);
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,
76
 
                                                         gint *green,
77
 
                                                         gint *blue,
78
 
                                                         gint *pullout);
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,
80
 
                                                         gint *magenta,
81
 
                                                         gint *yellow,
82
 
                                                         gint *black);
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,
84
 
                                                         gint green,
85
 
                                                         gint blue);
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,
87
 
                                                         gint *saturation,
88
 
                                                         gint *lightness);
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,
90
 
                                                         gdouble *hue,
91
 
                                                         gdouble *saturation,
92
 
                                                         gdouble *value);
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,
94
 
                                                         gdouble hue,
95
 
                                                         gdouble saturation,
96
 
                                                         gdouble value);
 
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"
 
82
>gint</a> *red,
 
83
                                                         <a
 
84
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
85
>gint</a> *green,
 
86
                                                         <a
 
87
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
88
>gint</a> *blue);
 
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"
 
91
>gint</a> *hue,
 
92
                                                         <a
 
93
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
94
>gint</a> *saturation,
 
95
                                                         <a
 
96
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
97
>gint</a> *value);
 
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"
 
100
>gint</a> *red,
 
101
                                                         <a
 
102
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
103
>gint</a> *green,
 
104
                                                         <a
 
105
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
106
>gint</a> *blue);
 
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"
 
109
>gint</a> *red,
 
110
                                                         <a
 
111
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
112
>gint</a> *green,
 
113
                                                         <a
 
114
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
115
>gint</a> *blue,
 
116
                                                         <a
 
117
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
118
>gint</a> *pullout);
 
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"
 
121
>gint</a> *cyan,
 
122
                                                         <a
 
123
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
124
>gint</a> *magenta,
 
125
                                                         <a
 
126
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
127
>gint</a> *yellow,
 
128
                                                         <a
 
129
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
130
>gint</a> *black);
 
131
<a
 
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"
 
135
>gint</a> red,
 
136
                                                         <a
 
137
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
138
>gint</a> green,
 
139
                                                         <a
 
140
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
141
>gint</a> blue);
 
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"
 
144
>gint</a> *hue,
 
145
                                                         <a
 
146
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
147
>gint</a> *saturation,
 
148
                                                         <a
 
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"
 
153
>guchar</a> *rgb,
 
154
                                                         <a
 
155
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
156
>gdouble</a> *hue,
 
157
                                                         <a
 
158
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
159
>gdouble</a> *saturation,
 
160
                                                         <a
 
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"
 
165
>guchar</a> *rgb,
 
166
                                                         <a
 
167
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
168
>gdouble</a> hue,
 
169
                                                         <a
 
170
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
171
>gdouble</a> saturation,
 
172
                                                         <a
 
173
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
174
>gdouble</a> value);
97
175
</pre>
98
176
</div>
99
177
<div class="refsect1" lang="en">
164
242
<div class="refsect2" lang="en">
165
243
<a name="gimp-rgb-to-cmyk"></a><h3>gimp_rgb_to_cmyk ()</h3>
166
244
<pre class="programlisting">void                gimp_rgb_to_cmyk                    (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
167
 
                                                         gdouble pullout,
 
245
                                                         <a
 
246
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
247
>gdouble</a> pullout,
168
248
                                                         <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk);</pre>
169
249
<p>
170
250
Does a naive conversion from RGB to CMYK colorspace. A simple
280
360
<div class="refsect2" lang="en">
281
361
<a name="gimp-rgb-to-hwb"></a><h3>gimp_rgb_to_hwb ()</h3>
282
362
<pre class="programlisting">void                gimp_rgb_to_hwb                     (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
283
 
                                                         gdouble *hue,
284
 
                                                         gdouble *whiteness,
285
 
                                                         gdouble *blackness);</pre>
 
363
                                                         <a
 
364
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
365
>gdouble</a> *hue,
 
366
                                                         <a
 
367
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
368
>gdouble</a> *whiteness,
 
369
                                                         <a
 
370
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
371
>gdouble</a> *blackness);</pre>
286
372
<p>
287
373
Theoretically, hue 0 (pure red) is identical to hue 6 in these transforms.
288
374
Pure red always maps to 6 in this implementation. Therefore UNDEFINED can
324
410
<hr>
325
411
<div class="refsect2" lang="en">
326
412
<a name="gimp-hwb-to-rgb"></a><h3>gimp_hwb_to_rgb ()</h3>
327
 
<pre class="programlisting">void                gimp_hwb_to_rgb                     (gdouble hue,
328
 
                                                         gdouble whiteness,
329
 
                                                         gdouble blackness,
 
413
<pre class="programlisting">void                gimp_hwb_to_rgb                     (<a
 
414
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
415
>gdouble</a> hue,
 
416
                                                         <a
 
417
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
418
>gdouble</a> whiteness,
 
419
                                                         <a
 
420
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
421
>gdouble</a> blackness,
330
422
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
331
423
<p>
332
424
H is defined in the range [0, 6] or UNDEFINED, B and W are both in the
363
455
<hr>
364
456
<div class="refsect2" lang="en">
365
457
<a name="gimp-rgb-to-hsv-int"></a><h3>gimp_rgb_to_hsv_int ()</h3>
366
 
<pre class="programlisting">void                gimp_rgb_to_hsv_int                 (gint *red,
367
 
                                                         gint *green,
368
 
                                                         gint *blue);</pre>
 
458
<pre class="programlisting">void                gimp_rgb_to_hsv_int                 (<a
 
459
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
460
>gint</a> *red,
 
461
                                                         <a
 
462
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
463
>gint</a> *green,
 
464
                                                         <a
 
465
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
466
>gint</a> *blue);</pre>
369
467
<p>
370
468
The arguments are pointers to int representing channel values in
371
469
the RGB colorspace, and the values pointed to are all in the range
402
500
<hr>
403
501
<div class="refsect2" lang="en">
404
502
<a name="gimp-hsv-to-rgb-int"></a><h3>gimp_hsv_to_rgb_int ()</h3>
405
 
<pre class="programlisting">void                gimp_hsv_to_rgb_int                 (gint *hue,
406
 
                                                         gint *saturation,
407
 
                                                         gint *value);</pre>
 
503
<pre class="programlisting">void                gimp_hsv_to_rgb_int                 (<a
 
504
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
505
>gint</a> *hue,
 
506
                                                         <a
 
507
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
508
>gint</a> *saturation,
 
509
                                                         <a
 
510
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
511
>gint</a> *value);</pre>
408
512
<p>
409
513
The arguments are pointers to int, with the values pointed to in the
410
514
following ranges:  H [0, 360], S [0, 255], V [0, 255].
439
543
<hr>
440
544
<div class="refsect2" lang="en">
441
545
<a name="gimp-rgb-to-hsl-int"></a><h3>gimp_rgb_to_hsl_int ()</h3>
442
 
<pre class="programlisting">void                gimp_rgb_to_hsl_int                 (gint *red,
443
 
                                                         gint *green,
444
 
                                                         gint *blue);</pre>
 
546
<pre class="programlisting">void                gimp_rgb_to_hsl_int                 (<a
 
547
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
548
>gint</a> *red,
 
549
                                                         <a
 
550
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
551
>gint</a> *green,
 
552
                                                         <a
 
553
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
554
>gint</a> *blue);</pre>
445
555
<p>
446
556
The arguments are pointers to int representing channel values in the
447
557
RGB colorspace, and the values pointed to are all in the range [0, 255].
477
587
<hr>
478
588
<div class="refsect2" lang="en">
479
589
<a name="gimp-rgb-to-cmyk-int"></a><h3>gimp_rgb_to_cmyk_int ()</h3>
480
 
<pre class="programlisting">void                gimp_rgb_to_cmyk_int                (gint *red,
481
 
                                                         gint *green,
482
 
                                                         gint *blue,
483
 
                                                         gint *pullout);</pre>
 
590
<pre class="programlisting">void                gimp_rgb_to_cmyk_int                (<a
 
591
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
592
>gint</a> *red,
 
593
                                                         <a
 
594
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
595
>gint</a> *green,
 
596
                                                         <a
 
597
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
598
>gint</a> *blue,
 
599
                                                         <a
 
600
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
601
>gint</a> *pullout);</pre>
484
602
<p>
485
603
Does a naive conversion from RGB to CMYK colorspace. A simple
486
604
formula that doesn't take any color-profiles into account is used.
520
638
<hr>
521
639
<div class="refsect2" lang="en">
522
640
<a name="gimp-cmyk-to-rgb-int"></a><h3>gimp_cmyk_to_rgb_int ()</h3>
523
 
<pre class="programlisting">void                gimp_cmyk_to_rgb_int                (gint *cyan,
524
 
                                                         gint *magenta,
525
 
                                                         gint *yellow,
526
 
                                                         gint *black);</pre>
 
641
<pre class="programlisting">void                gimp_cmyk_to_rgb_int                (<a
 
642
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
643
>gint</a> *cyan,
 
644
                                                         <a
 
645
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
646
>gint</a> *magenta,
 
647
                                                         <a
 
648
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
649
>gint</a> *yellow,
 
650
                                                         <a
 
651
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
652
>gint</a> *black);</pre>
527
653
<p>
528
654
Does a naive conversion from CMYK to RGB colorspace. A simple
529
655
formula that doesn't take any color-profiles into account is used.</p>
559
685
<hr>
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,
563
 
                                                         gint green,
564
 
                                                         gint blue);</pre>
 
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"
 
692
>gint</a> red,
 
693
                                                         <a
 
694
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
695
>gint</a> green,
 
696
                                                         <a
 
697
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
698
>gint</a> blue);</pre>
565
699
<p>
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>
597
731
<hr>
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,
601
 
                                                         gint *saturation,
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"
 
736
>gint</a> *hue,
 
737
                                                         <a
 
738
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
739
>gint</a> *saturation,
 
740
                                                         <a
 
741
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
 
742
>gint</a> *lightness);</pre>
603
743
<p>
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].
634
774
<hr>
635
775
<div class="refsect2" lang="en">
636
776
<a name="gimp-rgb-to-hsv4"></a><h3>gimp_rgb_to_hsv4 ()</h3>
637
 
<pre class="programlisting">void                gimp_rgb_to_hsv4                    (const guchar *rgb,
638
 
                                                         gdouble *hue,
639
 
                                                         gdouble *saturation,
640
 
                                                         gdouble *value);</pre>
 
777
<pre class="programlisting">void                gimp_rgb_to_hsv4                    (const <a
 
778
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
 
779
>guchar</a> *rgb,
 
780
                                                         <a
 
781
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
782
>gdouble</a> *hue,
 
783
                                                         <a
 
784
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
785
>gdouble</a> *saturation,
 
786
                                                         <a
 
787
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
788
>gdouble</a> *value);</pre>
641
789
<p>
642
790
</p>
643
791
<p>
673
821
<hr>
674
822
<div class="refsect2" lang="en">
675
823
<a name="gimp-hsv-to-rgb4"></a><h3>gimp_hsv_to_rgb4 ()</h3>
676
 
<pre class="programlisting">void                gimp_hsv_to_rgb4                    (guchar *rgb,
677
 
                                                         gdouble hue,
678
 
                                                         gdouble saturation,
679
 
                                                         gdouble value);</pre>
 
824
<pre class="programlisting">void                gimp_hsv_to_rgb4                    (<a
 
825
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
 
826
>guchar</a> *rgb,
 
827
                                                         <a
 
828
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
829
>gdouble</a> hue,
 
830
                                                         <a
 
831
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
832
>gdouble</a> saturation,
 
833
                                                         <a
 
834
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
 
835
>gdouble</a> value);</pre>
680
836
<p>
681
837
</p>
682
838
<p>