~ubuntu-branches/ubuntu/trusty/gimp/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2009-08-14 09:57:17 UTC
  • mto: (1.1.21 upstream) (0.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: james.westby@ubuntu.com-20090814095717-37dh2xqy5t0rurpk
Import upstream version 2.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpRGB</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
 
<link rel="start" href="index.html" title="GIMP Color Library Reference Manual">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
 
7
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
8
8
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
9
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.10 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpcolor.html" title="Part I. GIMP Color Library">
14
14
<link rel="index" href="libgimpcolor-index.html" title="Index">
26
26
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
27
27
<td><a accesskey="n" href="libgimpcolor-GimpHSV.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
28
</tr>
29
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpcolor-GimpRGB.synopsis" class="shortcut">Top</a>
30
 
                   | 
31
 
                  <a href="#libgimpcolor-GimpRGB.description" class="shortcut">Description</a></nobr></td></tr>
 
29
<tr><td colspan="5" class="shortcuts">
 
30
<a href="#libgimpcolor-GimpRGB.synopsis" class="shortcut">Top</a>
 
31
                 | 
 
32
                <a href="#libgimpcolor-GimpRGB.description" class="shortcut">Description</a>
 
33
</td></tr>
32
34
</table>
33
 
<div class="refentry" lang="en">
 
35
<div class="refentry" title="GimpRGB">
34
36
<a name="libgimpcolor-GimpRGB"></a><div class="titlepage"></div>
35
37
<div class="refnamediv"><table width="100%"><tr>
36
38
<td valign="top">
39
41
</td>
40
42
<td valign="top" align="right"></td>
41
43
</tr></table></div>
42
 
<div class="refsynopsisdiv">
 
44
<div class="refsynopsisdiv" title="Synopsis">
43
45
<a name="libgimpcolor-GimpRGB.synopsis"></a><h2>Synopsis</h2>
44
46
<pre class="synopsis">
45
47
                    <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a>;
209
211
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
210
212
>gdouble</a>             <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,
211
213
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
212
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE:CAPS" title="GIMP_RGB_LUMINANCE()">GIMP_RGB_LUMINANCE</a>                  (r,g,b)
213
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-RED:CAPS" title="GIMP_RGB_LUMINANCE_RED">GIMP_RGB_LUMINANCE_RED</a>
214
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-GREEN:CAPS" title="GIMP_RGB_LUMINANCE_GREEN">GIMP_RGB_LUMINANCE_GREEN</a>
215
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-BLUE:CAPS" title="GIMP_RGB_LUMINANCE_BLUE">GIMP_RGB_LUMINANCE_BLUE</a>
216
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY:CAPS" title="GIMP_RGB_INTENSITY()">GIMP_RGB_INTENSITY</a>                  (r,g,b)
217
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-RED:CAPS" title="GIMP_RGB_INTENSITY_RED">GIMP_RGB_INTENSITY_RED</a>
218
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-GREEN:CAPS" title="GIMP_RGB_INTENSITY_GREEN">GIMP_RGB_INTENSITY_GREEN</a>
219
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-BLUE:CAPS" title="GIMP_RGB_INTENSITY_BLUE">GIMP_RGB_INTENSITY_BLUE</a>
220
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS" title="GIMP_TYPE_RGB">GIMP_TYPE_RGB</a>
221
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-PARAM-RGB:CAPS" title="GIMP_TYPE_PARAM_RGB">GIMP_TYPE_PARAM_RGB</a>
 
214
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE--CAPS" title="GIMP_RGB_LUMINANCE()">GIMP_RGB_LUMINANCE</a>                  (r,g,b)
 
215
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-RED--CAPS" title="GIMP_RGB_LUMINANCE_RED">GIMP_RGB_LUMINANCE_RED</a>
 
216
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-GREEN--CAPS" title="GIMP_RGB_LUMINANCE_GREEN">GIMP_RGB_LUMINANCE_GREEN</a>
 
217
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-BLUE--CAPS" title="GIMP_RGB_LUMINANCE_BLUE">GIMP_RGB_LUMINANCE_BLUE</a>
 
218
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY--CAPS" title="GIMP_RGB_INTENSITY()">GIMP_RGB_INTENSITY</a>                  (r,g,b)
 
219
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-RED--CAPS" title="GIMP_RGB_INTENSITY_RED">GIMP_RGB_INTENSITY_RED</a>
 
220
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-GREEN--CAPS" title="GIMP_RGB_INTENSITY_GREEN">GIMP_RGB_INTENSITY_GREEN</a>
 
221
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-BLUE--CAPS" title="GIMP_RGB_INTENSITY_BLUE">GIMP_RGB_INTENSITY_BLUE</a>
 
222
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB--CAPS" title="GIMP_TYPE_RGB">GIMP_TYPE_RGB</a>
 
223
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-PARAM-RGB--CAPS" title="GIMP_TYPE_PARAM_RGB">GIMP_TYPE_PARAM_RGB</a>
222
224
<a
223
225
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
224
 
>GParamSpec</a>*         <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb" title="gimp_param_spec_rgb ()">gimp_param_spec_rgb</a>                 (const <a
 
226
>GParamSpec</a> *        <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb" title="gimp_param_spec_rgb ()">gimp_param_spec_rgb</a>                 (const <a
225
227
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
226
228
>gchar</a> *name,
227
229
                                                         const <a
242
244
>gboolean</a>            <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>       (<a
243
245
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
244
246
>GParamSpec</a> *pspec);
245
 
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-VALUE-HOLDS-RGB:CAPS" title="GIMP_VALUE_HOLDS_RGB()">GIMP_VALUE_HOLDS_RGB</a>                (value)
 
247
#define             <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-VALUE-HOLDS-RGB--CAPS" title="GIMP_VALUE_HOLDS_RGB()">GIMP_VALUE_HOLDS_RGB</a>                (value)
246
248
void                <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb" title="gimp_value_get_rgb ()">gimp_value_get_rgb</a>                  (const <a
247
249
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
248
250
>GValue</a> *value,
253
255
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
254
256
</pre>
255
257
</div>
256
 
<div class="refsect1" lang="en">
 
258
<div class="refsect1" title="Description">
257
259
<a name="libgimpcolor-GimpRGB.description"></a><h2>Description</h2>
258
260
<p>
259
261
Definitions and Functions relating to RGB colors.
260
262
</p>
261
263
</div>
262
 
<div class="refsect1" lang="en">
 
264
<div class="refsect1" title="Details">
263
265
<a name="libgimpcolor-GimpRGB.details"></a><h2>Details</h2>
264
 
<div class="refsect2" lang="en">
 
266
<div class="refsect2" title="GimpRGB">
265
267
<a name="GimpRGB"></a><h3>GimpRGB</h3>
266
268
<pre class="programlisting">typedef struct {
267
269
  gdouble r, g, b, a;
268
270
} GimpRGB;
269
271
</pre>
270
272
<p>
271
 
 
272
273
</p>
273
274
</div>
274
275
<hr>
275
 
<div class="refsect2" lang="en">
 
276
<div class="refsect2" title="enum GimpRGBCompositeMode">
276
277
<a name="GimpRGBCompositeMode"></a><h3>enum GimpRGBCompositeMode</h3>
277
278
<pre class="programlisting">typedef enum
278
279
{
282
283
} GimpRGBCompositeMode;
283
284
</pre>
284
285
<p>
285
 
 
286
286
</p>
287
287
</div>
288
288
<hr>
289
 
<div class="refsect2" lang="en">
 
289
<div class="refsect2" title="gimp_rgb_set ()">
290
290
<a name="gimp-rgb-set"></a><h3>gimp_rgb_set ()</h3>
291
291
<pre class="programlisting">void                gimp_rgb_set                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
292
292
                                                         <a
304
304
and 1.0 but there is no check to enforce this and the values are
305
305
set exactly as they are passed in.</p>
306
306
<p>
307
 
 
308
307
</p>
309
308
<div class="variablelist"><table border="0">
310
309
<col align="left" valign="top">
333
332
</table></div>
334
333
</div>
335
334
<hr>
336
 
<div class="refsect2" lang="en">
 
335
<div class="refsect2" title="gimp_rgb_set_alpha ()">
337
336
<a name="gimp-rgb-set-alpha"></a><h3>gimp_rgb_set_alpha ()</h3>
338
337
<pre class="programlisting">void                gimp_rgb_set_alpha                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
339
338
                                                         <a
342
341
<p>
343
342
Sets the alpha component of <em class="parameter"><code>rgb</code></em> and leaves the RGB components unchanged.</p>
344
343
<p>
345
 
 
346
344
</p>
347
345
<div class="variablelist"><table border="0">
348
346
<col align="left" valign="top">
361
359
</table></div>
362
360
</div>
363
361
<hr>
364
 
<div class="refsect2" lang="en">
 
362
<div class="refsect2" title="gimp_rgb_set_uchar ()">
365
363
<a name="gimp-rgb-set-uchar"></a><h3>gimp_rgb_set_uchar ()</h3>
366
364
<pre class="programlisting">void                gimp_rgb_set_uchar                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
367
365
                                                         <a
377
375
Sets the red, green and blue components of <em class="parameter"><code>rgb</code></em> from 8bit values
378
376
(0 to 255) and leaves the alpha component unchanged.</p>
379
377
<p>
380
 
 
381
378
</p>
382
379
<div class="variablelist"><table border="0">
383
380
<col align="left" valign="top">
406
403
</table></div>
407
404
</div>
408
405
<hr>
409
 
<div class="refsect2" lang="en">
 
406
<div class="refsect2" title="gimp_rgb_get_uchar ()">
410
407
<a name="gimp-rgb-get-uchar"></a><h3>gimp_rgb_get_uchar ()</h3>
411
408
<pre class="programlisting">void                gimp_rgb_get_uchar                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
412
409
                                                         <a
419
416
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
420
417
>guchar</a> *blue);</pre>
421
418
<p>
422
 
 
423
419
</p>
424
420
<div class="variablelist"><table border="0">
425
421
<col align="left" valign="top">
442
438
<tr>
443
439
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
444
440
<td>
445
 
 
446
 
 
447
441
</td>
448
442
</tr>
449
443
</tbody>
450
444
</table></div>
451
445
</div>
452
446
<hr>
453
 
