Imported Upstream version 2.6.1

This commit is contained in:
Ari Pollak
2010-08-11 01:25:55 -04:00
parent 94f5319c14
commit 0e546c590e
355 changed files with 112231 additions and 89475 deletions

View File

@ -21,7 +21,7 @@
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GIMP Color Library Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">
for GIMP 2.6.0
for GIMP 2.6.1
</p></div>
</div>

View File

@ -42,30 +42,70 @@
<div class="refsynopsisdiv">
<a name="libgimpcolor-GimpAdaptiveSupersample.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
void (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">*GimpProgressFunc</a>) (gint min,
gint max,
gint current,
gpointer data);
void (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">*GimpPutPixelFunc</a>) (gint x,
gint y,
void (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">*GimpProgressFunc</a>) (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> min,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> max,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> current,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">*GimpPutPixelFunc</a>) (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color,
gpointer data);
void (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">*GimpRenderFunc</a>) (gdouble x,
gdouble y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
void (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">*GimpRenderFunc</a>) (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color,
gpointer data);
gulong <a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#gimp-adaptive-supersample-area" title="gimp_adaptive_supersample_area ()">gimp_adaptive_supersample_area</a> (gint x1,
gint y1,
gint x2,
gint y2,
gint max_depth,
gdouble threshold,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
>gulong</a> <a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#gimp-adaptive-supersample-area" title="gimp_adaptive_supersample_area ()">gimp_adaptive_supersample_area</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x2,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y2,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> max_depth,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> threshold,
<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">GimpRenderFunc</a> render_func,
gpointer render_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> render_data,
<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">GimpPutPixelFunc</a> put_pixel_func,
gpointer put_pixel_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> put_pixel_data,
<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">GimpProgressFunc</a> progress_func,
gpointer progress_data);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> progress_data);
</pre>
</div>
<div class="refsect1" lang="en">
@ -78,10 +118,18 @@ Functions to perform adaptive supersampling on an area.
<a name="libgimpcolor-GimpAdaptiveSupersample.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GimpProgressFunc"></a><h3>GimpProgressFunc ()</h3>
<pre class="programlisting">void (*GimpProgressFunc) (gint min,
gint max,
gint current,
gpointer data);</pre>
<pre class="programlisting">void (*GimpProgressFunc) (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> min,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> max,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> current,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
</p>
@ -116,10 +164,16 @@ Functions to perform adaptive supersampling on an area.
<hr>
<div class="refsect2" lang="en">
<a name="GimpPutPixelFunc"></a><h3>GimpPutPixelFunc ()</h3>
<pre class="programlisting">void (*GimpPutPixelFunc) (gint x,
gint y,
<pre class="programlisting">void (*GimpPutPixelFunc) (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color,
gpointer data);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
</p>
@ -154,10 +208,16 @@ Functions to perform adaptive supersampling on an area.
<hr>
<div class="refsect2" lang="en">
<a name="GimpRenderFunc"></a><h3>GimpRenderFunc ()</h3>
<pre class="programlisting">void (*GimpRenderFunc) (gdouble x,
gdouble y,
<pre class="programlisting">void (*GimpRenderFunc) (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color,
gpointer data);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
</p>
@ -192,18 +252,38 @@ Functions to perform adaptive supersampling on an area.
<hr>
<div class="refsect2" lang="en">
<a name="gimp-adaptive-supersample-area"></a><h3>gimp_adaptive_supersample_area ()</h3>
<pre class="programlisting">gulong gimp_adaptive_supersample_area (gint x1,
gint y1,
gint x2,
gint y2,
gint max_depth,
gdouble threshold,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gulong"
>gulong</a> gimp_adaptive_supersample_area (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> x2,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> y2,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> max_depth,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> threshold,
<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">GimpRenderFunc</a> render_func,
gpointer render_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> render_data,
<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">GimpPutPixelFunc</a> put_pixel_func,
gpointer put_pixel_data,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> put_pixel_data,
<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">GimpProgressFunc</a> progress_func,
gpointer progress_data);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> progress_data);</pre>
<p>
</p>

View File

@ -42,30 +42,82 @@
<div class="refsynopsisdiv">
<a name="libgimpcolor-GimpBilinear.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
gdouble <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear" title="gimp_bilinear ()">gimp_bilinear</a> (gdouble x,
gdouble y,
gdouble *values);
guchar <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8" title="gimp_bilinear_8 ()">gimp_bilinear_8</a> (gdouble x,
gdouble y,
guchar *values);
guint16 <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-16" title="gimp_bilinear_16 ()">gimp_bilinear_16</a> (gdouble x,
gdouble y,
guint16 *values);
guint32 <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-32" title="gimp_bilinear_32 ()">gimp_bilinear_32</a> (gdouble x,
gdouble y,
guint32 *values);
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb" title="gimp_bilinear_rgb ()">gimp_bilinear_rgb</a> (gdouble x,
gdouble y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear" title="gimp_bilinear ()">gimp_bilinear</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *values);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8" title="gimp_bilinear_8 ()">gimp_bilinear_8</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *values);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"
>guint16</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-16" title="gimp_bilinear_16 ()">gimp_bilinear_16</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"
>guint16</a> *values);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-32" title="gimp_bilinear_32 ()">gimp_bilinear_32</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> *values);
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb" title="gimp_bilinear_rgb ()">gimp_bilinear_rgb</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *values);
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba" title="gimp_bilinear_rgba ()">gimp_bilinear_rgba</a> (gdouble x,
gdouble y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba" title="gimp_bilinear_rgba ()">gimp_bilinear_rgba</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *values);
void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8" title="gimp_bilinear_pixels_8 ()">gimp_bilinear_pixels_8</a> (guchar *dest,
gdouble x,
gdouble y,
guint bpp,
gboolean has_alpha,
guchar **values);
void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8" title="gimp_bilinear_pixels_8 ()">gimp_bilinear_pixels_8</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *dest,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> bpp,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_alpha,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> **values);
</pre>
</div>
<div class="refsect1" lang="en">
@ -78,9 +130,17 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<a name="libgimpcolor-GimpBilinear.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="gimp-bilinear"></a><h3>gimp_bilinear ()</h3>
<pre class="programlisting">gdouble gimp_bilinear (gdouble x,
gdouble y,
gdouble *values);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_bilinear (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *values);</pre>
<p>
</p>
@ -115,9 +175,17 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<hr>
<div class="refsect2" lang="en">
<a name="gimp-bilinear-8"></a><h3>gimp_bilinear_8 ()</h3>
<pre class="programlisting">guchar gimp_bilinear_8 (gdouble x,
gdouble y,
guchar *values);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> gimp_bilinear_8 (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *values);</pre>
<p>
</p>
@ -152,9 +220,17 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<hr>
<div class="refsect2" lang="en">
<a name="gimp-bilinear-16"></a><h3>gimp_bilinear_16 ()</h3>
<pre class="programlisting">guint16 gimp_bilinear_16 (gdouble x,
gdouble y,
guint16 *values);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"
>guint16</a> gimp_bilinear_16 (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"
>guint16</a> *values);</pre>
<p>
</p>
@ -189,9 +265,17 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<hr>
<div class="refsect2" lang="en">
<a name="gimp-bilinear-32"></a><h3>gimp_bilinear_32 ()</h3>
<pre class="programlisting">guint32 gimp_bilinear_32 (gdouble x,
gdouble y,
guint32 *values);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> gimp_bilinear_32 (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
>guint32</a> *values);</pre>
<p>
</p>
@ -226,8 +310,12 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<hr>
<div class="refsect2" lang="en">
<a name="gimp-bilinear-rgb"></a><h3>gimp_bilinear_rgb ()</h3>
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> gimp_bilinear_rgb (gdouble x,
gdouble y,
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> gimp_bilinear_rgb (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *values);</pre>
<p>
@ -263,8 +351,12 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<hr>
<div class="refsect2" lang="en">
<a name="gimp-bilinear-rgba"></a><h3>gimp_bilinear_rgba ()</h3>
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> gimp_bilinear_rgba (gdouble x,
gdouble y,
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> gimp_bilinear_rgba (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *values);</pre>
<p>
@ -300,18 +392,34 @@ void <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bi
<hr>
<div class="refsect2" lang="en">
<a name="gimp-bilinear-pixels-8"></a><h3>gimp_bilinear_pixels_8 ()</h3>
<pre class="programlisting">void gimp_bilinear_pixels_8 (guchar *dest,
gdouble x,
gdouble y,
guint bpp,
gboolean has_alpha,
guchar **values);</pre>
<pre class="programlisting">void gimp_bilinear_pixels_8 (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *dest,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"
>guint</a> bpp,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_alpha,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> **values);</pre>
<p>
Computes bilinear interpolation of four pixels.
</p>
<p>
When <em class="parameter"><code>has_alpha</code></em> is <code class="literal">FALSE</code>, it's identical to <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8" title="gimp_bilinear_8 ()"><code class="function">gimp_bilinear_8()</code></a> on
each channel separately. When <em class="parameter"><code>has_alpha</code></em> is <code class="literal">TRUE</code>, it handles
When <em class="parameter"><code>has_alpha</code></em> is <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, it's identical to <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8" title="gimp_bilinear_8 ()"><code class="function">gimp_bilinear_8()</code></a> on
each channel separately. When <em class="parameter"><code>has_alpha</code></em> is <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, it handles
alpha channel correctly.
</p>
<p>
@ -346,7 +454,9 @@ following order: [0,0], [1,0], [0,1], [1,1].</p>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></p></td>
<td> <code class="literal">TRUE</code> if the last channel is an alpha channel.
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the last channel is an alpha channel.
</td>
</tr>
<tr>

View File

@ -44,38 +44,92 @@
<pre class="synopsis">
<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a>;
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set" title="gimp_cmyk_set ()">gimp_cmyk_set</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
gdouble cyan,
gdouble magenta,
gdouble yellow,
gdouble black);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> black);
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set-uchar" title="gimp_cmyk_set_uchar ()">gimp_cmyk_set_uchar</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
guchar cyan,
guchar magenta,
guchar yellow,
guchar black);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> black);
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-get-uchar" title="gimp_cmyk_get_uchar ()">gimp_cmyk_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
guchar *cyan,
guchar *magenta,
guchar *yellow,
guchar *black);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *black);
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set" title="gimp_cmyka_set ()">gimp_cmyka_set</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
gdouble cyan,
gdouble magenta,
gdouble yellow,
gdouble black,
gdouble alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> black,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set-uchar" title="gimp_cmyka_set_uchar ()">gimp_cmyka_set_uchar</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
guchar cyan,
guchar magenta,
guchar yellow,
guchar black,
guchar alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> black,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> alpha);
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar" title="gimp_cmyka_get_uchar ()">gimp_cmyka_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
guchar *cyan,
guchar *magenta,
guchar *yellow,
guchar *black,
guchar *alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *black,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *alpha);
#define <a class="link" href="libgimpcolor-GimpCMYK.html#GIMP-TYPE-CMYK:CAPS" title="GIMP_TYPE_CMYK">GIMP_TYPE_CMYK</a>
</pre>
</div>
@ -101,10 +155,18 @@ Definitions and Functions relating to CMYK colors.
<div class="refsect2" lang="en">
<a name="gimp-cmyk-set"></a><h3>gimp_cmyk_set ()</h3>
<pre class="programlisting">void gimp_cmyk_set (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
gdouble cyan,
gdouble magenta,
gdouble yellow,
gdouble black);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> black);</pre>
<p>
Very basic initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
values are doubles in the range 0 to 1.</p>
@ -146,10 +208,18 @@ values are doubles in the range 0 to 1.</p>
<div class="refsect2" lang="en">
<a name="gimp-cmyk-set-uchar"></a><h3>gimp_cmyk_set_uchar ()</h3>
<pre class="programlisting">void gimp_cmyk_set_uchar (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
guchar cyan,
guchar magenta,
guchar yellow,
guchar black);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> black);</pre>
<p>
The same as <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set" title="gimp_cmyk_set ()"><code class="function">gimp_cmyk_set()</code></a>, except that channel values are
unsigned chars in the range 0 to 255.</p>
@ -191,10 +261,18 @@ unsigned chars in the range 0 to 255.</p>
<div class="refsect2" lang="en">
<a name="gimp-cmyk-get-uchar"></a><h3>gimp_cmyk_get_uchar ()</h3>
<pre class="programlisting">void gimp_cmyk_get_uchar (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
guchar *cyan,
guchar *magenta,
guchar *yellow,
guchar *black);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *black);</pre>
<p>
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
values are pointers to unsigned chars in the range 0 to 255.</p>
@ -236,11 +314,21 @@ values are pointers to unsigned chars in the range 0 to 255.</p>
<div class="refsect2" lang="en">
<a name="gimp-cmyka-set"></a><h3>gimp_cmyka_set ()</h3>
<pre class="programlisting">void gimp_cmyka_set (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
gdouble cyan,
gdouble magenta,
gdouble yellow,
gdouble black,
gdouble alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> black,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);</pre>
<p>
Initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel values are
doubles in the range 0 to 1.</p>
@ -287,11 +375,21 @@ doubles in the range 0 to 1.</p>
<div class="refsect2" lang="en">
<a name="gimp-cmyka-set-uchar"></a><h3>gimp_cmyka_set_uchar ()</h3>
<pre class="programlisting">void gimp_cmyka_set_uchar (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
guchar cyan,
guchar magenta,
guchar yellow,
guchar black,
guchar alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> black,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> alpha);</pre>
<p>
The same as <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set" title="gimp_cmyka_set ()"><code class="function">gimp_cmyka_set()</code></a>, except that channel values are
unsigned chars in the range 0 to 255.</p>
@ -338,11 +436,21 @@ unsigned chars in the range 0 to 255.</p>
<div class="refsect2" lang="en">
<a name="gimp-cmyka-get-uchar"></a><h3>gimp_cmyka_get_uchar ()</h3>
<pre class="programlisting">void gimp_cmyka_get_uchar (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
guchar *cyan,
guchar *magenta,
guchar *yellow,
guchar *black,
guchar *alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *black,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *alpha);</pre>
<p>
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure.
Channel values are pointers to unsigned chars in the range 0 to 255.</p>

