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>
29
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpcolor-GimpRGB.synopsis" class="shortcut">Top</a>
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>
32
<a href="#libgimpcolor-GimpRGB.description" class="shortcut">Description</a>
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>
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>
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,
253
255
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
256
<div class="refsect1" lang="en">
258
<div class="refsect1" title="Description">
257
259
<a name="libgimpcolor-GimpRGB.description"></a><h2>Description</h2>
259
261
Definitions and Functions relating to RGB colors.
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;
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
491
484
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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
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
503
<p class="since">Since GIMP 2.2
496
<p class="since">Since GIMP 2.2</p>
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"
546
537
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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
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
558
<p class="since">Since GIMP 2.2
549
<p class="since">Since GIMP 2.2</p>
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"
605
594
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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
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
617
<p class="since">Since GIMP 2.2
606
<p class="since">Since GIMP 2.2</p>
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"
664
<p class="since">Since GIMP 2.2
651
<p class="since">Since GIMP 2.2</p>
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>
675
660
<div class="variablelist"><table border="0">
676
661
<col align="left" valign="top">
684
669
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
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>
701
683
<div class="variablelist"><table border="0">
702
684
<col align="left" valign="top">
710
692
<td><p><span class="term"><em class="parameter"><code>rgb2</code></em> :</span></p></td>
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,
724
704
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
725
705
>gdouble</a> factor);</pre>
729
708
<div class="variablelist"><table border="0">
730
709
<col align="left" valign="top">
738
717
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
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>
757
733
<div class="variablelist"><table border="0">
758
734
<col align="left" valign="top">
771
747
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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>
789
762
<div class="variablelist"><table border="0">
790
763
<col align="left" valign="top">
798
771
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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>
816
786
<div class="variablelist"><table border="0">
817
787
<col align="left" valign="top">
825
795
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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>
841
808
<div class="variablelist"><table border="0">
842
809
<col align="left" valign="top">
844
811
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
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,
857
822
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
858
823
>gdouble</a> gamma);</pre>
862
826
<div class="variablelist"><table border="0">
863
827
<col align="left" valign="top">
937
<p class="since">Since GIMP 2.4
896
<p class="since">Since GIMP 2.4</p>
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>
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>
955
912
<div class="variablelist"><table border="0">
956
913
<col align="left" valign="top">
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>
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>
986
942
<div class="variablelist"><table border="0">
987
943
<col align="left" valign="top">
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>
1011
966
<div class="variablelist"><table border="0">
1012
967
<col align="left" valign="top">
1235
1182
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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
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
1247
<p class="since">Since GIMP 2.2
1194
<p class="since">Since GIMP 2.2</p>
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>
1258
1203
<div class="variablelist"><table border="0">
1259
1204
<col align="left" valign="top">
1267
1212
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
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>
1284
1226
<div class="variablelist"><table border="0">
1285
1227
<col align="left" valign="top">
1293
1235
<td><p><span class="term"><em class="parameter"><code>rgba2</code></em> :</span></p></td>
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,
1307
1247
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
1308
1248
>gdouble</a> factor);</pre>
1312
1251
<div class="variablelist"><table border="0">
1313
1252
<col align="left" valign="top">
1321
1260
<td><p><span class="term"><em class="parameter"><code>factor</code></em> :</span></p></td>
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>
1340
1276
<div class="variablelist"><table border="0">
1341
1277
<col align="left" valign="top">
1354
1290
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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>
1370
1303
<div class="variablelist"><table border="0">
1371
1304
<col align="left" valign="top">
1384
1317
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
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)
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)
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)
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>
1446
1374
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
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)
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>
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)
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>
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)
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>
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 ())
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>.
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 ())
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,
1619
1538
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
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.
1628
<p class="since">Since GIMP 2.4
1547
<p class="since">Since GIMP 2.4</p>
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))
1639
1556
<div class="variablelist"><table border="0">
1640
1557
<col align="left" valign="top">
1642
1559
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
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>
1660
1574
<div class="variablelist"><table border="0">
1661
1575
<col align="left" valign="top">
1669
1583
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
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>
1688
1599
<div class="variablelist"><table border="0">
1689
1600
<col align="left" valign="top">