<div class="refsect2" lang="en">
 
447
<div class="refsect2" title="gimp_rgb_parse_name ()">
454
448
<a name="gimp-rgb-parse-name"></a><h3>gimp_rgb_parse_name ()</h3>
455
449
<pre class="programlisting"><a
456
450
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
467
461
<p>
468
462
This function does not touch the alpha component of <em class="parameter"><code>rgb</code></em>.</p>
469
463
<p>
470
 
 
471
464
</p>
472
465
<div class="variablelist"><table border="0">
473
466
<col align="left" valign="top">
490
483
<tr>
491
484
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
492
485
<td> <a
493
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
 
486
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
494
487
><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
495
488
              been set, <a
496
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"
 
489
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
497
490
><code class="literal">FALSE</code></a> otherwise
498
491
 
499
492
</td>
500
493
</tr>
501
494
</tbody>
502
495
</table></div>
503
 
<p class="since">Since  GIMP 2.2
504
 
</p>
 
496
<p class="since">Since GIMP 2.2</p>
505
497
</div>
506
498
<hr>
507
 
<div class="refsect2" lang="en">
 
499
<div class="refsect2" title="gimp_rgb_parse_hex ()">
508
500
<a name="gimp-rgb-parse-hex"></a><h3>gimp_rgb_parse_hex ()</h3>
509
501
<pre class="programlisting"><a
510
502
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
522
514
<p>
523
515
This function does not touch the alpha component of <em class="parameter"><code>rgb</code></em>.</p>
524
516
<p>
525
 
 
526
517
</p>
527
518
<div class="variablelist"><table border="0">
528
519
<col align="left" valign="top">
545
536
<tr>
546
537
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
547
538
<td> <a
548
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
 