View File

@ -44,8 +44,12 @@
<pre class="synopsis">
<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a>;
<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManagedInterface" title="GimpColorManagedInterface">GimpColorManagedInterface</a>;
const guint8* <a class="link" href="libgimpcolor-GimpColorManaged.html#gimp-color-managed-get-icc-profile" title="gimp_color_managed_get_icc_profile ()">gimp_color_managed_get_icc_profile</a> (<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a> *managed,
gsize *len);
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
>guint8</a>* <a class="link" href="libgimpcolor-GimpColorManaged.html#gimp-color-managed-get-icc-profile" title="gimp_color_managed_get_icc_profile ()">gimp_color_managed_get_icc_profile</a> (<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a> *managed,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
>gsize</a> *len);
void <a class="link" href="libgimpcolor-GimpColorManaged.html#gimp-color-managed-profile-changed" title="gimp_color_managed_profile_changed ()">gimp_color_managed_profile_changed</a> (<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a> *managed);
</pre>
</div>
@ -85,8 +89,12 @@ void <a class="link" href="libgimpcolor-GimpColorManaged.html#gim
<hr>
<div class="refsect2" lang="en">
<a name="gimp-color-managed-get-icc-profile"></a><h3>gimp_color_managed_get_icc_profile ()</h3>
<pre class="programlisting">const guint8* gimp_color_managed_get_icc_profile (<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a> *managed,
gsize *len);</pre>
<pre class="programlisting">const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"
>guint8</a>* gimp_color_managed_get_icc_profile (<a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a> *managed,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"
>gsize</a> *len);</pre>
<p>
</p>
<p>