539
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
549
540
><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
550
541
              been set, <a
551
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"
 
542
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
552
543
><code class="literal">FALSE</code></a> otherwise
553
544
 
554
545
</td>
555
546
</tr>
556
547
</tbody>
557
548
</table></div>
558
 
<p class="since">Since  GIMP 2.2
559
 
</p>
 
549
<p class="since">Since GIMP 2.2</p>
560
550
</div>
561
551
<hr>
562
 
<div class="refsect2" lang="en">
 
552
<div class="refsect2" title="gimp_rgb_parse_css ()">
563
553
<a name="gimp-rgb-parse-css"></a><h3>gimp_rgb_parse_css ()</h3>
564
554
<pre class="programlisting"><a
565
555
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
581
571
<p>
582
572
This function does not touch the alpha component of <em class="parameter"><code>rgb</code></em>.</p>
583
573
<p>
584
 
 
585
574
</p>
586
575
<div class="variablelist"><table border="0">
587
576
<col align="left" valign="top">
604
593
<tr>
605
594
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
606
595
<td> <a
607
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
 
596
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
608
597
><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
609
598
              set, <a
610
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"
 
599
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
611
600
><code class="literal">FALSE</code></a> otherwise
612
601
 
613
602
</td>
614
603
</tr>
615
604
</tbody>
616
605
</table></div>
617
 
<p class="since">Since  GIMP 2.2
618
 
</p>
 
606
<p class="since">Since GIMP 2.2</p>
619
607
</div>
620
608
<hr>
621
 
<div class="refsect2" lang="en">
 
609
<div class="refsect2" title="gimp_rgb_list_names ()">
622
610
<a name="gimp-rgb-list-names"></a><h3>gimp_rgb_list_names ()</h3>
623
611
<pre class="programlisting"><a
624
612
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
637
625
><code class="function">g_free()</code></a> on the
638
626
<em class="parameter"><code>names</code></em> and <em class="parameter"><code>colors</code></em> arrays when they are not any longer needed.</p>
639
627
<p>
640
 
 
641
628
</p>
642
629
<div class="variablelist"><table border="0">
643
630
<col align="left" valign="top">
661
648
</tr>
662
649
</tbody>
663
650
</table></div>
664
 
<p class="since">Since  GIMP 2.2
665
 
</p>
 
651
<p class="since">Since GIMP 2.2</p>
666
652
</div>
667
653
<hr>
668
 
<div class="refsect2" lang="en">
 
654
<div class="refsect2" title="gimp_rgb_add ()">
669
655
<a name="gimp-rgb-add"></a><h3>gimp_rgb_add ()</h3>
670
656
<pre class="programlisting">void                gimp_rgb_add                        (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
671
657
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
672
658
<p>
673
 
 
674
659
</p>
675
660
<div class="variablelist"><table border="0">
676
661
<col align="left" valign="top">
683
668
<tr>
684
669
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
685
670
<td>
686
 
 
687
 
 
688
671
</td>
689
672
</tr>
690
673
</tbody>
691
674
</table></div>
692
675
</div>
693
676
<hr>
694
 
<div class="refsect2" lang="en">
 
677
<div class="refsect2" title="gimp_rgb_subtract ()">
695
678
<a name="gimp-rgb-subtract"></a><h3>gimp_rgb_subtract ()</h3>
696
679
<pre class="programlisting">void                gimp_rgb_subtract                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
697
680
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
698
681
<p>
699
 
 
700
682
</p>
701
683
<div class="variablelist"><table border="0">
702
684
<col align="left" valign="top">
709
691
<tr>
710
692
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
711
693
<td>
712
 
 
713
 
 
714
694
</td>
715
695
</tr>
716
696
</tbody>
717
697
</table></div>
718
698
</div>
719
699
<hr>
720
 
<div class="refsect2" lang="en">
 
700
<div class="refsect2" title="gimp_rgb_multiply ()">
721
701
<a name="gimp-rgb-multiply"></a><h3>gimp_rgb_multiply ()</h3>
722
702
<pre class="programlisting">void                gimp_rgb_multiply                   (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
723
703
                                                         <a
724
704
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
725
705
>gdouble</a> factor);</pre>
726
706
<p>
727
 
 
728
707
</p>
729
708
<div class="variablelist"><table border="0">
730
709
<col align="left" valign="top">
737
716
<tr>
738
717
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
739
718
<td>
740
 
 
741
 
 
742
719
</td>
743
720
</tr>
744
721
</tbody>
745
722
</table></div>
746
723
</div>
747
724
<hr>
748
 
<div class="refsect2" lang="en">
 
725
<div class="refsect2" title="gimp_rgb_distance ()">
749
726
<a name="gimp-rgb-distance"></a><h3>gimp_rgb_distance ()</h3>
750
727
<pre class="programlisting"><a
751
728
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
752
729
>gdouble</a>             gimp_rgb_distance                   (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
753
730
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
754
731
<p>
755
 
 
756
732
</p>
757
733
<div class="variablelist"><table border="0">
758
734
<col align="left" valign="top">
770
746
<tr>
771
747
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
772
748
<td>
773
 
 
774
 
 
775
749
</td>
776
750
</tr>
777
751
</tbody>
778
752
</table></div>
779
753
</div>
780
754
<hr>
781
 
<div class="refsect2" lang="en">
 
755
<div class="refsect2" title="gimp_rgb_max ()">
782
756
<a name="gimp-rgb-max"></a><h3>gimp_rgb_max ()</h3>
783
757
<pre class="programlisting"><a
784
758
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
785
759
>gdouble</a>             gimp_rgb_max                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
786
760
<p>
787
 
 
788
761
</p>
789
762
<div class="variablelist"><table border="0">
790
763
<col align="left" valign="top">
797
770
<tr>
798
771
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
799
772
<td>
800
 
 
801
 
 
802
773
</td>
803
774
</tr>
804
775
</tbody>
805
776
</table></div>
806
777
</div>
807
778
<hr>
808
 
<div class="refsect2" lang="en">
 
779
<div class="refsect2" title="gimp_rgb_min ()">
809
780
<a name="gimp-rgb-min"></a><h3>gimp_rgb_min ()</h3>
810
781
<pre class="programlisting"><a
811
782
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
812
783
>gdouble</a>             gimp_rgb_min                        (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
813
784
<p>
814
 
 
815
785
</p>
816
786
<div class="variablelist"><table border="0">
817
787
<col align="left" valign="top">
824
794
<tr>
825
795
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
826
796
<td>
827
 
 
828
 
 
829
797
</td>
830
798
</tr>
831
799
</tbody>
832
800
</table></div>
833
801
</div>
834
802
<hr>
835
 
<div class="refsect2" lang="en">
 
803
<div class="refsect2" title="gimp_rgb_clamp ()">
836
804
<a name="gimp-rgb-clamp"></a><h3>gimp_rgb_clamp ()</h3>
837
805
<pre class="programlisting">void                gimp_rgb_clamp                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
838
806
<p>
839
 
 
840
807
</p>
841
808
<div class="variablelist"><table border="0">
842
809
<col align="left" valign="top">
843
810
<tbody><tr>
844
811
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
845
812
<td>
846
 
 
847
 
 
848
813
</td>
849
814
</tr></tbody>
850
815
</table></div>
851
816
</div>
852
817
<hr>
853
 
<div class="refsect2" lang="en">
 
818
<div class="refsect2" title="gimp_rgb_gamma ()">
854
819
<a name="gimp-rgb-gamma"></a><h3>gimp_rgb_gamma ()</h3>
855
820
<pre class="programlisting">void                gimp_rgb_gamma                      (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
856
821
                                                         <a
857
822
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
858
823
>gdouble</a> gamma);</pre>
859
824
<p>
860
 
 
861
825
</p>
862
826
<div class="variablelist"><table border="0">
863
827
<col align="left" valign="top">
870
834
<tr>
871
835
<td><p><span class="term"><em class="parameter"><code>gamma</code></em> :</span></p></td>
872
836
<td>
873
 
 
874
 
 
875
837
</td>
876
838
</tr>
877
839
</tbody>
878
840
</table></div>
879
841
</div>
880
842
<hr>
881
 
<div class="refsect2" lang="en">
 
843
<div class="refsect2" title="gimp_rgb_luminance ()">
882
844
<a name="gimp-rgb-luminance"></a><h3>gimp_rgb_luminance ()</h3>
883
845
<pre class="programlisting"><a
884
846
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
886
848
<p>
887
849
</p>
888
850
<p>
889
 
 
890
851
</p>
891
852
<div class="variablelist"><table border="0">
892
853
<col align="left" valign="top">
904
865
</tr>
905
866
</tbody>
906
867
</table></div>
907
 
<p class="since">Since  GIMP 2.4
908
 
</p>
 
868
<p class="since">Since GIMP 2.4</p>
909
869
</div>
910
870
<hr>
911
 
<div class="refsect2" lang="en">
 
871
<div class="refsect2" title="gimp_rgb_luminance_uchar ()">
912
872
<a name="gimp-rgb-luminance-uchar"></a><h3>gimp_rgb_luminance_uchar ()</h3>
913
873
<pre class="programlisting"><a
914
874
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
916
876
<p>
917
877
</p>
918
878
<p>
919
 
 
920
879
</p>
921
880
<div class="variablelist"><table border="0">
922
881
<col align="left" valign="top">
934
893
</tr>
935
894
</tbody>
936
895
</table></div>
937
 
<p class="since">Since  GIMP 2.4
938
 
</p>
 
896
<p class="since">Since GIMP 2.4</p>
939
897
</div>
940
898
<hr>
941
 
<div class="refsect2" lang="en">
 
899
<div class="refsect2" title="gimp_rgb_intensity ()">
942
900
<a name="gimp-rgb-intensity"></a><h3>gimp_rgb_intensity ()</h3>
943
901
<pre class="programlisting"><a
944
902
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
945
903
>gdouble</a>             gimp_rgb_intensity                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
946
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
904
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
947
905
<h3 class="title">Warning</h3>
948
906
<p><code class="literal">gimp_rgb_intensity</code> is deprecated and should not be used in newly-written code.</p>
949
907
</div>
950
908
<p>
951
909
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>
952
910
<p>
953
 
 
954
911
</p>
955
912
<div class="variablelist"><table border="0">
956
913
<col align="left" valign="top">
969
926
</table></div>
970
927
</div>
971
928
<hr>
972
 
<div class="refsect2" lang="en">
 
929
<div class="refsect2" title="gimp_rgb_intensity_uchar ()">
973
930
<a name="gimp-rgb-intensity-uchar"></a><h3>gimp_rgb_intensity_uchar ()</h3>
974
931
<pre class="programlisting"><a
975
932
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
976
933
>guchar</a>              gimp_rgb_intensity_uchar            (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
977
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
934
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
978
935
<h3 class="title">Warning</h3>
979
936
<p><code class="literal">gimp_rgb_intensity_uchar</code> is deprecated and should not be used in newly-written code.</p>
980
937
</div>
981
938
<p>
982
939
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>
983
940
<p>
984
 
 
985
941
</p>
986
942
<div class="variablelist"><table border="0">
987
943
<col align="left" valign="top">
1000
956
</table></div>
1001
957
</div>
1002
958
<hr>
1003
 
<div class="refsect2" lang="en">
 
959
<div class="refsect2" title="gimp_rgb_composite ()">
1004
960
<a name="gimp-rgb-composite"></a><h3>gimp_rgb_composite ()</h3>
1005
961
<pre class="programlisting">void                gimp_rgb_composite                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color1,
1006
962
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color2,
1007
963
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a> mode);</pre>
1008
964
<p>
1009
 
 
1010
965
</p>
1011
966
<div class="variablelist"><table border="0">
1012
967
<col align="left" valign="top">
1024
979
<tr>
1025
980
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
1026
981
<td>
1027
 
 
1028
 
 
1029
982
</td>
1030
983
</tr>
1031
984
</tbody>
1032
985
</table></div>
1033
986
</div>
1034
987
<hr>
1035
 
<div class="refsect2" lang="en">
 
988
<div class="refsect2" title="gimp_rgba_set ()">
1036
989
<a name="gimp-rgba-set"></a><h3>gimp_rgba_set ()</h3>
1037
990
<pre class="programlisting">void                gimp_rgba_set                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
1038
991
                                                         <a
1052
1005
should be between 0.0 and 1.0 but there is no check to enforce this
1053
1006
and the values are set exactly as they are passed in.</p>
1054
1007
<p>
1055
 
 
1056
1008
</p>
1057
1009
<div class="variablelist"><table border="0">
1058
1010
<col align="left" valign="top">
1086
1038
</table></div>
1087
1039
</div>
1088
1040
<hr>
1089
 
<div class="refsect2" lang="en">
 
1041
<div class="refsect2" title="gimp_rgba_set_uchar ()">
1090
1042
<a name="gimp-rgba-set-uchar"></a><h3>gimp_rgba_set_uchar ()</h3>
1091
1043
<pre class="programlisting">void                gimp_rgba_set_uchar                 (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
1092
1044
                                                         <a
1105
1057
Sets the red, green, blue and alpha components of <em class="parameter"><code>rgb</code></em> from 8bit
1106
1058
values (0 to 255).</p>
1107
1059
<p>
1108
 
 
1109
1060
</p>
1110
1061
<div class="variablelist"><table border="0">
1111
1062
<col align="left" valign="top">
1139
1090
</table></div>
1140
1091
</div>
1141
1092
<hr>
1142
 
<div class="refsect2" lang="en">
 
1093
<div class="refsect2" title="gimp_rgba_get_uchar ()">
1143
1094
<a name="gimp-rgba-get-uchar"></a><h3>gimp_rgba_get_uchar ()</h3>
1144
1095
<pre class="programlisting">void                gimp_rgba_get_uchar                 (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
1145
1096
                                                         <a
1155
1106
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
1156
1107
>guchar</a> *alpha);</pre>
1157
1108
<p>
1158
 
 
1159
1109
</p>
1160
1110
<div class="variablelist"><table border="0">
1161
1111
<col align="left" valign="top">
1183
1133
<tr>
1184
1134
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1185
1135
<td>
1186
 
 
1187
 
 
1188
1136
</td>
1189
1137
</tr>
1190
1138
</tbody>
1191
1139
</table></div>
1192
1140
</div>
1193
1141
<hr>
1194
 
<div class="refsect2" lang="en">
 
1142
<div class="refsect2" title="gimp_rgba_parse_css ()">
1195
1143
<a name="gimp-rgba-parse-css"></a><h3>gimp_rgba_parse_css ()</h3>
1196
1144
<pre class="programlisting"><a
1197
1145
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
1211
1159
It doesn't handle the hexadecimal notation or color names because
1212
1160
they leave the alpha channel unspecified.</p>
1213
1161
<p>
1214
 
 
1215
1162
</p>
1216
1163
<div class="variablelist"><table border="0">
1217
1164
<col align="left" valign="top">
1234
1181
<tr>
1235
1182
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1236
1183
<td> <a
1237
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
 
1184
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
1238
1185
><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
1239
1186
              set, <a
1240
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"
 
1187
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
1241
1188
><code class="literal">FALSE</code></a> otherwise
1242
1189
 
1243
1190
</td>
1244
1191
</tr>
1245
1192
</tbody>
1246
1193
</table></div>
1247
 
<p class="since">Since  GIMP 2.2
1248
 
</p>
 
1194
<p class="since">Since GIMP 2.2</p>
1249
1195
</div>
1250
1196
<hr>
1251
 
<div class="refsect2" lang="en">
 
1197
<div class="refsect2" title="gimp_rgba_add ()">
1252
1198
<a name="gimp-rgba-add"></a><h3>gimp_rgba_add ()</h3>
1253
1199
<pre class="programlisting">void                gimp_rgba_add                       (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
1254
1200
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
1255
1201
<p>
1256
 
 
1257
1202
</p>
1258
1203
<div class="variablelist"><table border="0">
1259
1204
<col align="left" valign="top">
1266
1211
<tr>
1267
1212
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
1268
1213
<td>
1269
 
 
1270
 
 
1271
1214
</td>
1272
1215
</tr>
1273
1216
</tbody>
1274
1217
</table></div>
1275
1218
</div>
1276
1219
<hr>
1277
 
<div class="refsect2" lang="en">
 
1220
<div class="refsect2" title="gimp_rgba_subtract ()">
1278
1221
<a name="gimp-rgba-subtract"></a><h3>gimp_rgba_subtract ()</h3>
1279
1222
<pre class="programlisting">void                gimp_rgba_subtract                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
1280
1223
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
1281
1224
<p>
1282
 
 
1283
1225
</p>
1284
1226
<div class="variablelist"><table border="0">
1285
1227
<col align="left" valign="top">
1292
1234
<tr>
1293
1235
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
1294
1236
<td>
1295
 
 
1296
 
 
1297
1237
</td>
1298
1238
</tr>
1299
1239
</tbody>
1300
1240
</table></div>
1301
1241
</div>
1302
1242
<hr>
1303
 
<div class="refsect2" lang="en">
 
1243
<div class="refsect2" title="gimp_rgba_multiply ()">
1304
1244
<a name="gimp-rgba-multiply"></a><h3>gimp_rgba_multiply ()</h3>
1305
1245
<pre class="programlisting">void                gimp_rgba_multiply                  (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
1306
1246
                                                         <a
1307
1247
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
1308
1248
>gdouble</a> factor);</pre>
1309
1249
<p>
1310
 
 
1311
1250
</p>
1312
1251
<div class="variablelist"><table border="0">
1313
1252
<col align="left" valign="top">
1320
1259
<tr>
1321
1260
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
1322
1261
<td>
1323
 
 
1324
 
 
1325
1262
</td>
1326
1263
</tr>
1327
1264
</tbody>
1328
1265
</table></div>
1329
1266
</div>
1330
1267
<hr>
1331
 
<div class="refsect2" lang="en">
 
1268
<div class="refsect2" title="gimp_rgba_distance ()">
1332
1269
<a name="gimp-rgba-distance"></a><h3>gimp_rgba_distance ()</h3>
1333
1270
<pre class="programlisting"><a
1334
1271
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
1335
1272
>gdouble</a>             gimp_rgba_distance                  (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
1336
1273
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
1337
1274
<p>
1338
 
 
1339
1275
</p>
1340
1276
<div class="variablelist"><table border="0">
1341
1277
<col align="left" valign="top">
1353
1289
<tr>
1354
1290
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1355
1291
<td>
1356
 
 
1357
 
 
1358
1292
</td>
1359
1293
</tr>
1360
1294
</tbody>
1361
1295
</table></div>
1362
1296
</div>
1363
1297
<hr>
1364
 
<div class="refsect2" lang="en">
1365
 
<a name="GIMP-RGB-LUMINANCE:CAPS"></a><h3>GIMP_RGB_LUMINANCE()</h3>
 
1298
<div class="refsect2" title="GIMP_RGB_LUMINANCE()">
 
1299
<a name="GIMP-RGB-LUMINANCE--CAPS"></a><h3>GIMP_RGB_LUMINANCE()</h3>
1366
1300
<pre class="programlisting">#define             GIMP_RGB_LUMINANCE(r,g,b)</pre>
1367
1301
<p>
1368
 
 
1369
1302
</p>
1370
1303
<div class="variablelist"><table border="0">
1371
1304
<col align="left" valign="top">
1383
1316
<tr>
1384
1317
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
1385
1318
<td>
1386
 
 
1387
 
 
1388
1319
</td>
1389
1320
</tr>
1390
1321
</tbody>
1391
1322
</table></div>
1392
1323
</div>
1393
1324
<hr>
1394
 
<div class="refsect2" lang="en">
1395
 
<a name="GIMP-RGB-LUMINANCE-RED:CAPS"></a><h3>GIMP_RGB_LUMINANCE_RED</h3>
 
1325
<div class="refsect2" title="GIMP_RGB_LUMINANCE_RED">
 
1326
<a name="GIMP-RGB-LUMINANCE-RED--CAPS"></a><h3>GIMP_RGB_LUMINANCE_RED</h3>
1396
1327
<pre class="programlisting">#define GIMP_RGB_LUMINANCE_RED    (0.2126)
1397
1328
</pre>
1398
1329
<p>
1399
 
 
1400
1330
</p>
1401
1331
</div>
1402
1332
<hr>
1403
 
<div class="refsect2" lang="en">
1404
 
<a name="GIMP-RGB-LUMINANCE-GREEN:CAPS"></a><h3>GIMP_RGB_LUMINANCE_GREEN</h3>
 
1333
<div class="refsect2" title="GIMP_RGB_LUMINANCE_GREEN">
 
1334
<a name="GIMP-RGB-LUMINANCE-GREEN--CAPS"></a><h3>GIMP_RGB_LUMINANCE_GREEN</h3>
1405
1335
<pre class="programlisting">#define GIMP_RGB_LUMINANCE_GREEN  (0.7152)
1406
1336
</pre>
1407
1337
<p>
1408
 
 
1409
1338
</p>
1410
1339
</div>
1411
1340
<hr>
1412
 
<div class="refsect2" lang="en">
1413
 
<a name="GIMP-RGB-LUMINANCE-BLUE:CAPS"></a><h3>GIMP_RGB_LUMINANCE_BLUE</h3>
 
1341
<div class="refsect2" title="GIMP_RGB_LUMINANCE_BLUE">
 
1342
<a name="GIMP-RGB-LUMINANCE-BLUE--CAPS"></a><h3>GIMP_RGB_LUMINANCE_BLUE</h3>
1414
1343
<pre class="programlisting">#define GIMP_RGB_LUMINANCE_BLUE   (0.0722)
1415
1344
</pre>
1416
1345
<p>
1417
 
 
1418
1346
</p>
1419
1347
</div>
1420
1348
<hr>
1421
 
<div class="refsect2" lang="en">
1422
 
<a name="GIMP-RGB-INTENSITY:CAPS"></a><h3>GIMP_RGB_INTENSITY()</h3>
 
1349
<div class="refsect2" title="GIMP_RGB_INTENSITY()">
 
1350
<a name="GIMP-RGB-INTENSITY--CAPS"></a><h3>GIMP_RGB_INTENSITY()</h3>
1423
1351
<pre class="programlisting">#define             GIMP_RGB_INTENSITY(r,g,b)</pre>
1424
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
1352
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1425
1353
<h3 class="title">Warning</h3>
1426
1354
<p><code class="literal">GIMP_RGB_INTENSITY</code> is deprecated and should not be used in newly-written code.</p>
1427
1355
</div>
1445
1373
<tr>
1446
1374
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
1447
1375
<td>blue
1448
 
 
1449
 
 
1450
1376
</td>
1451
1377
</tr>
1452
1378
</tbody>
1453
1379
</table></div>
1454
1380
</div>
1455
1381
<hr>
1456
 
<div class="refsect2" lang="en">
1457
 
<a name="GIMP-RGB-INTENSITY-RED:CAPS"></a><h3>GIMP_RGB_INTENSITY_RED</h3>
 
1382
<div class="refsect2" title="GIMP_RGB_INTENSITY_RED">
 
1383
<a name="GIMP-RGB-INTENSITY-RED--CAPS"></a><h3>GIMP_RGB_INTENSITY_RED</h3>
1458
1384
<pre class="programlisting">#define GIMP_RGB_INTENSITY_RED    (0.30)
1459
1385
</pre>
1460
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
1386
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1461
1387
<h3 class="title">Warning</h3>
1462
1388
<p><code class="literal">GIMP_RGB_INTENSITY_RED</code> is deprecated and should not be used in newly-written code.</p>
1463
1389
</div>
1464
1390
<p>
1465
 
 
1466
1391
</p>
1467
1392
</div>
1468
1393
<hr>
1469
 
<div class="refsect2" lang="en">
1470
 
<a name="GIMP-RGB-INTENSITY-GREEN:CAPS"></a><h3>GIMP_RGB_INTENSITY_GREEN</h3>
 
1394
<div class="refsect2" title="GIMP_RGB_INTENSITY_GREEN">
 
1395
<a name="GIMP-RGB-INTENSITY-GREEN--CAPS"></a><h3>GIMP_RGB_INTENSITY_GREEN</h3>
1471
1396
<pre class="programlisting">#define GIMP_RGB_INTENSITY_GREEN  (0.59)
1472
1397
</pre>
1473
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
1398
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1474
1399
<h3 class="title">Warning</h3>
1475
1400
<p><code class="literal">GIMP_RGB_INTENSITY_GREEN</code> is deprecated and should not be used in newly-written code.</p>
1476
1401
</div>
1477
1402
<p>
1478
 
 
1479
1403
</p>
1480
1404
</div>
1481
1405
<hr>
1482
 
<div class="refsect2" lang="en">
1483
 
<a name="GIMP-RGB-INTENSITY-BLUE:CAPS"></a><h3>GIMP_RGB_INTENSITY_BLUE</h3>
 
1406
<div class="refsect2" title="GIMP_RGB_INTENSITY_BLUE">
 
1407
<a name="GIMP-RGB-INTENSITY-BLUE--CAPS"></a><h3>GIMP_RGB_INTENSITY_BLUE</h3>
1484
1408
<pre class="programlisting">#define GIMP_RGB_INTENSITY_BLUE   (0.11)
1485
1409
</pre>
1486
 
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
1410
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1487
1411
<h3 class="title">Warning</h3>
1488
1412
<p><code class="literal">GIMP_RGB_INTENSITY_BLUE</code> is deprecated and should not be used in newly-written code.</p>
1489
1413
</div>
1490
1414
<p>
1491
 
 
1492
1415
</p>
1493
1416
</div>
1494
1417
<hr>
1495
 
<div class="refsect2" lang="en">
1496
 
<a name="GIMP-TYPE-RGB:CAPS"></a><h3>GIMP_TYPE_RGB</h3>
 
1418
<div class="refsect2" title="GIMP_TYPE_RGB">
 
1419
<a name="GIMP-TYPE-RGB--CAPS"></a><h3>GIMP_TYPE_RGB</h3>
1497
1420
<pre class="programlisting">#define GIMP_TYPE_RGB               (gimp_rgb_get_type ())
1498
1421
</pre>
1499
1422
<p>
1500
 
<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 <a
 
1423
<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 <a
1501
1424
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"
1502
1425
><span class="type">GType</span></a> derived from <a
1503
 
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-BOXED:CAPS"
 
1426
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-BOXED--CAPS"
1504
1427
><span class="type">G_TYPE_BOXED</span></a>.
1505
1428
</p>
1506
1429
</div>
1507
1430
<hr>
1508
 
<div class="refsect2" lang="en">
1509
 
<a name="GIMP-TYPE-PARAM-RGB:CAPS"></a><h3>GIMP_TYPE_PARAM_RGB</h3>
 
1431
<div class="refsect2" title="GIMP_TYPE_PARAM_RGB">
 
1432
<a name="GIMP-TYPE-PARAM-RGB--CAPS"></a><h3>GIMP_TYPE_PARAM_RGB</h3>
1510
1433
<pre class="programlisting">#define GIMP_TYPE_PARAM_RGB           (gimp_param_rgb_get_type ())
1511
1434
</pre>
1512
1435
<p>
1513
 
 
1514
1436
</p>
1515
1437
</div>
1516
1438
<hr>
1517
 
<div class="refsect2" lang="en">
 
1439
<div class="refsect2" title="gimp_param_spec_rgb ()">
1518
1440
<a name="gimp-param-spec-rgb"></a><h3>gimp_param_spec_rgb ()</h3>
1519
1441
<pre class="programlisting"><a
1520
1442
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"
1521
 
>GParamSpec</a>*         gimp_param_spec_rgb                 (const <a
 
1443
>GParamSpec</a> *        gimp_param_spec_rgb                 (const <a
1522
1444
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
1523
1445
>gchar</a> *name,
1524
1446
                                                         const <a
1540
1462
href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#g-param-spec-internal"
1541
1463
><code class="function">g_param_spec_internal()</code></a> for more information.</p>
1542
1464
<p>
1543
 
 
1544
1465
</p>
1545
1466
<div class="variablelist"><table border="0">
1546
1467
<col align="left" valign="top">
1563
1484
<tr>
1564
1485
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></p></td>
1565
1486
<td>     <a
1566
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
 
1487
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
1567
1488
><code class="literal">TRUE</code></a> if the alpha channel has relevance.
1568
1489
</td>
1569
1490
</tr>
1589
1510
</tr>
1590
1511
</tbody>
1591
1512
</table></div>
1592
 
<p class="since">Since  GIMP 2.4
1593
 
</p>
 
1513
<p class="since">Since GIMP 2.4</p>
1594
1514
</div>
1595
1515
<hr>
1596
 
<div class="refsect2" lang="en">
 
1516
<div class="refsect2" title="gimp_param_spec_rgb_has_alpha ()">
1597
1517
<a name="gimp-param-spec-rgb-has-alpha"></a><h3>gimp_param_spec_rgb_has_alpha ()</h3>
1598
1518
<pre class="programlisting"><a
1599
1519
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
1603
1523
<p>
1604
1524
</p>
1605
1525
<p>
1606
 
 
1607
1526
</p>
1608
1527
<div class="variablelist"><table border="0">
1609
1528
<col align="left" valign="top">
1618
1537
<tr>
1619
1538
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1620
1539
<td> <a
1621
 
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
 
1540
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
1622
1541
><code class="literal">TRUE</code></a> if the alpha channel is relevant.
1623
1542
 
1624
1543
</td>
1625
1544
</tr>
1626
1545
</tbody>
1627
1546
</table></div>
1628
 
<p class="since">Since  GIMP 2.4
1629
 
</p>
 
1547
<p class="since">Since GIMP 2.4</p>
1630
1548
</div>
1631
1549
<hr>
1632
 
<div class="refsect2" lang="en">
1633
 
<a name="GIMP-VALUE-HOLDS-RGB:CAPS"></a><h3>GIMP_VALUE_HOLDS_RGB()</h3>
 
1550
<div class="refsect2" title="GIMP_VALUE_HOLDS_RGB()">
 
1551
<a name="GIMP-VALUE-HOLDS-RGB--CAPS"></a><h3>GIMP_VALUE_HOLDS_RGB()</h3>
1634
1552
<pre class="programlisting">#define GIMP_VALUE_HOLDS_RGB(value) (G_TYPE_CHECK_VALUE_TYPE ((value), GIMP_TYPE_RGB))
1635
1553
</pre>
1636
1554
<p>
1637
 
 
1638
1555
</p>
1639
1556
<div class="variablelist"><table border="0">
1640
1557
<col align="left" valign="top">
1641
1558
<tbody><tr>
1642
1559
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
1643
1560
<td>
1644
 
 
1645
 
 
1646
1561
</td>
1647
1562
</tr></tbody>
1648
1563
</table></div>
1649
1564
</div>
1650
1565
<hr>
1651
 
<div class="refsect2" lang="en">
 
1566
<div class="refsect2" title="gimp_value_get_rgb ()">
1652
1567
<a name="gimp-value-get-rgb"></a><h3>gimp_value_get_rgb ()</h3>
1653
1568
<pre class="programlisting">void                gimp_value_get_rgb                  (const <a
1654
1569
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
1655
1570
>GValue</a> *value,
1656
1571
                                                         <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
1657
1572
<p>
1658
 
 
1659
1573
</p>
1660
1574
<div class="variablelist"><table border="0">
1661
1575
<col align="left" valign="top">
1668
1582
<tr>
1669
1583
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
1670
1584
<td>
1671
 
 
1672
 
 
1673
1585
</td>
1674
1586
</tr>
1675
1587
</tbody>
1676
1588
</table></div>
1677
1589
</div>
1678
1590
<hr>
1679
 
<div class="refsect2" lang="en">
 
1591
<div class="refsect2" title="gimp_value_set_rgb ()">
1680
1592
<a name="gimp-value-set-rgb"></a><h3>gimp_value_set_rgb ()</h3>
1681
1593
<pre class="programlisting">void                gimp_value_set_rgb                  (<a
1682
1594
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
1683
1595
>GValue</a> *value,
1684
1596
                                                         const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
1685
1597
<p>
1686
 
 
1687
1598
</p>
1688
1599
<div class="variablelist"><table border="0">
1689
1600
<col align="left" valign="top">
1696
1607
<tr>
1697
1608
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
1698
1609
<td>
1699
 
 
1700
 
 
1701
1610
</td>
1702
1611
</tr>
1703
1612
</tbody>
1707
1616
</div>
1708
1617
<div class="footer">
1709
1618
<hr>
1710
 
          Generated by GTK-Doc V1.10</div>
 
1619
          Generated by GTK-Doc V1.11</div>
1711
1620
</body>
1712
1621
</html>