View File

@ -47,7 +47,9 @@ void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-
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,
<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="GimpHSL">GimpHSL</a> *hsl);
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,
gdouble pullout,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> pullout,
<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk);
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,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
@ -56,44 +58,120 @@ void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-
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,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
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,
gdouble *hue,
gdouble *whiteness,
gdouble *blackness);
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hwb-to-rgb" title="gimp_hwb_to_rgb ()">gimp_hwb_to_rgb</a> (gdouble hue,
gdouble whiteness,
gdouble blackness,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *whiteness,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *blackness);
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hwb-to-rgb" title="gimp_hwb_to_rgb ()">gimp_hwb_to_rgb</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> whiteness,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> blackness,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
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,
gint *green,
gint *blue);
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,
gint *saturation,
gint *value);
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,
gint *green,
gint *blue);
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,
gint *green,
gint *blue,
gint *pullout);
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,
gint *magenta,
gint *yellow,
gint *black);
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,
gint green,
gint blue);
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,
gint *saturation,
gint *lightness);
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,
gdouble *hue,
gdouble *saturation,
gdouble *value);
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb4" title="gimp_hsv_to_rgb4 ()">gimp_hsv_to_rgb4</a> (guchar *rgb,
gdouble hue,
gdouble saturation,
gdouble value);
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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *blue);
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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *value);
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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *blue);
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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *pullout);
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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *black);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> blue);
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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *lightness);
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv4" title="gimp_rgb_to_hsv4 ()">gimp_rgb_to_hsv4</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *rgb,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *value);
void <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb4" title="gimp_hsv_to_rgb4 ()">gimp_hsv_to_rgb4</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *rgb,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value);
</pre>
</div>
<div class="refsect1" lang="en">
@ -164,7 +242,9 @@ color value.</p>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-cmyk"></a><h3>gimp_rgb_to_cmyk ()</h3>
<pre class="programlisting">void gimp_rgb_to_cmyk (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble pullout,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> pullout,
<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk);</pre>
<p>
Does a naive conversion from RGB to CMYK colorspace. A simple
@ -280,9 +360,15 @@ colorspace, without taking color profiles into account.</p>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-hwb"></a><h3>gimp_rgb_to_hwb ()</h3>
<pre class="programlisting">void gimp_rgb_to_hwb (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble *hue,
gdouble *whiteness,
gdouble *blackness);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *whiteness,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *blackness);</pre>
<p>
Theoretically, hue 0 (pure red) is identical to hue 6 in these transforms.
Pure red always maps to 6 in this implementation. Therefore UNDEFINED can
@ -324,9 +410,15 @@ undefined.</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-hwb-to-rgb"></a><h3>gimp_hwb_to_rgb ()</h3>
<pre class="programlisting">void gimp_hwb_to_rgb (gdouble hue,
gdouble whiteness,
gdouble blackness,
<pre class="programlisting">void gimp_hwb_to_rgb (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> whiteness,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> blackness,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>
H is defined in the range [0, 6] or UNDEFINED, B and W are both in the
@ -363,9 +455,15 @@ range [0, 1]. The returned RGB values are all in the range [0, 1].</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-hsv-int"></a><h3>gimp_rgb_to_hsv_int ()</h3>
<pre class="programlisting">void gimp_rgb_to_hsv_int (gint *red,
gint *green,
gint *blue);</pre>
<pre class="programlisting">void gimp_rgb_to_hsv_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *blue);</pre>
<p>
The arguments are pointers to int representing channel values in
the RGB colorspace, and the values pointed to are all in the range
@ -402,9 +500,15 @@ ranges: H [0, 359], S [0, 255], V [0, 255].</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-hsv-to-rgb-int"></a><h3>gimp_hsv_to_rgb_int ()</h3>
<pre class="programlisting">void gimp_hsv_to_rgb_int (gint *hue,
gint *saturation,
gint *value);</pre>
<pre class="programlisting">void gimp_hsv_to_rgb_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *value);</pre>
<p>
The arguments are pointers to int, with the values pointed to in the
following ranges: H [0, 360], S [0, 255], V [0, 255].
@ -439,9 +543,15 @@ corresponding, with the returned values all in the range [0, 255].</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-hsl-int"></a><h3>gimp_rgb_to_hsl_int ()</h3>
<pre class="programlisting">void gimp_rgb_to_hsl_int (gint *red,
gint *green,
gint *blue);</pre>
<pre class="programlisting">void gimp_rgb_to_hsl_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *blue);</pre>
<p>
The arguments are pointers to int representing channel values in the
RGB colorspace, and the values pointed to are all in the range [0, 255].
@ -477,10 +587,18 @@ L [0, 255], S [0, 255].</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-cmyk-int"></a><h3>gimp_rgb_to_cmyk_int ()</h3>
<pre class="programlisting">void gimp_rgb_to_cmyk_int (gint *red,
gint *green,
gint *blue,
gint *pullout);</pre>
<pre class="programlisting">void gimp_rgb_to_cmyk_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *pullout);</pre>
<p>
Does a naive conversion from RGB to CMYK colorspace. A simple
formula that doesn't take any color-profiles into account is used.
@ -520,10 +638,18 @@ A value of 100 causes the maximum amount of black to be pulled out.</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-cmyk-to-rgb-int"></a><h3>gimp_cmyk_to_rgb_int ()</h3>
<pre class="programlisting">void gimp_cmyk_to_rgb_int (gint *cyan,
gint *magenta,
gint *yellow,
gint *black);</pre>
<pre class="programlisting">void gimp_cmyk_to_rgb_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *cyan,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *magenta,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *yellow,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *black);</pre>
<p>
Does a naive conversion from CMYK to RGB colorspace. A simple
formula that doesn't take any color-profiles into account is used.</p>
@ -559,9 +685,17 @@ formula that doesn't take any color-profiles into account is used.</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-l-int"></a><h3>gimp_rgb_to_l_int ()</h3>
<pre class="programlisting">gint gimp_rgb_to_l_int (gint red,
gint green,
gint blue);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gimp_rgb_to_l_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> blue);</pre>
<p>
Calculates the lightness value of an RGB triplet with the formula
L = (max(R, G, B) + min (R, G, B)) / 2</p>
@ -597,9 +731,15 @@ L = (max(R, G, B) + min (R, G, B)) / 2</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-hsl-to-rgb-int"></a><h3>gimp_hsl_to_rgb_int ()</h3>
<pre class="programlisting">void gimp_hsl_to_rgb_int (gint *hue,
gint *saturation,
gint *lightness);</pre>
<pre class="programlisting">void gimp_hsl_to_rgb_int (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> *lightness);</pre>
<p>
The arguments are pointers to int, with the values pointed to in the
following ranges: H [0, 360], L [0, 255], S [0, 255].
@ -634,10 +774,18 @@ corresponding, with the returned values all in the range [0, 255].</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-to-hsv4"></a><h3>gimp_rgb_to_hsv4 ()</h3>
<pre class="programlisting">void gimp_rgb_to_hsv4 (const guchar *rgb,
gdouble *hue,
gdouble *saturation,
gdouble *value);</pre>
<pre class="programlisting">void gimp_rgb_to_hsv4 (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *rgb,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *value);</pre>
<p>
</p>
<p>
@ -673,10 +821,18 @@ corresponding, with the returned values all in the range [0, 255].</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-hsv-to-rgb4"></a><h3>gimp_hsv_to_rgb4 ()</h3>
<pre class="programlisting">void gimp_hsv_to_rgb4 (guchar *rgb,
gdouble hue,
gdouble saturation,
gdouble value);</pre>
<pre class="programlisting">void gimp_hsv_to_rgb4 (<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *rgb,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value);</pre>
<p>
</p>
<p>

View File

@ -45,15 +45,29 @@
<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a>;
<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="GimpHSL">GimpHSL</a>;
void <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsv-set" title="gimp_hsv_set ()">gimp_hsv_set</a> (<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a> *hsv,
gdouble hue,
gdouble saturation,
gdouble value);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value);
void <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsv-clamp" title="gimp_hsv_clamp ()">gimp_hsv_clamp</a> (<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a> *hsv);
void <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsva-set" title="gimp_hsva_set ()">gimp_hsva_set</a> (<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a> *hsva,
gdouble hue,
gdouble saturation,
gdouble value,
gdouble alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);
#define <a class="link" href="libgimpcolor-GimpHSV.html#GIMP-TYPE-HSV:CAPS" title="GIMP_TYPE_HSV">GIMP_TYPE_HSV</a>
#define <a class="link" href="libgimpcolor-GimpHSV.html#GIMP-TYPE-HSL:CAPS" title="GIMP_TYPE_HSL">GIMP_TYPE_HSL</a>
</pre>
@ -91,9 +105,15 @@ Definitions and Functions relating to HSV colors.
<div class="refsect2" lang="en">
<a name="gimp-hsv-set"></a><h3>gimp_hsv_set ()</h3>
<pre class="programlisting">void gimp_hsv_set (<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a> *hsv,
gdouble hue,
gdouble saturation,
gdouble value);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value);</pre>
<p>
</p>
@ -147,10 +167,18 @@ Definitions and Functions relating to HSV colors.
<div class="refsect2" lang="en">
<a name="gimp-hsva-set"></a><h3>gimp_hsva_set ()</h3>
<pre class="programlisting">void gimp_hsva_set (<a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="GimpHSV">GimpHSV</a> *hsva,
gdouble hue,
gdouble saturation,
gdouble value,
gdouble alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> hue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> saturation,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> value,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);</pre>
<p>
</p>

View File

@ -45,75 +45,169 @@
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a>;
enum <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a>;
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set" title="gimp_rgb_set ()">gimp_rgb_set</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble red,
gdouble green,
gdouble blue);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> blue);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-alpha" title="gimp_rgb_set_alpha ()">gimp_rgb_set_alpha</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-uchar" title="gimp_rgb_set_uchar ()">gimp_rgb_set_uchar</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
guchar red,
guchar green,
guchar blue);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> blue);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-get-uchar" title="gimp_rgb_get_uchar ()">gimp_rgb_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
guchar *red,
guchar *green,
guchar *blue);
gboolean <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()">gimp_rgb_parse_name</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const gchar *name,
gint len);
gboolean <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex" title="gimp_rgb_parse_hex ()">gimp_rgb_parse_hex</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const gchar *hex,
gint len);
gboolean <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()">gimp_rgb_parse_css</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const gchar *css,
gint len);
gint <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-list-names" title="gimp_rgb_list_names ()">gimp_rgb_list_names</a> (const gchar ***names,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *blue);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()">gimp_rgb_parse_name</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex" title="gimp_rgb_parse_hex ()">gimp_rgb_parse_hex</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *hex,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()">gimp_rgb_parse_css</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *css,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-list-names" title="gimp_rgb_list_names ()">gimp_rgb_list_names</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> ***names,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> **colors);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-add" title="gimp_rgb_add ()">gimp_rgb_add</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-subtract" title="gimp_rgb_subtract ()">gimp_rgb_subtract</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-multiply" title="gimp_rgb_multiply ()">gimp_rgb_multiply</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
gdouble factor);
gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-distance" title="gimp_rgb_distance ()">gimp_rgb_distance</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> factor);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-distance" title="gimp_rgb_distance ()">gimp_rgb_distance</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);
gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-max" title="gimp_rgb_max ()">gimp_rgb_max</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-min" title="gimp_rgb_min ()">gimp_rgb_min</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-max" title="gimp_rgb_max ()">gimp_rgb_max</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-min" title="gimp_rgb_min ()">gimp_rgb_min</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-clamp" title="gimp_rgb_clamp ()">gimp_rgb_clamp</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-gamma" title="gimp_rgb_gamma ()">gimp_rgb_gamma</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble gamma);
gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance" title="gimp_rgb_luminance ()">gimp_rgb_luminance</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
guchar <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar" title="gimp_rgb_luminance_uchar ()">gimp_rgb_luminance_uchar</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity" title="gimp_rgb_intensity ()">gimp_rgb_intensity</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
guchar <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity-uchar" title="gimp_rgb_intensity_uchar ()">gimp_rgb_intensity_uchar</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gamma);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance" title="gimp_rgb_luminance ()">gimp_rgb_luminance</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar" title="gimp_rgb_luminance_uchar ()">gimp_rgb_luminance_uchar</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity" title="gimp_rgb_intensity ()">gimp_rgb_intensity</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity-uchar" title="gimp_rgb_intensity_uchar ()">gimp_rgb_intensity_uchar</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-composite" title="gimp_rgb_composite ()">gimp_rgb_composite</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *color2,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a> mode);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set" title="gimp_rgba_set ()">gimp_rgba_set</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
gdouble red,
gdouble green,
gdouble blue,
gdouble alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set-uchar" title="gimp_rgba_set_uchar ()">gimp_rgba_set_uchar</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
guchar red,
guchar green,
guchar blue,
guchar alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> alpha);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-get-uchar" title="gimp_rgba_get_uchar ()">gimp_rgba_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
guchar *red,
guchar *green,
guchar *blue,
guchar *alpha);
gboolean <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-parse-css" title="gimp_rgba_parse_css ()">gimp_rgba_parse_css</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
const gchar *css,
gint len);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *alpha);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-parse-css" title="gimp_rgba_parse_css ()">gimp_rgba_parse_css</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *css,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-add" title="gimp_rgba_add ()">gimp_rgba_add</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-subtract" title="gimp_rgba_subtract ()">gimp_rgba_subtract</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-multiply" title="gimp_rgba_multiply ()">gimp_rgba_multiply</a> (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
gdouble factor);
gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-distance" title="gimp_rgba_distance ()">gimp_rgba_distance</a> (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> factor);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>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,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE:CAPS" title="GIMP_RGB_LUMINANCE()">GIMP_RGB_LUMINANCE</a> (r,g,b)
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE-RED:CAPS" title="GIMP_RGB_LUMINANCE_RED">GIMP_RGB_LUMINANCE_RED</a>
@ -125,17 +219,37 @@ gdouble <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-di
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-INTENSITY-BLUE:CAPS" title="GIMP_RGB_INTENSITY_BLUE">GIMP_RGB_INTENSITY_BLUE</a>
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS" title="GIMP_TYPE_RGB">GIMP_TYPE_RGB</a>
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-PARAM-RGB:CAPS" title="GIMP_TYPE_PARAM_RGB">GIMP_TYPE_PARAM_RGB</a>
GParamSpec* <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb" title="gimp_param_spec_rgb ()">gimp_param_spec_rgb</a> (const gchar *name,
const gchar *nick,
const gchar *blurb,
gboolean has_alpha,
<a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
>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
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *blurb,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_alpha,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *default_value,
GParamFlags flags);
gboolean <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb-has-alpha" title="gimp_param_spec_rgb_has_alpha ()">gimp_param_spec_rgb_has_alpha</a> (GParamSpec *pspec);
<a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
>GParamFlags</a> flags);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>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
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec);
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-VALUE-HOLDS-RGB:CAPS" title="GIMP_VALUE_HOLDS_RGB()">GIMP_VALUE_HOLDS_RGB</a> (value)
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb" title="gimp_value_get_rgb ()">gimp_value_get_rgb</a> (const GValue *value,
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb" title="gimp_value_get_rgb ()">gimp_value_get_rgb</a> (const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-set-rgb" title="gimp_value_set_rgb ()">gimp_value_set_rgb</a> (GValue *value,
void <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-set-rgb" title="gimp_value_set_rgb ()">gimp_value_set_rgb</a> (<a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);
</pre>
</div>
@ -175,9 +289,15 @@ Definitions and Functions relating to RGB colors.
<div class="refsect2" lang="en">
<a name="gimp-rgb-set"></a><h3>gimp_rgb_set ()</h3>
<pre class="programlisting">void gimp_rgb_set (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble red,
gdouble green,
gdouble blue);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> blue);</pre>
<p>
Sets the red, green and blue components of <em class="parameter"><code>rgb</code></em> and leaves the
alpha component unchanged. The color values should be between 0.0
@ -216,7 +336,9 @@ set exactly as they are passed in.</p>
<div class="refsect2" lang="en">
<a name="gimp-rgb-set-alpha"></a><h3>gimp_rgb_set_alpha ()</h3>
<pre class="programlisting">void gimp_rgb_set_alpha (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);</pre>
<p>
Sets the alpha component of <em class="parameter"><code>rgb</code></em> and leaves the RGB components unchanged.</p>
<p>
@ -242,9 +364,15 @@ Sets the alpha component of <em class="parameter"><code>rgb</code></em> and leav
<div class="refsect2" lang="en">
<a name="gimp-rgb-set-uchar"></a><h3>gimp_rgb_set_uchar ()</h3>
<pre class="programlisting">void gimp_rgb_set_uchar (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
guchar red,
guchar green,
guchar blue);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> blue);</pre>
<p>
Sets the red, green and blue components of <em class="parameter"><code>rgb</code></em> from 8bit values
(0 to 255) and leaves the alpha component unchanged.</p>
@ -281,9 +409,15 @@ Sets the red, green and blue components of <em class="parameter"><code>rgb</code
<div class="refsect2" lang="en">
<a name="gimp-rgb-get-uchar"></a><h3>gimp_rgb_get_uchar ()</h3>
<pre class="programlisting">void gimp_rgb_get_uchar (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
guchar *red,
guchar *green,
guchar *blue);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *blue);</pre>
<p>
</p>
@ -318,9 +452,15 @@ Sets the red, green and blue components of <em class="parameter"><code>rgb</code
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-parse-name"></a><h3>gimp_rgb_parse_name ()</h3>
<pre class="programlisting">gboolean gimp_rgb_parse_name (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const gchar *name,
gint len);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_rgb_parse_name (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Attempts to parse a color name. This function accepts <a class="ulink" href="http://www.w3.org/TR/SVG/types.html" target="_top">SVG 1.0 color keywords</a>.
</p>
@ -349,8 +489,12 @@ This function does not touch the alpha component of <em class="parameter"><code>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>name</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has
been set, <code class="literal">FALSE</code> otherwise
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><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
been set, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
@ -362,9 +506,15 @@ This function does not touch the alpha component of <em class="parameter"><code>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-parse-hex"></a><h3>gimp_rgb_parse_hex ()</h3>
<pre class="programlisting">gboolean gimp_rgb_parse_hex (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const gchar *hex,
gint len);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_rgb_parse_hex (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *hex,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Attempts to parse a string describing an RGB color in hexadecimal
notation (optionally prefixed with a '#').
@ -394,8 +544,12 @@ This function does not touch the alpha component of <em class="parameter"><code>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>hex</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has
been set, <code class="literal">FALSE</code> otherwise
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><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
been set, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
@ -407,9 +561,15 @@ This function does not touch the alpha component of <em class="parameter"><code>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-parse-css"></a><h3>gimp_rgb_parse_css ()</h3>
<pre class="programlisting">gboolean gimp_rgb_parse_css (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const gchar *css,
gint len);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_rgb_parse_css (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *css,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Attempts to parse a string describing an RGB color in CSS
notation. This can be either a numerical representation
@ -443,8 +603,12 @@ This function does not touch the alpha component of <em class="parameter"><code>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>css</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has been
set, <code class="literal">FALSE</code> otherwise
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><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
set, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
@ -456,7 +620,11 @@ This function does not touch the alpha component of <em class="parameter"><code>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-list-names"></a><h3>gimp_rgb_list_names ()</h3>
<pre class="programlisting">gint gimp_rgb_list_names (const gchar ***names,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> gimp_rgb_list_names (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> ***names,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> **colors);</pre>
<p>
Allows to retrieve the list of <a class="ulink" href="http://www.w3.org/TR/SVG/types.html" target="_top">SVG 1.0 color
@ -464,7 +632,9 @@ keywords</a> that is used by <a class="link" href="libgimpcolor-GimpRGB.html#gim
</p>
<p>
The returned strings are const and must not be freed. Only the two
arrays are allocated dynamically. You must call <code class="function">g_free()</code> on the
arrays are allocated dynamically. You must call <a
href="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a> on the
<em class="parameter"><code>names</code></em> and <em class="parameter"><code>colors</code></em> arrays when they are not any longer needed.</p>
<p>
@ -550,7 +720,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<div class="refsect2" lang="en">
<a name="gimp-rgb-multiply"></a><h3>gimp_rgb_multiply ()</h3>
<pre class="programlisting">void gimp_rgb_multiply (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
gdouble factor);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> factor);</pre>
<p>
</p>
@ -575,7 +747,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-distance"></a><h3>gimp_rgb_distance ()</h3>
<pre class="programlisting">gdouble gimp_rgb_distance (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_rgb_distance (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb2);</pre>
<p>
@ -606,7 +780,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-max"></a><h3>gimp_rgb_max ()</h3>
<pre class="programlisting">gdouble gimp_rgb_max (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_rgb_max (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>
</p>
@ -631,7 +807,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-min"></a><h3>gimp_rgb_min ()</h3>
<pre class="programlisting">gdouble gimp_rgb_min (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_rgb_min (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>
</p>
@ -675,7 +853,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<div class="refsect2" lang="en">
<a name="gimp-rgb-gamma"></a><h3>gimp_rgb_gamma ()</h3>
<pre class="programlisting">void gimp_rgb_gamma (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb,
gdouble gamma);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gamma);</pre>
<p>
</p>
@ -700,7 +880,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-luminance"></a><h3>gimp_rgb_luminance ()</h3>
<pre class="programlisting">gdouble gimp_rgb_luminance (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_rgb_luminance (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>
</p>
<p>
@ -728,7 +910,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-luminance-uchar"></a><h3>gimp_rgb_luminance_uchar ()</h3>
<pre class="programlisting">guchar gimp_rgb_luminance_uchar (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> gimp_rgb_luminance_uchar (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>
</p>
<p>
@ -756,7 +940,9 @@ arrays are allocated dynamically. You must call <code class="function">g_free()<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-intensity"></a><h3>gimp_rgb_intensity ()</h3>
<pre class="programlisting">gdouble gimp_rgb_intensity (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_rgb_intensity (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_rgb_intensity</code> is deprecated and should not be used in newly-written code.</p>
@ -785,7 +971,9 @@ This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgb-intensity-uchar"></a><h3>gimp_rgb_intensity_uchar ()</h3>
<pre class="programlisting">guchar gimp_rgb_intensity_uchar (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> gimp_rgb_intensity_uchar (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gimp_rgb_intensity_uchar</code> is deprecated and should not be used in newly-written code.</p>
@ -847,10 +1035,18 @@ This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html
<div class="refsect2" lang="en">
<a name="gimp-rgba-set"></a><h3>gimp_rgba_set ()</h3>
<pre class="programlisting">void gimp_rgba_set (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
gdouble red,
gdouble green,
gdouble blue,
gdouble alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> alpha);</pre>
<p>
Sets the red, green, blue and alpha components of <em class="parameter"><code>rgb</code></em>. The values
should be between 0.0 and 1.0 but there is no check to enforce this
@ -893,10 +1089,18 @@ and the values are set exactly as they are passed in.</p>
<div class="refsect2" lang="en">
<a name="gimp-rgba-set-uchar"></a><h3>gimp_rgba_set_uchar ()</h3>
<pre class="programlisting">void gimp_rgba_set_uchar (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
guchar red,
guchar green,
guchar blue,
guchar alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> alpha);</pre>
<p>
Sets the red, green, blue and alpha components of <em class="parameter"><code>rgb</code></em> from 8bit
values (0 to 255).</p>
@ -938,10 +1142,18 @@ values (0 to 255).</p>
<div class="refsect2" lang="en">
<a name="gimp-rgba-get-uchar"></a><h3>gimp_rgba_get_uchar ()</h3>
<pre class="programlisting">void gimp_rgba_get_uchar (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
guchar *red,
guchar *green,
guchar *blue,
guchar *alpha);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *red,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *green,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *blue,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
>guchar</a> *alpha);</pre>
<p>
</p>
@ -981,9 +1193,15 @@ values (0 to 255).</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgba-parse-css"></a><h3>gimp_rgba_parse_css ()</h3>
<pre class="programlisting">gboolean gimp_rgba_parse_css (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
const gchar *css,
gint len);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_rgba_parse_css (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *css,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Similar to <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()"><code class="function">gimp_rgb_parse_css()</code></a> but handles RGB colors with alpha
channel in the numerical CSS notation (<code class="code">rgba(255,0,0,255)</code>
@ -1015,8 +1233,12 @@ they leave the alpha channel unspecified.</p>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>css</code></em> was parsed successfully and <em class="parameter"><code>rgb</code></em> has been
set, <code class="literal">FALSE</code> otherwise
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><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
set, <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
@ -1081,7 +1303,9 @@ they leave the alpha channel unspecified.</p>
<div class="refsect2" lang="en">
<a name="gimp-rgba-multiply"></a><h3>gimp_rgba_multiply ()</h3>
<pre class="programlisting">void gimp_rgba_multiply (<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba,
gdouble factor);</pre>
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> factor);</pre>
<p>
</p>
@ -1106,7 +1330,9 @@ they leave the alpha channel unspecified.</p>
<hr>
<div class="refsect2" lang="en">
<a name="gimp-rgba-distance"></a><h3>gimp_rgba_distance ()</h3>
<pre class="programlisting">gdouble gimp_rgba_distance (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_rgba_distance (const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba1,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgba2);</pre>
<p>
@ -1271,7 +1497,11 @@ coefficients taken from the NTSC analog television standard.
<pre class="programlisting">#define GIMP_TYPE_RGB (gimp_rgb_get_type ())
</pre>
<p>
<a class="link" href="libgimpcolor-GimpRGB.html#GIMP-TYPE-RGB:CAPS" title="GIMP_TYPE_RGB"><span class="type">GIMP_TYPE_RGB</span></a> is a <span class="type">GType</span> derived from <span class="type">G_TYPE_BOXED</span>.
<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
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"
><span class="type">GType</span></a> derived from <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-BOXED:CAPS"
><span class="type">G_TYPE_BOXED</span></a>.
</p>
</div>
<hr>
@ -1286,15 +1516,29 @@ coefficients taken from the NTSC analog television standard.
<hr>
<div class="refsect2" lang="en">
<a name="gimp-param-spec-rgb"></a><h3>gimp_param_spec_rgb ()</h3>
<pre class="programlisting">GParamSpec* gimp_param_spec_rgb (const gchar *name,
const gchar *nick,
const gchar *blurb,
gboolean has_alpha,
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>* gimp_param_spec_rgb (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *blurb,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_alpha,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *default_value,
GParamFlags flags);</pre>
<a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
>GParamFlags</a> flags);</pre>
<p>
Creates a param spec to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> value.
See <code class="function">g_param_spec_internal()</code> for more information.</p>
See <a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#g-param-spec-internal"
><code class="function">g_param_spec_internal()</code></a> for more information.</p>
<p>
</p>
@ -1318,7 +1562,9 @@ See <code class="function">g_param_spec_internal()</code> for more information.<
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></p></td>
<td> <code class="literal">TRUE</code> if the alpha channel has relevance.
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the alpha channel has relevance.
</td>
</tr>
<tr>
@ -1328,12 +1574,16 @@ See <code class="function">g_param_spec_internal()</code> for more information.<
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td> a combination of <span class="type">GParamFlags</span>
<td> a combination of <a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamFlags"
><span class="type">GParamFlags</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a newly allocated <span class="type">GParamSpec</span> instance
<td> a newly allocated <a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> instance
</td>
</tr>
@ -1345,7 +1595,11 @@ See <code class="function">g_param_spec_internal()</code> for more information.<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-param-spec-rgb-has-alpha"></a><h3>gimp_param_spec_rgb_has_alpha ()</h3>
<pre class="programlisting">gboolean gimp_param_spec_rgb_has_alpha (GParamSpec *pspec);</pre>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_param_spec_rgb_has_alpha (<a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec);</pre>
<p>
</p>
<p>
@ -1356,12 +1610,16 @@ See <code class="function">g_param_spec_internal()</code> for more information.<
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em> :</span></p></td>
<td> a <span class="type">GParamSpec</span> to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> value.
<td> a <a
href="/usr/share/gtk-doc/html/gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB"><span class="type">GimpRGB</span></a> value.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if the alpha channel is relevant.
<td> <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the alpha channel is relevant.
</td>
</tr>
@ -1392,7 +1650,9 @@ See <code class="function">g_param_spec_internal()</code> for more information.<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-value-get-rgb"></a><h3>gimp_value_get_rgb ()</h3>
<pre class="programlisting">void gimp_value_get_rgb (const GValue *value,
<pre class="programlisting">void gimp_value_get_rgb (const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>
@ -1418,7 +1678,9 @@ See <code class="function">g_param_spec_internal()</code> for more information.<
<hr>
<div class="refsect2" lang="en">
<a name="gimp-value-set-rgb"></a><h3>gimp_value_set_rgb ()</h3>
<pre class="programlisting">void gimp_value_set_rgb (GValue *value,
<pre class="programlisting">void gimp_value_set_rgb (<a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value,
const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="GimpRGB">GimpRGB</a> *rgb);</pre>
<p>