Imported Upstream version 2.8.0

This commit is contained in:
Jordi Mallach
2012-05-05 12:33:49 +02:00
parent 3fcab19200
commit f03e90f6fe
4714 changed files with 1354362 additions and 818907 deletions

View File

@ -1,9 +1,9 @@
# Makefile.in generated by automake 1.11.1 from Makefile.am.
# Makefile.in generated by automake 1.11.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -21,6 +21,23 @@
# Everything below here is generic #
####################################
VPATH = @srcdir@
am__make_dryrun = \
{ \
am__dry=no; \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
*) \
for am__flg in $$MAKEFLAGS; do \
case $$am__flg in \
*=*|--*) ;; \
*n*) am__dry=yes; break;; \
esac; \
done;; \
esac; \
test $$am__dry = yes; \
}
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
@ -44,20 +61,30 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
subdir = devel-docs/libgimpcolor
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
$(top_srcdir)/m4macros/detectcflags.m4 \
$(top_srcdir)/m4macros/pythondev.m4 \
$(top_srcdir)/m4macros/gimpprint.m4 \
$(top_srcdir)/m4macros/alsa.m4 \
$(top_srcdir)/m4macros/gtk-doc.m4 \
$(top_srcdir)/m4macros/binreloc.m4 $(top_srcdir)/configure.in
$(top_srcdir)/m4macros/binreloc.m4 \
$(top_srcdir)/m4macros/detectcflags.m4 \
$(top_srcdir)/m4macros/gimpprint.m4 \
$(top_srcdir)/m4macros/pythondev.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES = version
CONFIG_CLEAN_VPATH_FILES =
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
SOURCES =
DIST_SOURCES =
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
AA_LIBS = @AA_LIBS@
ACLOCAL = @ACLOCAL@
@ -67,8 +94,11 @@ ALSA_CFLAGS = @ALSA_CFLAGS@
ALSA_LIBS = @ALSA_LIBS@
ALTIVEC_EXTRA_CFLAGS = @ALTIVEC_EXTRA_CFLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AS = @AS@
ATK_CFLAGS = @ATK_CFLAGS@
ATK_LIBS = @ATK_LIBS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
@ -77,8 +107,12 @@ BABL_CFLAGS = @BABL_CFLAGS@
BABL_LIBS = @BABL_LIBS@
BINRELOC_CFLAGS = @BINRELOC_CFLAGS@
BINRELOC_LIBS = @BINRELOC_LIBS@
BZIP2_LIBS = @BZIP2_LIBS@
CAIRO_CFLAGS = @CAIRO_CFLAGS@
CAIRO_LIBS = @CAIRO_LIBS@
CAIRO_PDF_CFLAGS = @CAIRO_PDF_CFLAGS@
CAIRO_PDF_LIBS = @CAIRO_PDF_LIBS@
CAIRO_REQUIRED_VERSION = @CAIRO_REQUIRED_VERSION@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
@ -112,14 +146,18 @@ EXIF_CFLAGS = @EXIF_CFLAGS@
EXIF_LIBS = @EXIF_LIBS@
FGREP = @FGREP@
FILE_AA = @FILE_AA@
FILE_JP2_LOAD = @FILE_JP2_LOAD@
FILE_MNG = @FILE_MNG@
FILE_PDF = @FILE_PDF@
FILE_PDF_LOAD = @FILE_PDF_LOAD@
FILE_PDF_SAVE = @FILE_PDF_SAVE@
FILE_PNG = @FILE_PNG@
FILE_PS = @FILE_PS@
FILE_PSP = @FILE_PSP@
FILE_SVG = @FILE_SVG@
FILE_TIFF_LOAD = @FILE_TIFF_LOAD@
FILE_TIFF_SAVE = @FILE_TIFF_SAVE@
FILE_WMF = @FILE_WMF@
FILE_XMC = @FILE_XMC@
FILE_XPM = @FILE_XPM@
FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
@ -128,10 +166,10 @@ FREETYPE_LIBS = @FREETYPE_LIBS@
GDK_PIXBUF_CFLAGS = @GDK_PIXBUF_CFLAGS@
GDK_PIXBUF_CSOURCE = @GDK_PIXBUF_CSOURCE@
GDK_PIXBUF_LIBS = @GDK_PIXBUF_LIBS@
GDK_PIXBUF_REQUIRED_VERSION = @GDK_PIXBUF_REQUIRED_VERSION@
GEGL_CFLAGS = @GEGL_CFLAGS@
GEGL_LIBS = @GEGL_LIBS@
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
GIMPINSTALL = @GIMPINSTALL@
GIMP_API_VERSION = @GIMP_API_VERSION@
GIMP_APP_VERSION = @GIMP_APP_VERSION@
GIMP_BINARY_AGE = @GIMP_BINARY_AGE@
@ -148,8 +186,6 @@ GIMP_PKGCONFIG_VERSION = @GIMP_PKGCONFIG_VERSION@
GIMP_PLUGINS = @GIMP_PLUGINS@
GIMP_PLUGIN_VERSION = @GIMP_PLUGIN_VERSION@
GIMP_REAL_VERSION = @GIMP_REAL_VERSION@
GIMP_REMOTE = @GIMP_REMOTE@
GIMP_REMOTE_MANPAGE = @GIMP_REMOTE_MANPAGE@
GIMP_SYSCONF_VERSION = @GIMP_SYSCONF_VERSION@
GIMP_TOOL_VERSION = @GIMP_TOOL_VERSION@
GIMP_UNSTABLE = @GIMP_UNSTABLE@
@ -158,6 +194,7 @@ GIMP_VERSION = @GIMP_VERSION@
GIO_CFLAGS = @GIO_CFLAGS@
GIO_LIBS = @GIO_LIBS@
GLIB_CFLAGS = @GLIB_CFLAGS@
GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
GLIB_LIBS = @GLIB_LIBS@
GLIB_MKENUMS = @GLIB_MKENUMS@
@ -166,18 +203,19 @@ GMODULE_NO_EXPORT_CFLAGS = @GMODULE_NO_EXPORT_CFLAGS@
GMODULE_NO_EXPORT_LIBS = @GMODULE_NO_EXPORT_LIBS@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
GOBJECT_QUERY = @GOBJECT_QUERY@
GREP = @GREP@
GS_LIBS = @GS_LIBS@
GTKDOC_CHECK = @GTKDOC_CHECK@
GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_LIBS = @GTK_LIBS@
GTK_REQUIRED_VERSION = @GTK_REQUIRED_VERSION@
HAL_CFLAGS = @HAL_CFLAGS@
HAL_LIBS = @HAL_LIBS@
GUDEV_CFLAGS = @GUDEV_CFLAGS@
GUDEV_LIBS = @GUDEV_LIBS@
HAVE_FINITE = @HAVE_FINITE@
HAVE_ISFINITE = @HAVE_ISFINITE@
HTML_DIR = @HTML_DIR@
@ -192,8 +230,13 @@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
INTLTOOL_MERGE = @INTLTOOL_MERGE@
INTLTOOL_PERL = @INTLTOOL_PERL@
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
ISO_CODES_LOCALEDIR = @ISO_CODES_LOCALEDIR@
ISO_CODES_LOCATION = @ISO_CODES_LOCATION@
JP2_LIBS = @JP2_LIBS@
JPEG_LIBS = @JPEG_LIBS@
LCMS = @LCMS@
LCMS_CFLAGS = @LCMS_CFLAGS@
@ -216,6 +259,7 @@ MIME_TYPES = @MIME_TYPES@
MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@
MMX_EXTRA_CFLAGS = @MMX_EXTRA_CFLAGS@
MNG_CFLAGS = @MNG_CFLAGS@
MNG_LIBS = @MNG_LIBS@
MSGFMT = @MSGFMT@
MSGFMT_OPTS = @MSGFMT_OPTS@
@ -233,8 +277,8 @@ PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PANGOFT2_CFLAGS = @PANGOFT2_CFLAGS@
PANGOFT2_LIBS = @PANGOFT2_LIBS@
PANGOCAIRO_CFLAGS = @PANGOCAIRO_CFLAGS@
PANGOCAIRO_LIBS = @PANGOCAIRO_LIBS@
PATHSEP = @PATHSEP@
PATH_SEPARATOR = @PATH_SEPARATOR@
PERL = @PERL@
@ -281,6 +325,7 @@ USE_NLS = @USE_NLS@
VERSION = @VERSION@
WEBKIT_CFLAGS = @WEBKIT_CFLAGS@
WEBKIT_LIBS = @WEBKIT_LIBS@
WEB_PAGE = @WEB_PAGE@
WIN32_LARGE_ADDRESS_AWARE = @WIN32_LARGE_ADDRESS_AWARE@
WINDRES = @WINDRES@
WMF_CFLAGS = @WMF_CFLAGS@
@ -289,11 +334,14 @@ WMF_LIBS = @WMF_LIBS@
XFIXES_CFLAGS = @XFIXES_CFLAGS@
XFIXES_LIBS = @XFIXES_LIBS@
XGETTEXT = @XGETTEXT@
XMC_CFLAGS = @XMC_CFLAGS@
XMC_LIBS = @XMC_LIBS@
XMKMF = @XMKMF@
XMLLINT = @XMLLINT@
XMU_LIBS = @XMU_LIBS@
XPM_LIBS = @XPM_LIBS@
XSLTPROC = @XSLTPROC@
XVFB_RUN = @XVFB_RUN@
X_CFLAGS = @X_CFLAGS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_LIBS = @X_LIBS@
@ -337,6 +385,8 @@ htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
intltool__v_merge_options_ = @intltool__v_merge_options_@
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
@ -471,6 +521,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_srcdir)/gtk-doc.make:
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
@ -542,10 +593,15 @@ install-am: all-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:

View File

@ -15,7 +15,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.12
for GIMP 2.8.0
</p></div>
</div>
@ -34,22 +34,28 @@
<span class="refentrytitle"><a href="libgimpcolor-GimpCMYK.html">GimpCMYK</a></span><span class="refpurpose"> — Definitions and Functions relating to CMYK colors.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorSpace.html">GimpColorSpace</a></span><span class="refpurpose"> — Utility functions which convert colors between different color models.</span>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorSpace.html">GimpColorSpace</a></span><span class="refpurpose"> — Utility functions which convert colors between
different color models.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorManaged.html">GimpColorManaged</a></span><span class="refpurpose"></span>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorManaged.html">GimpColorManaged</a></span><span class="refpurpose"> — An interface dealing with color profiles.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpAdaptiveSupersample.html">GimpAdaptiveSupersample</a></span><span class="refpurpose"> — Functions to perform adaptive supersampling on an area.</span>
<span class="refentrytitle"><a href="libgimpcolor-GimpAdaptiveSupersample.html">GimpAdaptiveSupersample</a></span><span class="refpurpose"> — Functions to perform adaptive supersampling on
an area.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpBilinear.html">GimpBilinear</a></span><span class="refpurpose"></span>
<span class="refentrytitle"><a href="libgimpcolor-GimpBilinear.html">GimpBilinear</a></span><span class="refpurpose"> — Utility functions for bilinear interpolation.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpCairoColor.html">GimpCairoColor</a></span><span class="refpurpose"> — Color utility functions for cairo</span>
</dt>
</dl></dd>
<dt><span class="index"><a href="libgimpcolor-index.html">Index</a></span></dt>
<dt><span class="index"><a href="libgimpcolor-index-new-in-2-2.html">Index of new symbols in GIMP 2.2</a></span></dt>
<dt><span class="index"><a href="libgimpcolor-index-new-in-2-4.html">Index of new symbols in GIMP 2.4</a></span></dt>
<dt><span class="index"><a href="libgimpcolor-index-new-in-2-6.html">Index of new symbols in GIMP 2.6</a></span></dt>
<dt><span class="index"><a href="libgimpcolor-index-new-in-2-8.html">Index of new symbols in GIMP 2.8</a></span></dt>
<dt><span class="index"><a href="libgimpcolor-index-deprecated.html">Index of deprecated symbols</a></span></dt>
</dl></div>
</div>

View File

@ -57,6 +57,7 @@
<ANCHOR id="gimp-hsv-set" href="libgimpcolor/libgimpcolor-GimpHSV.html#gimp-hsv-set">
<ANCHOR id="gimp-hsv-clamp" href="libgimpcolor/libgimpcolor-GimpHSV.html#gimp-hsv-clamp">
<ANCHOR id="gimp-hsva-set" href="libgimpcolor/libgimpcolor-GimpHSV.html#gimp-hsva-set">
<ANCHOR id="gimp-hsl-set" href="libgimpcolor/libgimpcolor-GimpHSV.html#gimp-hsl-set">
<ANCHOR id="GIMP-TYPE-HSV:CAPS" href="libgimpcolor/libgimpcolor-GimpHSV.html#GIMP-TYPE-HSV:CAPS">
<ANCHOR id="GIMP-TYPE-HSL:CAPS" href="libgimpcolor/libgimpcolor-GimpHSV.html#GIMP-TYPE-HSL:CAPS">
<ANCHOR id="libgimpcolor-GimpCMYK" href="libgimpcolor/libgimpcolor-GimpCMYK.html">
@ -119,3 +120,14 @@
<ANCHOR id="gimp-bilinear-rgb" href="libgimpcolor/libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb">
<ANCHOR id="gimp-bilinear-rgba" href="libgimpcolor/libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba">
<ANCHOR id="gimp-bilinear-pixels-8" href="libgimpcolor/libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8">
<ANCHOR id="libgimpcolor-GimpCairoColor" href="libgimpcolor/libgimpcolor-GimpCairoColor.html">
<ANCHOR id="libgimpcolor-GimpCairoColor.synopsis" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#libgimpcolor-GimpCairoColor.synopsis">
<ANCHOR id="libgimpcolor-GimpCairoColor.description" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#libgimpcolor-GimpCairoColor.description">
<ANCHOR id="libgimpcolor-GimpCairoColor.details" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#libgimpcolor-GimpCairoColor.details">
<ANCHOR id="gimp-cairo-set-source-rgb" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgb">
<ANCHOR id="gimp-cairo-set-source-rgba" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgba">
<ANCHOR id="gimp-cairo-checkerboard-create" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#gimp-cairo-checkerboard-create">
<ANCHOR id="GIMP-CAIRO-RGB24-SET-PIXEL:CAPS" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-SET-PIXEL:CAPS">
<ANCHOR id="GIMP-CAIRO-RGB24-GET-PIXEL:CAPS" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-GET-PIXEL:CAPS">
<ANCHOR id="GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS">
<ANCHOR id="GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS" href="libgimpcolor/libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS">

View File

@ -31,36 +31,37 @@
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpAdaptiveSupersample.top_of_page"></a>GimpAdaptiveSupersample</span></h2>
<p>GimpAdaptiveSupersample — Functions to perform adaptive supersampling on an area.</p>
<p>GimpAdaptiveSupersample — Functions to perform adaptive supersampling on
an area.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgimpcolor-GimpAdaptiveSupersample.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"><span class="returnvalue">void</span> (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">*GimpProgressFunc</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> min</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> current</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">*GimpPutPixelFunc</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
<pre class="synopsis"><span class="returnvalue">void</span> (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">*GimpProgressFunc</a>) (<em class="parameter"><code><span class="type">gint</span> min</code></em>,
<em class="parameter"><code><span class="type">gint</span> max</code></em>,
<em class="parameter"><code><span class="type">gint</span> current</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">*GimpPutPixelFunc</a>) (<em class="parameter"><code><span class="type">gint</span> x</code></em>,
<em class="parameter"><code><span class="type">gint</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">*GimpRenderFunc</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">*GimpRenderFunc</a>) (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a> <a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#gimp-adaptive-supersample-area" title="gimp_adaptive_supersample_area ()">gimp_adaptive_supersample_area</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x1</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y1</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x2</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y2</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_depth</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> threshold</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gulong</span> <a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#gimp-adaptive-supersample-area" title="gimp_adaptive_supersample_area ()">gimp_adaptive_supersample_area</a> (<em class="parameter"><code><span class="type">gint</span> x1</code></em>,
<em class="parameter"><code><span class="type">gint</span> y1</code></em>,
<em class="parameter"><code><span class="type">gint</span> x2</code></em>,
<em class="parameter"><code><span class="type">gint</span> y2</code></em>,
<em class="parameter"><code><span class="type">gint</span> max_depth</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> threshold</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()"><span class="type">GimpRenderFunc</span></a> render_func</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> render_data</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> render_data</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()"><span class="type">GimpPutPixelFunc</span></a> put_pixel_func</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> put_pixel_data</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> put_pixel_data</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()"><span class="type">GimpProgressFunc</span></a> progress_func</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> progress_data</code></em>);
<em class="parameter"><code><span class="type">gpointer</span> progress_data</code></em>);
</pre>
</div>
<div class="refsect1">
@ -73,48 +74,48 @@ Functions to perform adaptive supersampling on an area.
<a name="libgimpcolor-GimpAdaptiveSupersample.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GimpProgressFunc"></a><h3>GimpProgressFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*GimpProgressFunc) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> min</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> current</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> (*GimpProgressFunc) (<em class="parameter"><code><span class="type">gint</span> min</code></em>,
<em class="parameter"><code><span class="type">gint</span> max</code></em>,
<em class="parameter"><code><span class="type">gint</span> current</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GimpPutPixelFunc"></a><h3>GimpPutPixelFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*GimpPutPixelFunc) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
<pre class="programlisting"><span class="returnvalue">void</span> (*GimpPutPixelFunc) (<em class="parameter"><code><span class="type">gint</span> x</code></em>,
<em class="parameter"><code><span class="type">gint</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GimpRenderFunc"></a><h3>GimpRenderFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*GimpRenderFunc) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<pre class="programlisting"><span class="returnvalue">void</span> (*GimpRenderFunc) (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-adaptive-supersample-area"></a><h3>gimp_adaptive_supersample_area ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a> gimp_adaptive_supersample_area (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x1</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y1</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x2</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y2</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> max_depth</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> threshold</code></em>,
<pre class="programlisting"><span class="returnvalue">gulong</span> gimp_adaptive_supersample_area (<em class="parameter"><code><span class="type">gint</span> x1</code></em>,
<em class="parameter"><code><span class="type">gint</span> y1</code></em>,
<em class="parameter"><code><span class="type">gint</span> x2</code></em>,
<em class="parameter"><code><span class="type">gint</span> y2</code></em>,
<em class="parameter"><code><span class="type">gint</span> max_depth</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> threshold</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()"><span class="type">GimpRenderFunc</span></a> render_func</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> render_data</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> render_data</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()"><span class="type">GimpPutPixelFunc</span></a> put_pixel_func</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> put_pixel_data</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> put_pixel_data</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()"><span class="type">GimpProgressFunc</span></a> progress_func</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> progress_data</code></em>);</pre>
<em class="parameter"><code><span class="type">gpointer</span> progress_data</code></em>);</pre>
<p>
</p>
</div>

View File

@ -7,7 +7,7 @@
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
<link rel="prev" href="libgimpcolor-GimpAdaptiveSupersample.html" title="GimpAdaptiveSupersample">
<link rel="next" href="libgimpcolor-index.html" title="Index">
<link rel="next" href="libgimpcolor-GimpCairoColor.html" title="GimpCairoColor">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
@ -18,7 +18,7 @@
<td><a accesskey="u" href="libgimpcolor.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
<td><a accesskey="n" href="libgimpcolor-index.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
<td><a accesskey="n" href="libgimpcolor-GimpCairoColor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgimpcolor-GimpBilinear.synopsis" class="shortcut">Top</a>
@ -31,85 +31,86 @@
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpBilinear.top_of_page"></a>GimpBilinear</span></h2>
<p>GimpBilinear</p>
<p>GimpBilinear — Utility functions for bilinear interpolation.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgimpcolor-GimpBilinear.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear" title="gimp_bilinear ()">gimp_bilinear</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *values</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8" title="gimp_bilinear_8 ()">gimp_bilinear_8</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *values</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-16" title="gimp_bilinear_16 ()">gimp_bilinear_16</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *values</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-32" title="gimp_bilinear_32 ()">gimp_bilinear_32</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *values</code></em>);
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb" title="gimp_bilinear_rgb ()">gimp_bilinear_rgb</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<pre class="synopsis"><span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear" title="gimp_bilinear ()">gimp_bilinear</a> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *values</code></em>);
<span class="returnvalue">guchar</span> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8" title="gimp_bilinear_8 ()">gimp_bilinear_8</a> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *values</code></em>);
<span class="returnvalue">guint16</span> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-16" title="gimp_bilinear_16 ()">gimp_bilinear_16</a> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guint16</span> *values</code></em>);
<span class="returnvalue">guint32</span> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-32" title="gimp_bilinear_32 ()">gimp_bilinear_32</a> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guint32</span> *values</code></em>);
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb" title="gimp_bilinear_rgb ()">gimp_bilinear_rgb</a> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *values</code></em>);
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba" title="gimp_bilinear_rgba ()">gimp_bilinear_rgba</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba" title="gimp_bilinear_rgba ()">gimp_bilinear_rgba</a> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *values</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8" title="gimp_bilinear_pixels_8 ()">gimp_bilinear_pixels_8</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *dest</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> bpp</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> **values</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8" title="gimp_bilinear_pixels_8 ()">gimp_bilinear_pixels_8</a> (<em class="parameter"><code><span class="type">guchar</span> *dest</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guint</span> bpp</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> has_alpha</code></em>,
<em class="parameter"><code><span class="type">guchar</span> **values</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgimpcolor-GimpBilinear.description"></a><h2>Description</h2>
<p>
Utility functions for bilinear interpolation.
</p>
</div>
<div class="refsect1">
<a name="libgimpcolor-GimpBilinear.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="gimp-bilinear"></a><h3>gimp_bilinear ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_bilinear (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *values</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_bilinear (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *values</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-bilinear-8"></a><h3>gimp_bilinear_8 ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> gimp_bilinear_8 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *values</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">guchar</span> gimp_bilinear_8 (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *values</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-bilinear-16"></a><h3>gimp_bilinear_16 ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> gimp_bilinear_16 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> *values</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">guint16</span> gimp_bilinear_16 (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guint16</span> *values</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-bilinear-32"></a><h3>gimp_bilinear_32 ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a> gimp_bilinear_32 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *values</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">guint32</span> gimp_bilinear_32 (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guint32</span> *values</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-bilinear-rgb"></a><h3>gimp_bilinear_rgb ()</h3>
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> gimp_bilinear_rgb (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> gimp_bilinear_rgb (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *values</code></em>);</pre>
<p>
</p>
@ -117,8 +118,8 @@
<hr>
<div class="refsect2">
<a name="gimp-bilinear-rgba"></a><h3>gimp_bilinear_rgba ()</h3>
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> gimp_bilinear_rgba (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<pre class="programlisting"><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="returnvalue">GimpRGB</span></a> gimp_bilinear_rgba (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *values</code></em>);</pre>
<p>
</p>
@ -126,18 +127,18 @@
<hr>
<div class="refsect2">
<a name="gimp-bilinear-pixels-8"></a><h3>gimp_bilinear_pixels_8 ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_bilinear_pixels_8 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *dest</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> bpp</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> **values</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_bilinear_pixels_8 (<em class="parameter"><code><span class="type">guchar</span> *dest</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">guint</span> bpp</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> has_alpha</code></em>,
<em class="parameter"><code><span class="type">guchar</span> **values</code></em>);</pre>
<p>
Computes bilinear interpolation of four pixels.
</p>
<p>
When <em class="parameter"><code>has_alpha</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, it handles
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
alpha channel correctly.
</p>
<p>
@ -167,7 +168,7 @@ following order: [0,0], [1,0], [0,1], [1,1].
<tr>
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the last channel is an alpha channel.</td>
<code class="literal">TRUE</code> if the last channel is an alpha channel.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>

View File

@ -39,38 +39,38 @@
<a name="libgimpcolor-GimpCMYK.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK">GimpCMYK</a>;
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set" title="gimp_cmyk_set ()">gimp_cmyk_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> black</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> cyan</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> magenta</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> yellow</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> black</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set-uchar" title="gimp_cmyk_set_uchar ()">gimp_cmyk_set_uchar</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> black</code></em>);
<em class="parameter"><code><span class="type">guchar</span> cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> black</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-get-uchar" title="gimp_cmyk_get_uchar ()">gimp_cmyk_get_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *black</code></em>);
<em class="parameter"><code><span class="type">guchar</span> *cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *black</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set" title="gimp_cmyka_set ()">gimp_cmyka_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyka</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> black</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> cyan</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> magenta</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> yellow</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> black</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set-uchar" title="gimp_cmyka_set_uchar ()">gimp_cmyka_set_uchar</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyka</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> black</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> alpha</code></em>);
<em class="parameter"><code><span class="type">guchar</span> cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> black</code></em>,
<em class="parameter"><code><span class="type">guchar</span> alpha</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar" title="gimp_cmyka_get_uchar ()">gimp_cmyka_get_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyka</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *black</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *alpha</code></em>);
<em class="parameter"><code><span class="type">guchar</span> *cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *black</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *alpha</code></em>);
#define <a class="link" href="libgimpcolor-GimpCMYK.html#GIMP-TYPE-CMYK:CAPS" title="GIMP_TYPE_CMYK">GIMP_TYPE_CMYK</a>
</pre>
</div>
@ -89,16 +89,45 @@ Definitions and Functions relating to CMYK colors.
};
</pre>
<p>
Used to keep CMYK and CMYKA colors. All components are in a range
of [0.0..1.0]. An alpha value is somewhat useless in the CMYK
colorspace, but we keep one around anyway so color conversions
going to CMYK and back can preserve alpha.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpCMYK.c"></a>c</code></em>;</span></p></td>
<td>the cyan component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpCMYK.m"></a>m</code></em>;</span></p></td>
<td>the magenta component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpCMYK.y"></a>y</code></em>;</span></p></td>
<td>the yellow component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpCMYK.k"></a>k</code></em>;</span></p></td>
<td>the black component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpCMYK.a"></a>a</code></em>;</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-cmyk-set"></a><h3>gimp_cmyk_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyk_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> black</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> cyan</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> magenta</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> yellow</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> black</code></em>);</pre>
<p>
Very basic initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
values are doubles in the range 0 to 1.
@ -133,10 +162,10 @@ values are doubles in the range 0 to 1.
<div class="refsect2">
<a name="gimp-cmyk-set-uchar"></a><h3>gimp_cmyk_set_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyk_set_uchar (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> black</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> black</code></em>);</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.
@ -171,10 +200,10 @@ unsigned chars in the range 0 to 255.
<div class="refsect2">
<a name="gimp-cmyk-get-uchar"></a><h3>gimp_cmyk_get_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyk_get_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *black</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> *cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *black</code></em>);</pre>
<p>
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
values are pointers to unsigned chars in the range 0 to 255.
@ -209,11 +238,11 @@ values are pointers to unsigned chars in the range 0 to 255.
<div class="refsect2">
<a name="gimp-cmyka-set"></a><h3>gimp_cmyka_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyka_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyka</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> black</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> cyan</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> magenta</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> yellow</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> black</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);</pre>
<p>
Initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel values are
doubles in the range 0 to 1.
@ -252,11 +281,11 @@ doubles in the range 0 to 1.
<div class="refsect2">
<a name="gimp-cmyka-set-uchar"></a><h3>gimp_cmyka_set_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyka_set_uchar (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyka</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> black</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> black</code></em>,
<em class="parameter"><code><span class="type">guchar</span> alpha</code></em>);</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.
@ -295,11 +324,11 @@ unsigned chars in the range 0 to 255.
<div class="refsect2">
<a name="gimp-cmyka-get-uchar"></a><h3>gimp_cmyka_get_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyka_get_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyka</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *black</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> *cyan</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *magenta</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *yellow</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *black</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *alpha</code></em>);</pre>
<p>
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> structure.
Channel values are pointers to unsigned chars in the range 0 to 255.

View File

@ -0,0 +1,301 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GimpCairoColor</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
<link rel="prev" href="libgimpcolor-GimpBilinear.html" title="GimpBilinear">
<link rel="next" href="libgimpcolor-index.html" title="Index">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgimpcolor-GimpBilinear.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="libgimpcolor.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
<td><a accesskey="n" href="libgimpcolor-index.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libgimpcolor-GimpCairoColor.synopsis" class="shortcut">Top</a>
 | 
<a href="#libgimpcolor-GimpCairoColor.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libgimpcolor-GimpCairoColor"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpCairoColor.top_of_page"></a>GimpCairoColor</span></h2>
<p>GimpCairoColor — Color utility functions for cairo</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgimpcolor-GimpCairoColor.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgb" title="gimp_cairo_set_source_rgb ()">gimp_cairo_set_source_rgb</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgba" title="gimp_cairo_set_source_rgba ()">gimp_cairo_set_source_rgba</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>);
<span class="returnvalue">cairo_pattern_t</span> * <a class="link" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-checkerboard-create" title="gimp_cairo_checkerboard_create ()">gimp_cairo_checkerboard_create</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *light</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *dark</code></em>);
#define <a class="link" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-SET-PIXEL:CAPS" title="GIMP_CAIRO_RGB24_SET_PIXEL()">GIMP_CAIRO_RGB24_SET_PIXEL</a> (d,
r,
g,
b)
#define <a class="link" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-GET-PIXEL:CAPS" title="GIMP_CAIRO_RGB24_GET_PIXEL()">GIMP_CAIRO_RGB24_GET_PIXEL</a> (s,
r,
g,
b)
#define <a class="link" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS" title="GIMP_CAIRO_ARGB32_SET_PIXEL()">GIMP_CAIRO_ARGB32_SET_PIXEL</a> (d,
r,
g,
b,
a)
#define <a class="link" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS" title="GIMP_CAIRO_ARGB32_GET_PIXEL()">GIMP_CAIRO_ARGB32_GET_PIXEL</a> (s,
r,
g,
b,
a)
</pre>
</div>
<div class="refsect1">
<a name="libgimpcolor-GimpCairoColor.description"></a><h2>Description</h2>
<p>
Utility functions that make cairo easier to use with GIMP color
data types.
</p>
</div>
<div class="refsect1">
<a name="libgimpcolor-GimpCairoColor.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="gimp-cairo-set-source-rgb"></a><h3>gimp_cairo_set_source_rgb ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cairo_set_source_rgb (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>);</pre>
<p>
Sets the source pattern within <em class="parameter"><code>cr</code></em> to the solid opaque color
described by <em class="parameter"><code>color</code></em>.
</p>
<p>
This function calls <code class="function">cairo_set_source_rgb()</code> for you.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>Cairo context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>GimpRGB color</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-cairo-set-source-rgba"></a><h3>gimp_cairo_set_source_rgba ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cairo_set_source_rgba (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>);</pre>
<p>
Sets the source pattern within <em class="parameter"><code>cr</code></em> to the solid translucent color
described by <em class="parameter"><code>color</code></em>.
</p>
<p>
This function calls <code class="function">cairo_set_source_rgba()</code> for you.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>Cairo context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>GimpRGB color</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-cairo-checkerboard-create"></a><h3>gimp_cairo_checkerboard_create ()</h3>
<pre class="programlisting"><span class="returnvalue">cairo_pattern_t</span> * gimp_cairo_checkerboard_create (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
<em class="parameter"><code><span class="type">gint</span> size</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *light</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *dark</code></em>);</pre>
<p>
Create a repeating checkerboard pattern.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>Cairo context</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>check size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>light</code></em> :</span></p></td>
<td>light check color or <code class="literal">NULL</code> to use the default light gray</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dark</code></em> :</span></p></td>
<td>dark check color or <code class="literal">NULL</code> to use the default dark gray</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new Cairo pattern that can be used as a source on <em class="parameter"><code>cr</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-CAIRO-RGB24-SET-PIXEL:CAPS"></a><h3>GIMP_CAIRO_RGB24_SET_PIXEL()</h3>
<pre class="programlisting">#define GIMP_CAIRO_RGB24_SET_PIXEL(d, r, g, b)</pre>
<p>
Sets a single pixel in an Cairo image surface in <code class="literal">CAIRO_FORMAT_RGB24</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
<td>pointer to the destination buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
<td>red component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
<td>green component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>blue component</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-CAIRO-RGB24-GET-PIXEL:CAPS"></a><h3>GIMP_CAIRO_RGB24_GET_PIXEL()</h3>
<pre class="programlisting">#define GIMP_CAIRO_RGB24_GET_PIXEL(s, r, g, b)</pre>
<p>
Gets a single pixel from a Cairo image surface in <code class="literal">CAIRO_FORMAT_RGB24</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
<td>pointer to the source buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
<td>red component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
<td>green component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>blue component</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS"></a><h3>GIMP_CAIRO_ARGB32_SET_PIXEL()</h3>
<pre class="programlisting">#define GIMP_CAIRO_ARGB32_SET_PIXEL(d, r, g, b, a)</pre>
<p>
Sets a single pixel in an Cairo image surface in <code class="literal">CAIRO_FORMAT_ARGB32</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
<td>pointer to the destination buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
<td>red component, not pre-multiplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
<td>green component, not pre-multiplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>blue component, not pre-multiplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>alpha component</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS"></a><h3>GIMP_CAIRO_ARGB32_GET_PIXEL()</h3>
<pre class="programlisting">#define GIMP_CAIRO_ARGB32_GET_PIXEL(s, r, g, b, a)</pre>
<p>
Gets a single pixel from a Cairo image surface in <code class="literal">CAIRO_FORMAT_ARGB32</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>s</code></em> :</span></p></td>
<td>pointer to the source buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
<td>red component, not pre-multiplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
<td>green component, not pre-multiplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>blue component, not pre-multiplied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>alpha component</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.8</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>

View File

@ -31,7 +31,7 @@
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpColorManaged.top_of_page"></a>GimpColorManaged</span></h2>
<p>GimpColorManaged</p>
<p>GimpColorManaged — An interface dealing with color profiles.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
@ -39,14 +39,15 @@
<a name="libgimpcolor-GimpColorManaged.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged">GimpColorManaged</a>;
struct <a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManagedInterface" title="struct GimpColorManagedInterface">GimpColorManagedInterface</a>;
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></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> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *len</code></em>);
const <span class="returnvalue">guint8</span> * <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> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>,
<em class="parameter"><code><span class="type">gsize</span> *len</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorManaged.html#gimp-color-managed-profile-changed" title="gimp_color_managed_profile_changed ()">gimp_color_managed_profile_changed</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgimpcolor-GimpColorManaged.description"></a><h2>Description</h2>
<p>
An interface dealing with color profiles.
</p>
</div>
<div class="refsect1">
@ -77,8 +78,8 @@ const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.htm
<hr>
<div class="refsect2">
<a name="gimp-color-managed-get-icc-profile"></a><h3>gimp_color_managed_get_icc_profile ()</h3>
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> * gimp_color_managed_get_icc_profile (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *len</code></em>);</pre>
<pre class="programlisting">const <span class="returnvalue">guint8</span> * gimp_color_managed_get_icc_profile (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpColorManaged.html#GimpColorManaged" title="GimpColorManaged"><span class="type">GimpColorManaged</span></a> *managed</code></em>,
<em class="parameter"><code><span class="type">gsize</span> *len</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>

View File

@ -31,7 +31,8 @@
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpColorSpace.top_of_page"></a>GimpColorSpace</span></h2>
<p>GimpColorSpace — Utility functions which convert colors between different color models.</p>
<p>GimpColorSpace — Utility functions which convert colors between
different color models.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
@ -42,7 +43,7 @@
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsl" title="gimp_rgb_to_hsl ()">gimp_rgb_to_hsl</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="struct GimpHSL"><span class="type">GimpHSL</span></a> *hsl</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-cmyk" title="gimp_rgb_to_cmyk ()">gimp_rgb_to_cmyk</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> pullout</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> pullout</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb" title="gimp_hsv_to_rgb ()">gimp_hsv_to_rgb</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV"><span class="type">GimpHSV</span></a> *hsv</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
@ -51,53 +52,53 @@
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-cmyk-to-rgb" title="gimp_cmyk_to_rgb ()">gimp_cmyk_to_rgb</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hwb" title="gimp_rgb_to_hwb ()">gimp_rgb_to_hwb</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *whiteness</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *blackness</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hwb-to-rgb" title="gimp_hwb_to_rgb ()">gimp_hwb_to_rgb</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> whiteness</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> blackness</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *whiteness</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *blackness</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hwb-to-rgb" title="gimp_hwb_to_rgb ()">gimp_hwb_to_rgb</a> (<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> whiteness</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> blackness</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv-int" title="gimp_rgb_to_hsv_int ()">gimp_rgb_to_hsv_int</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb-int" title="gimp_hsv_to_rgb_int ()">gimp_hsv_to_rgb_int</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsl-int" title="gimp_rgb_to_hsl_int ()">gimp_rgb_to_hsl_int</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-cmyk-int" title="gimp_rgb_to_cmyk_int ()">gimp_rgb_to_cmyk_int</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *pullout</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-cmyk-to-rgb-int" title="gimp_cmyk_to_rgb_int ()">gimp_cmyk_to_rgb_int</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *black</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsl-to-rgb-int" title="gimp_hsl_to_rgb_int ()">gimp_hsl_to_rgb_int</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *lightness</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv4" title="gimp_rgb_to_hsv4 ()">gimp_rgb_to_hsv4</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb4" title="gimp_hsv_to_rgb4 ()">gimp_hsv_to_rgb4</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv-int" title="gimp_rgb_to_hsv_int ()">gimp_rgb_to_hsv_int</a> (<em class="parameter"><code><span class="type">gint</span> *red</code></em>,
<em class="parameter"><code><span class="type">gint</span> *green</code></em>,
<em class="parameter"><code><span class="type">gint</span> *blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb-int" title="gimp_hsv_to_rgb_int ()">gimp_hsv_to_rgb_int</a> (<em class="parameter"><code><span class="type">gint</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gint</span> *saturation</code></em>,
<em class="parameter"><code><span class="type">gint</span> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsl-int" title="gimp_rgb_to_hsl_int ()">gimp_rgb_to_hsl_int</a> (<em class="parameter"><code><span class="type">gint</span> *red</code></em>,
<em class="parameter"><code><span class="type">gint</span> *green</code></em>,
<em class="parameter"><code><span class="type">gint</span> *blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-cmyk-int" title="gimp_rgb_to_cmyk_int ()">gimp_rgb_to_cmyk_int</a> (<em class="parameter"><code><span class="type">gint</span> *red</code></em>,
<em class="parameter"><code><span class="type">gint</span> *green</code></em>,
<em class="parameter"><code><span class="type">gint</span> *blue</code></em>,
<em class="parameter"><code><span class="type">gint</span> *pullout</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-cmyk-to-rgb-int" title="gimp_cmyk_to_rgb_int ()">gimp_cmyk_to_rgb_int</a> (<em class="parameter"><code><span class="type">gint</span> *cyan</code></em>,
<em class="parameter"><code><span class="type">gint</span> *magenta</code></em>,
<em class="parameter"><code><span class="type">gint</span> *yellow</code></em>,
<em class="parameter"><code><span class="type">gint</span> *black</code></em>);
<span class="returnvalue">gint</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-l-int" title="gimp_rgb_to_l_int ()">gimp_rgb_to_l_int</a> (<em class="parameter"><code><span class="type">gint</span> red</code></em>,
<em class="parameter"><code><span class="type">gint</span> green</code></em>,
<em class="parameter"><code><span class="type">gint</span> blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsl-to-rgb-int" title="gimp_hsl_to_rgb_int ()">gimp_hsl_to_rgb_int</a> (<em class="parameter"><code><span class="type">gint</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gint</span> *saturation</code></em>,
<em class="parameter"><code><span class="type">gint</span> *lightness</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-rgb-to-hsv4" title="gimp_rgb_to_hsv4 ()">gimp_rgb_to_hsv4</a> (<em class="parameter"><code>const <span class="type">guchar</span> *rgb</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpColorSpace.html#gimp-hsv-to-rgb4" title="gimp_hsv_to_rgb4 ()">gimp_hsv_to_rgb4</a> (<em class="parameter"><code><span class="type">guchar</span> *rgb</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgimpcolor-GimpColorSpace.description"></a><h2>Description</h2>
<p>
When programming pixel data manipulation functions you will often use
algorithms operating on a color model different from the one GIMP
uses. This file provides utility functions to convert colors between
different color spaces.
When programming pixel data manipulation functions you will often
use algorithms operating on a color model different from the one
GIMP uses. This file provides utility functions to convert colors
between different color spaces.
</p>
</div>
<div class="refsect1">
@ -151,7 +152,7 @@ color value.
<div class="refsect2">
<a name="gimp-rgb-to-cmyk"></a><h3>gimp_rgb_to_cmyk ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_cmyk (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> pullout</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> pullout</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="struct GimpCMYK"><span class="type">GimpCMYK</span></a> *cmyk</code></em>);</pre>
<p>
Does a naive conversion from RGB to CMYK colorspace. A simple
@ -250,9 +251,9 @@ colorspace, without taking color profiles into account.
<div class="refsect2">
<a name="gimp-rgb-to-hwb"></a><h3>gimp_rgb_to_hwb ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hwb (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *whiteness</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *blackness</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *whiteness</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *blackness</code></em>);</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
@ -288,9 +289,9 @@ undefined.
<hr>
<div class="refsect2">
<a name="gimp-hwb-to-rgb"></a><h3>gimp_hwb_to_rgb ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hwb_to_rgb (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> whiteness</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> blackness</code></em>,
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hwb_to_rgb (<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> whiteness</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> blackness</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<p>
H is defined in the range [0, 6] or UNDEFINED, B and W are both in the
@ -321,9 +322,9 @@ range [0, 1]. The returned RGB values are all in the range [0, 1].
<hr>
<div class="refsect2">
<a name="gimp-rgb-to-hsv-int"></a><h3>gimp_rgb_to_hsv_int ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hsv_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *blue</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hsv_int (<em class="parameter"><code><span class="type">gint</span> *red</code></em>,
<em class="parameter"><code><span class="type">gint</span> *green</code></em>,
<em class="parameter"><code><span class="type">gint</span> *blue</code></em>);</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
@ -355,9 +356,9 @@ ranges: H [0, 359], S [0, 255], V [0, 255].
<hr>
<div class="refsect2">
<a name="gimp-hsv-to-rgb-int"></a><h3>gimp_hsv_to_rgb_int ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsv_to_rgb_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *value</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsv_to_rgb_int (<em class="parameter"><code><span class="type">gint</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gint</span> *saturation</code></em>,
<em class="parameter"><code><span class="type">gint</span> *value</code></em>);</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].
@ -387,9 +388,9 @@ corresponding, with the returned values all in the range [0, 255].
<hr>
<div class="refsect2">
<a name="gimp-rgb-to-hsl-int"></a><h3>gimp_rgb_to_hsl_int ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hsl_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *blue</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hsl_int (<em class="parameter"><code><span class="type">gint</span> *red</code></em>,
<em class="parameter"><code><span class="type">gint</span> *green</code></em>,
<em class="parameter"><code><span class="type">gint</span> *blue</code></em>);</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].
@ -420,10 +421,10 @@ L [0, 255], S [0, 255].
<hr>
<div class="refsect2">
<a name="gimp-rgb-to-cmyk-int"></a><h3>gimp_rgb_to_cmyk_int ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_cmyk_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *pullout</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_cmyk_int (<em class="parameter"><code><span class="type">gint</span> *red</code></em>,
<em class="parameter"><code><span class="type">gint</span> *green</code></em>,
<em class="parameter"><code><span class="type">gint</span> *blue</code></em>,
<em class="parameter"><code><span class="type">gint</span> *pullout</code></em>);</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.
@ -457,10 +458,10 @@ the black value (0-255)</td>
<hr>
<div class="refsect2">
<a name="gimp-cmyk-to-rgb-int"></a><h3>gimp_cmyk_to_rgb_int ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyk_to_rgb_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *cyan</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *magenta</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *yellow</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *black</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_cmyk_to_rgb_int (<em class="parameter"><code><span class="type">gint</span> *cyan</code></em>,
<em class="parameter"><code><span class="type">gint</span> *magenta</code></em>,
<em class="parameter"><code><span class="type">gint</span> *yellow</code></em>,
<em class="parameter"><code><span class="type">gint</span> *black</code></em>);</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.
@ -490,9 +491,9 @@ formula that doesn't take any color-profiles into account is used.
<hr>
<div class="refsect2">
<a name="gimp-rgb-to-l-int"></a><h3>gimp_rgb_to_l_int ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gimp_rgb_to_l_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> blue</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gint</span> gimp_rgb_to_l_int (<em class="parameter"><code><span class="type">gint</span> red</code></em>,
<em class="parameter"><code><span class="type">gint</span> green</code></em>,
<em class="parameter"><code><span class="type">gint</span> blue</code></em>);</pre>
<p>
Calculates the lightness value of an RGB triplet with the formula
L = (max(R, G, B) + min (R, G, B)) / 2
@ -522,9 +523,9 @@ L = (max(R, G, B) + min (R, G, B)) / 2
<hr>
<div class="refsect2">
<a name="gimp-hsl-to-rgb-int"></a><h3>gimp_hsl_to_rgb_int ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsl_to_rgb_int (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *lightness</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsl_to_rgb_int (<em class="parameter"><code><span class="type">gint</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gint</span> *saturation</code></em>,
<em class="parameter"><code><span class="type">gint</span> *lightness</code></em>);</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].
@ -554,10 +555,10 @@ corresponding, with the returned values all in the range [0, 255].
<hr>
<div class="refsect2">
<a name="gimp-rgb-to-hsv4"></a><h3>gimp_rgb_to_hsv4 ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hsv4 (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *value</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_to_hsv4 (<em class="parameter"><code>const <span class="type">guchar</span> *rgb</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *value</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
@ -584,10 +585,10 @@ rgb[2] is blue (0..255)</td>
<hr>
<div class="refsect2">
<a name="gimp-hsv-to-rgb4"></a><h3>gimp_hsv_to_rgb4 ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsv_to_rgb4 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsv_to_rgb4 (<em class="parameter"><code><span class="type">guchar</span> *rgb</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>

View File

@ -40,15 +40,19 @@
<pre class="synopsis">struct <a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV">GimpHSV</a>;
struct <a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="struct GimpHSL">GimpHSL</a>;
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsv-set" title="gimp_hsv_set ()">gimp_hsv_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV"><span class="type">GimpHSV</span></a> *hsv</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsv-clamp" title="gimp_hsv_clamp ()">gimp_hsv_clamp</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV"><span class="type">GimpHSV</span></a> *hsv</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsva-set" title="gimp_hsva_set ()">gimp_hsva_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV"><span class="type">GimpHSV</span></a> *hsva</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpHSV.html#gimp-hsl-set" title="gimp_hsl_set ()">gimp_hsl_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="struct GimpHSL"><span class="type">GimpHSL</span></a> *hsl</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> h</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> s</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> l</code></em>);
#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>
@ -68,7 +72,30 @@ Definitions and Functions relating to HSV colors.
};
</pre>
<p>
Used to keep HSV and HSVA colors. All components are in a range of
[0.0..1.0].
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSV.h"></a>h</code></em>;</span></p></td>
<td>the hue component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSV.s"></a>s</code></em>;</span></p></td>
<td>the saturation component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSV.v"></a>v</code></em>;</span></p></td>
<td>the value component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSV.a"></a>a</code></em>;</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
@ -78,15 +105,38 @@ Definitions and Functions relating to HSV colors.
};
</pre>
<p>
Used to keep HSL and HSLA colors. All components are in a range of
[0.0..1.0].
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSL.h"></a>h</code></em>;</span></p></td>
<td>the hue component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSL.s"></a>s</code></em>;</span></p></td>
<td>the saturation component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSL.l"></a>l</code></em>;</span></p></td>
<td>the lightness component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpHSL.a"></a>a</code></em>;</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-hsv-set"></a><h3>gimp_hsv_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsv_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV"><span class="type">GimpHSV</span></a> *hsv</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);</pre>
<p>
</p>
</div>
@ -101,15 +151,24 @@ Definitions and Functions relating to HSV colors.
<div class="refsect2">
<a name="gimp-hsva-set"></a><h3>gimp_hsva_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsva_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSV" title="struct GimpHSV"><span class="type">GimpHSV</span></a> *hsva</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> hue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> saturation</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> hue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> saturation</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-hsl-set"></a><h3>gimp_hsl_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_hsl_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpHSV.html#GimpHSL" title="struct GimpHSL"><span class="type">GimpHSL</span></a> *hsl</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> h</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> s</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> l</code></em>);</pre>
<p class="since">Since GIMP 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="GIMP-TYPE-HSV:CAPS"></a><h3>GIMP_TYPE_HSV</h3>
<pre class="programlisting">#define GIMP_TYPE_HSV (gimp_hsv_get_type ())
</pre>

View File

@ -40,75 +40,75 @@
<pre class="synopsis">struct <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB">GimpRGB</a>;
enum <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode">GimpRGBCompositeMode</a>;
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set" title="gimp_rgb_set ()">gimp_rgb_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> blue</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> red</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> green</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-alpha" title="gimp_rgb_set_alpha ()">gimp_rgb_set_alpha</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-set-uchar" title="gimp_rgb_set_uchar ()">gimp_rgb_set_uchar</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> blue</code></em>);
<em class="parameter"><code><span class="type">guchar</span> red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> blue</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-get-uchar" title="gimp_rgb_get_uchar ()">gimp_rgb_get_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blue</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()">gimp_rgb_parse_name</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex" title="gimp_rgb_parse_hex ()">gimp_rgb_parse_hex</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *hex</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()">gimp_rgb_parse_css</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *css</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-list-names" title="gimp_rgb_list_names ()">gimp_rgb_list_names</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***names</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *blue</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-name" title="gimp_rgb_parse_name ()">gimp_rgb_parse_name</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-hex" title="gimp_rgb_parse_hex ()">gimp_rgb_parse_hex</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *hex</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-parse-css" title="gimp_rgb_parse_css ()">gimp_rgb_parse_css</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *css</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);
<span class="returnvalue">gint</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-list-names" title="gimp_rgb_list_names ()">gimp_rgb_list_names</a> (<em class="parameter"><code>const <span class="type">gchar</span> ***names</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> **colors</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-add" title="gimp_rgb_add ()">gimp_rgb_add</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-subtract" title="gimp_rgb_subtract ()">gimp_rgb_subtract</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-multiply" title="gimp_rgb_multiply ()">gimp_rgb_multiply</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> factor</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-distance" title="gimp_rgb_distance ()">gimp_rgb_distance</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> factor</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-distance" title="gimp_rgb_distance ()">gimp_rgb_distance</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb2</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-max" title="gimp_rgb_max ()">gimp_rgb_max</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-min" title="gimp_rgb_min ()">gimp_rgb_min</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-max" title="gimp_rgb_max ()">gimp_rgb_max</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-min" title="gimp_rgb_min ()">gimp_rgb_min</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-clamp" title="gimp_rgb_clamp ()">gimp_rgb_clamp</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-gamma" title="gimp_rgb_gamma ()">gimp_rgb_gamma</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> gamma</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance" title="gimp_rgb_luminance ()">gimp_rgb_luminance</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar" title="gimp_rgb_luminance_uchar ()">gimp_rgb_luminance_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity" title="gimp_rgb_intensity ()">gimp_rgb_intensity</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity-uchar" title="gimp_rgb_intensity_uchar ()">gimp_rgb_intensity_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> gamma</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance" title="gimp_rgb_luminance ()">gimp_rgb_luminance</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">guchar</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-luminance-uchar" title="gimp_rgb_luminance_uchar ()">gimp_rgb_luminance_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity" title="gimp_rgb_intensity ()">gimp_rgb_intensity</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">guchar</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-intensity-uchar" title="gimp_rgb_intensity_uchar ()">gimp_rgb_intensity_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgb-composite" title="gimp_rgb_composite ()">gimp_rgb_composite</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color2</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompositeMode" title="enum GimpRGBCompositeMode"><span class="type">GimpRGBCompositeMode</span></a> mode</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set" title="gimp_rgba_set ()">gimp_rgba_set</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);
<em class="parameter"><code><span class="type">gdouble</span> red</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> green</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> blue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-set-uchar" title="gimp_rgba_set_uchar ()">gimp_rgba_set_uchar</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> alpha</code></em>);
<em class="parameter"><code><span class="type">guchar</span> red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> blue</code></em>,
<em class="parameter"><code><span class="type">guchar</span> alpha</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-get-uchar" title="gimp_rgba_get_uchar ()">gimp_rgba_get_uchar</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *alpha</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-parse-css" title="gimp_rgba_parse_css ()">gimp_rgba_parse_css</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *css</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);
<em class="parameter"><code><span class="type">guchar</span> *red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *blue</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *alpha</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-parse-css" title="gimp_rgba_parse_css ()">gimp_rgba_parse_css</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *css</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-add" title="gimp_rgba_add ()">gimp_rgba_add</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-subtract" title="gimp_rgba_subtract ()">gimp_rgba_subtract</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba2</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-multiply" title="gimp_rgba_multiply ()">gimp_rgba_multiply</a> (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> factor</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-distance" title="gimp_rgba_distance ()">gimp_rgba_distance</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba1</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> factor</code></em>);
<span class="returnvalue">gdouble</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-rgba-distance" title="gimp_rgba_distance ()">gimp_rgba_distance</a> (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba2</code></em>);
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-RGB-LUMINANCE:CAPS" title="GIMP_RGB_LUMINANCE()">GIMP_RGB_LUMINANCE</a> (r,
g,
@ -124,17 +124,17 @@ enum <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGBCompo
#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>
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"><span class="returnvalue">GParamSpec</span></a> * <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb" title="gimp_param_spec_rgb ()">gimp_param_spec_rgb</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *nick</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *blurb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
<span class="returnvalue">GParamSpec</span> * <a class="link" href="libgimpcolor-GimpRGB.html#gimp-param-spec-rgb" title="gimp_param_spec_rgb ()">gimp_param_spec_rgb</a> (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *nick</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *blurb</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> has_alpha</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *default_value</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a> flags</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> *pspec</code></em>);
<em class="parameter"><code><span class="type">GParamFlags</span> flags</code></em>);
<span class="returnvalue">gboolean</span> <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> (<em class="parameter"><code><span class="type">GParamSpec</span> *pspec</code></em>);
#define <a class="link" href="libgimpcolor-GimpRGB.html#GIMP-VALUE-HOLDS-RGB:CAPS" title="GIMP_VALUE_HOLDS_RGB()">GIMP_VALUE_HOLDS_RGB</a> (value)
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb" title="gimp_value_get_rgb ()">gimp_value_get_rgb</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-get-rgb" title="gimp_value_get_rgb ()">gimp_value_get_rgb</a> (<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-set-rgb" title="gimp_value_set_rgb ()">gimp_value_set_rgb</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
<span class="returnvalue">void</span> <a class="link" href="libgimpcolor-GimpRGB.html#gimp-value-set-rgb" title="gimp_value_set_rgb ()">gimp_value_set_rgb</a> (<em class="parameter"><code><span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);
</pre>
</div>
@ -153,7 +153,30 @@ Definitions and Functions relating to RGB colors.
};
</pre>
<p>
Used to keep RGB and RGBA colors. All components are in a range of
[0.0..1.0].
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpRGB.r"></a>r</code></em>;</span></p></td>
<td>the red component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpRGB.g"></a>g</code></em>;</span></p></td>
<td>the green component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpRGB.b"></a>b</code></em>;</span></p></td>
<td>the blue component</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gdouble</span> <em class="structfield"><code><a name="GimpRGB.a"></a>a</code></em>;</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
@ -171,9 +194,9 @@ Definitions and Functions relating to RGB colors.
<div class="refsect2">
<a name="gimp-rgb-set"></a><h3>gimp_rgb_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> blue</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> red</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> green</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> blue</code></em>);</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
@ -182,65 +205,100 @@ set exactly as they are passed in.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr></tbody>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
<td>the red component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
<td>the green component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
<td>the blue component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-set-alpha"></a><h3>gimp_rgb_set_alpha ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_set_alpha (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);</pre>
<p>
Sets the alpha component of <em class="parameter"><code>rgb</code></em> and leaves the RGB components unchanged.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr></tbody>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-set-uchar"></a><h3>gimp_rgb_set_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_set_uchar (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> blue</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> blue</code></em>);</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>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr></tbody>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
<td>the red component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
<td>the green component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
<td>the blue component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-get-uchar"></a><h3>gimp_rgb_get_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_get_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blue</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> *red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *blue</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-parse-name"></a><h3>gimp_rgb_parse_name ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_rgb_parse_name (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_rgb_parse_name (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</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>.
Attempts to parse a color name. This function accepts <a class="ulink" href="http://www.w3.org/TR/SVG/types.html#ColorKeywords" target="_top">SVG 1.0
color keywords</a>.
</p>
<p>
This function does not touch the alpha component of <em class="parameter"><code>rgb</code></em>.
@ -263,8 +321,8 @@ This function does not touch the alpha component of <em class="parameter"><code>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</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>
</tr>
</tbody>
</table></div>
@ -273,9 +331,9 @@ been set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Ma
<hr>
<div class="refsect2">
<a name="gimp-rgb-parse-hex"></a><h3>gimp_rgb_parse_hex ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_rgb_parse_hex (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *hex</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_rgb_parse_hex (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *hex</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</pre>
<p>
Attempts to parse a string describing an RGB color in hexadecimal
notation (optionally prefixed with a '#').
@ -301,8 +359,8 @@ This function does not touch the alpha component of <em class="parameter"><code>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</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>
</tr>
</tbody>
</table></div>
@ -311,9 +369,9 @@ been set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Ma
<hr>
<div class="refsect2">
<a name="gimp-rgb-parse-css"></a><h3>gimp_rgb_parse_css ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_rgb_parse_css (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *css</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_rgb_parse_css (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *css</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</pre>
<p>
Attempts to parse a string describing an RGB color in CSS
notation. This can be either a numerical representation
@ -343,8 +401,8 @@ This function does not touch the alpha component of <em class="parameter"><code>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</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>
</tr>
</tbody>
</table></div>
@ -353,7 +411,7 @@ set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.
<hr>
<div class="refsect2">
<a name="gimp-rgb-list-names"></a><h3>gimp_rgb_list_names ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> gimp_rgb_list_names (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> ***names</code></em>,
<pre class="programlisting"><span class="returnvalue">gint</span> gimp_rgb_list_names (<em class="parameter"><code>const <span class="type">gchar</span> ***names</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> **colors</code></em>);</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
@ -361,7 +419,7 @@ 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 <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> on the
arrays are allocated dynamically. You must call <code class="function">g_free()</code> 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>
<div class="variablelist"><table border="0">
@ -404,14 +462,14 @@ arrays are allocated dynamically. You must call <a href="http://library.gnome.or
<div class="refsect2">
<a name="gimp-rgb-multiply"></a><h3>gimp_rgb_multiply ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_multiply (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> factor</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> factor</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-distance"></a><h3>gimp_rgb_distance ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_rgb_distance (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_rgb_distance (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb2</code></em>);</pre>
<p>
</p>
@ -419,14 +477,14 @@ arrays are allocated dynamically. You must call <a href="http://library.gnome.or
<hr>
<div class="refsect2">
<a name="gimp-rgb-max"></a><h3>gimp_rgb_max ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_rgb_max (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_rgb_max (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-min"></a><h3>gimp_rgb_min ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_rgb_min (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_rgb_min (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<p>
</p>
</div>
@ -441,40 +499,52 @@ arrays are allocated dynamically. You must call <a href="http://library.gnome.or
<div class="refsect2">
<a name="gimp-rgb-gamma"></a><h3>gimp_rgb_gamma ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgb_gamma (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> gamma</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> gamma</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-luminance"></a><h3>gimp_rgb_luminance ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_rgb_luminance (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_rgb_luminance (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the luminous intensity of the range from 0.0 to 1.0.</td>
</tr></tbody>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-luminance-uchar"></a><h3>gimp_rgb_luminance_uchar ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> gimp_rgb_luminance_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">guchar</span> gimp_rgb_luminance_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the luminous intensity in the range from 0 to 255.</td>
</tr></tbody>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-intensity"></a><h3>gimp_rgb_intensity ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_rgb_intensity (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_rgb_intensity (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</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>
@ -484,16 +554,22 @@ This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the intensity in the range from 0.0 to 1.0.</td>
</tr></tbody>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgb-intensity-uchar"></a><h3>gimp_rgb_intensity_uchar ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> gimp_rgb_intensity_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">guchar</span> gimp_rgb_intensity_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</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>
@ -503,10 +579,16 @@ This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgb</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the intensity in the range from 0 to 255.</td>
</tr></tbody>
</tr>
</tbody>
</table></div>
</div>
<hr>
@ -522,10 +604,10 @@ This function is deprecated! Use <a class="link" href="libgimpcolor-GimpRGB.html
<div class="refsect2">
<a name="gimp-rgba-set"></a><h3>gimp_rgba_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgba_set (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> red</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> green</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> blue</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> alpha</code></em>);</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
@ -533,49 +615,85 @@ and the values are set exactly as they are passed in.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr></tbody>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
<td>the red component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
<td>the green component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
<td>the blue component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgba-set-uchar"></a><h3>gimp_rgba_set_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgba_set_uchar (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> blue</code></em>,
<em class="parameter"><code><span class="type">guchar</span> alpha</code></em>);</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>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>rgba</code></em> :</span></p></td>
<td>a <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> struct</td>
</tr></tbody>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
<td>the red component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
<td>the green component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
<td>the blue component</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
<td>the alpha component</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgba-get-uchar"></a><h3>gimp_rgba_get_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgba_get_uchar (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *red</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *green</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blue</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *alpha</code></em>);</pre>
<em class="parameter"><code><span class="type">guchar</span> *red</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *green</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *blue</code></em>,
<em class="parameter"><code><span class="type">guchar</span> *alpha</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgba-parse-css"></a><h3>gimp_rgba_parse_css ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_rgba_parse_css (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *css</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_rgba_parse_css (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *css</code></em>,
<em class="parameter"><code><span class="type">gint</span> len</code></em>);</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>
@ -603,8 +721,8 @@ they leave the alpha channel unspecified.
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</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>
</tr>
</tbody>
</table></div>
@ -630,14 +748,14 @@ set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.
<div class="refsect2">
<a name="gimp-rgba-multiply"></a><h3>gimp_rgba_multiply ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_rgba_multiply (<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> factor</code></em>);</pre>
<em class="parameter"><code><span class="type">gdouble</span> factor</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-rgba-distance"></a><h3>gimp_rgba_distance ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> gimp_rgba_distance (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba1</code></em>,
<pre class="programlisting"><span class="returnvalue">gdouble</span> gimp_rgba_distance (<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba1</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgba2</code></em>);</pre>
<p>
</p>
@ -682,26 +800,7 @@ set, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.
<p><code class="literal">GIMP_RGB_INTENSITY</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This macro calculates the intensity of an RGB value based on
coefficients taken from the NTSC analog television standard.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
<td>red</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>g</code></em> :</span></p></td>
<td>green</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>blue</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
@ -745,7 +844,6 @@ 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 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> derived from <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-BOXED:CAPS"><span class="type">G_TYPE_BOXED</span></a>.
</p>
</div>
<hr>
@ -759,15 +857,15 @@ coefficients taken from the NTSC analog television standard.
<hr>
<div class="refsect2">
<a name="gimp-param-spec-rgb"></a><h3>gimp_param_spec_rgb ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"><span class="returnvalue">GParamSpec</span></a> * gimp_param_spec_rgb (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *nick</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *blurb</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> has_alpha</code></em>,
<pre class="programlisting"><span class="returnvalue">GParamSpec</span> * gimp_param_spec_rgb (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *nick</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *blurb</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> has_alpha</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *default_value</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a> flags</code></em>);</pre>
<em class="parameter"><code><span class="type">GParamFlags</span> flags</code></em>);</pre>
<p>
Creates a param spec to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> value.
See <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#g-param-spec-internal"><code class="function">g_param_spec_internal()</code></a> for more information.
See <code class="function">g_param_spec_internal()</code> for more information.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
@ -787,7 +885,7 @@ See <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.
<tr>
<td><p><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the alpha channel has relevance.</td>
<code class="literal">TRUE</code> if the alpha channel has relevance.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>default_value</code></em> :</span></p></td>
@ -795,12 +893,12 @@ See <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>a combination of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamFlags"><span class="type">GParamFlags</span></a>
<td>a combination of <span class="type">GParamFlags</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> instance</td>
<td>a newly allocated <span class="type">GParamSpec</span> instance</td>
</tr>
</tbody>
</table></div>
@ -809,18 +907,18 @@ See <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.
<hr>
<div class="refsect2">
<a name="gimp-param-spec-rgb-has-alpha"></a><h3>gimp_param_spec_rgb_has_alpha ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_param_spec_rgb_has_alpha (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> *pspec</code></em>);</pre>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_param_spec_rgb_has_alpha (<em class="parameter"><code><span class="type">GParamSpec</span> *pspec</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pspec</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.html#GParamSpec"><span class="type">GParamSpec</span></a> to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> value.</td>
<td>a <span class="type">GParamSpec</span> to hold an <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct 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>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the alpha channel is relevant.</td>
<code class="literal">TRUE</code> if the alpha channel is relevant.</td>
</tr>
</tbody>
</table></div>
@ -837,7 +935,7 @@ See <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.
<hr>
<div class="refsect2">
<a name="gimp-value-get-rgb"></a><h3>gimp_value_get_rgb ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_value_get_rgb (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
<pre class="programlisting"><span class="returnvalue">void</span> gimp_value_get_rgb (<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code><a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<p>
</p>
@ -845,7 +943,7 @@ See <a href="http://library.gnome.org/devel/gobject/unstable/gobject-GParamSpec.
<hr>
<div class="refsect2">
<a name="gimp-value-set-rgb"></a><h3>gimp_value_set_rgb ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gimp_value_set_rgb (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>,
<pre class="programlisting"><span class="returnvalue">void</span> gimp_value_set_rgb (<em class="parameter"><code><span class="type">GValue</span> *value</code></em>,
<em class="parameter"><code>const <a class="link" href="libgimpcolor-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *rgb</code></em>);</pre>
<p>
</p>

View File

@ -6,13 +6,13 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="up" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="prev" href="libgimpcolor-index-new-in-2-6.html" title="Index of new symbols in GIMP 2.6">
<link rel="prev" href="libgimpcolor-index-new-in-2-8.html" title="Index of new symbols in GIMP 2.8">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="libgimpcolor-index-new-in-2-6.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="p" href="libgimpcolor-index-new-in-2-8.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Color Library Reference Manual</th>

View File

@ -7,7 +7,7 @@
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="up" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="prev" href="libgimpcolor-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
<link rel="next" href="libgimpcolor-index-deprecated.html" title="Index of deprecated symbols">
<link rel="next" href="libgimpcolor-index-new-in-2-8.html" title="Index of new symbols in GIMP 2.8">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
@ -17,12 +17,26 @@
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
<td><a accesskey="n" href="libgimpcolor-index-deprecated.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
<td><a accesskey="n" href="libgimpcolor-index-new-in-2-8.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="index">
<div class="titlepage"><div><div><h2 class="title">
<a name="libgimpcolor-index-new-in-2-6"></a>Index of new symbols in GIMP 2.6</h2></div></div></div>
<div class="index"></div>
<div class="index"><div class="indexdiv">
<h3>G</h3>
<dl>
<dt>GIMP_CAIRO_ARGB32_SET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS">GIMP_CAIRO_ARGB32_SET_PIXEL()</a>
</dt>
<dt>gimp_cairo_checkerboard_create, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-checkerboard-create">gimp_cairo_checkerboard_create ()</a>
</dt>
<dt>GIMP_CAIRO_RGB24_SET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-SET-PIXEL:CAPS">GIMP_CAIRO_RGB24_SET_PIXEL()</a>
</dt>
<dt>gimp_cairo_set_source_rgb, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgb">gimp_cairo_set_source_rgb ()</a>
</dt>
<dt>gimp_cairo_set_source_rgba, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgba">gimp_cairo_set_source_rgba ()</a>
</dt>
</dl>
</div></div>
</div>
<div class="footer">
<hr>

View File

@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index of new symbols in GIMP 2.8</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="up" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="prev" href="libgimpcolor-index-new-in-2-6.html" title="Index of new symbols in GIMP 2.6">
<link rel="next" href="libgimpcolor-index-deprecated.html" title="Index of deprecated symbols">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="libgimpcolor-index-new-in-2-6.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
<td><a accesskey="n" href="libgimpcolor-index-deprecated.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="index">
<div class="titlepage"><div><div><h2 class="title">
<a name="libgimpcolor-index-new-in-2-8"></a>Index of new symbols in GIMP 2.8</h2></div></div></div>
<div class="index"><div class="indexdiv">
<h3>G</h3>
<dl>
<dt>GIMP_CAIRO_ARGB32_GET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS">GIMP_CAIRO_ARGB32_GET_PIXEL()</a>
</dt>
<dt>GIMP_CAIRO_RGB24_GET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-GET-PIXEL:CAPS">GIMP_CAIRO_RGB24_GET_PIXEL()</a>
</dt>
<dt>gimp_hsl_set, <a class="indexterm" href="libgimpcolor-GimpHSV.html#gimp-hsl-set">gimp_hsl_set ()</a>
</dt>
</dl>
</div></div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>

View File

@ -6,14 +6,14 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="up" href="index.html" title="GIMP Color Library Reference Manual">
<link rel="prev" href="libgimpcolor-GimpBilinear.html" title="GimpBilinear">
<link rel="prev" href="libgimpcolor-GimpCairoColor.html" title="GimpCairoColor">
<link rel="next" href="libgimpcolor-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="libgimpcolor-GimpBilinear.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="p" href="libgimpcolor-GimpCairoColor.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
@ -61,6 +61,20 @@
</dt>
<dt>gimp_bilinear_rgba, <a class="indexterm" href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba">gimp_bilinear_rgba ()</a>
</dt>
<dt>GIMP_CAIRO_ARGB32_GET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS">GIMP_CAIRO_ARGB32_GET_PIXEL()</a>
</dt>
<dt>GIMP_CAIRO_ARGB32_SET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS">GIMP_CAIRO_ARGB32_SET_PIXEL()</a>
</dt>
<dt>gimp_cairo_checkerboard_create, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-checkerboard-create">gimp_cairo_checkerboard_create ()</a>
</dt>
<dt>GIMP_CAIRO_RGB24_GET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-GET-PIXEL:CAPS">GIMP_CAIRO_RGB24_GET_PIXEL()</a>
</dt>
<dt>GIMP_CAIRO_RGB24_SET_PIXEL, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-SET-PIXEL:CAPS">GIMP_CAIRO_RGB24_SET_PIXEL()</a>
</dt>
<dt>gimp_cairo_set_source_rgb, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgb">gimp_cairo_set_source_rgb ()</a>
</dt>
<dt>gimp_cairo_set_source_rgba, <a class="indexterm" href="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgba">gimp_cairo_set_source_rgba ()</a>
</dt>
<dt>gimp_cmyka_get_uchar, <a class="indexterm" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar">gimp_cmyka_get_uchar ()</a>
</dt>
<dt>gimp_cmyka_set, <a class="indexterm" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set">gimp_cmyka_set ()</a>
@ -81,6 +95,8 @@
</dt>
<dt>gimp_color_managed_profile_changed, <a class="indexterm" href="libgimpcolor-GimpColorManaged.html#gimp-color-managed-profile-changed">gimp_color_managed_profile_changed ()</a>
</dt>
<dt>gimp_hsl_set, <a class="indexterm" href="libgimpcolor-GimpHSV.html#gimp-hsl-set">gimp_hsl_set ()</a>
</dt>
<dt>gimp_hsl_to_rgb, <a class="indexterm" href="libgimpcolor-GimpColorSpace.html#gimp-hsl-to-rgb">gimp_hsl_to_rgb ()</a>
</dt>
<dt>gimp_hsl_to_rgb_int, <a class="indexterm" href="libgimpcolor-GimpColorSpace.html#gimp-hsl-to-rgb-int">gimp_hsl_to_rgb_int ()</a>

View File

@ -10,11 +10,13 @@
<sub name="GimpColorManaged" link="libgimpcolor-GimpColorManaged.html"/>
<sub name="GimpAdaptiveSupersample" link="libgimpcolor-GimpAdaptiveSupersample.html"/>
<sub name="GimpBilinear" link="libgimpcolor-GimpBilinear.html"/>
<sub name="GimpCairoColor" link="libgimpcolor-GimpCairoColor.html"/>
</sub>
<sub name="Index" link="libgimpcolor-index.html"/>
<sub name="Index of new symbols in GIMP 2.2" link="libgimpcolor-index-new-in-2-2.html"/>
<sub name="Index of new symbols in GIMP 2.4" link="libgimpcolor-index-new-in-2-4.html"/>
<sub name="Index of new symbols in GIMP 2.6" link="libgimpcolor-index-new-in-2-6.html"/>
<sub name="Index of new symbols in GIMP 2.8" link="libgimpcolor-index-new-in-2-8.html"/>
<sub name="Index of deprecated symbols" link="libgimpcolor-index-deprecated.html"/>
</chapters>
<functions>
@ -69,6 +71,7 @@
<keyword type="function" name="gimp_hsv_set ()" link="libgimpcolor-GimpHSV.html#gimp-hsv-set"/>
<keyword type="function" name="gimp_hsv_clamp ()" link="libgimpcolor-GimpHSV.html#gimp-hsv-clamp"/>
<keyword type="function" name="gimp_hsva_set ()" link="libgimpcolor-GimpHSV.html#gimp-hsva-set"/>
<keyword type="function" name="gimp_hsl_set ()" link="libgimpcolor-GimpHSV.html#gimp-hsl-set" since="GIMP 2.8"/>
<keyword type="macro" name="GIMP_TYPE_HSV" link="libgimpcolor-GimpHSV.html#GIMP-TYPE-HSV:CAPS"/>
<keyword type="macro" name="GIMP_TYPE_HSL" link="libgimpcolor-GimpHSV.html#GIMP-TYPE-HSL:CAPS"/>
<keyword type="struct" name="struct GimpCMYK" link="libgimpcolor-GimpCMYK.html#GimpCMYK"/>
@ -111,5 +114,12 @@
<keyword type="function" name="gimp_bilinear_rgb ()" link="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb"/>
<keyword type="function" name="gimp_bilinear_rgba ()" link="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba"/>
<keyword type="function" name="gimp_bilinear_pixels_8 ()" link="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8"/>
<keyword type="function" name="gimp_cairo_set_source_rgb ()" link="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgb" since="GIMP 2.6"/>
<keyword type="function" name="gimp_cairo_set_source_rgba ()" link="libgimpcolor-GimpCairoColor.html#gimp-cairo-set-source-rgba" since="GIMP 2.6"/>
<keyword type="function" name="gimp_cairo_checkerboard_create ()" link="libgimpcolor-GimpCairoColor.html#gimp-cairo-checkerboard-create" since="GIMP 2.6"/>
<keyword type="macro" name="GIMP_CAIRO_RGB24_SET_PIXEL()" link="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-SET-PIXEL:CAPS" since="GIMP 2.6"/>
<keyword type="macro" name="GIMP_CAIRO_RGB24_GET_PIXEL()" link="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-RGB24-GET-PIXEL:CAPS" since="GIMP 2.8"/>
<keyword type="macro" name="GIMP_CAIRO_ARGB32_SET_PIXEL()" link="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-SET-PIXEL:CAPS" since="GIMP 2.6"/>
<keyword type="macro" name="GIMP_CAIRO_ARGB32_GET_PIXEL()" link="libgimpcolor-GimpCairoColor.html#GIMP-CAIRO-ARGB32-GET-PIXEL:CAPS" since="GIMP 2.8"/>
</functions>
</book>

View File

@ -35,16 +35,21 @@
<span class="refentrytitle"><a href="libgimpcolor-GimpCMYK.html">GimpCMYK</a></span><span class="refpurpose"> — Definitions and Functions relating to CMYK colors.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorSpace.html">GimpColorSpace</a></span><span class="refpurpose"> — Utility functions which convert colors between different color models.</span>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorSpace.html">GimpColorSpace</a></span><span class="refpurpose"> — Utility functions which convert colors between
different color models.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorManaged.html">GimpColorManaged</a></span><span class="refpurpose"></span>
<span class="refentrytitle"><a href="libgimpcolor-GimpColorManaged.html">GimpColorManaged</a></span><span class="refpurpose"> — An interface dealing with color profiles.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpAdaptiveSupersample.html">GimpAdaptiveSupersample</a></span><span class="refpurpose"> — Functions to perform adaptive supersampling on an area.</span>
<span class="refentrytitle"><a href="libgimpcolor-GimpAdaptiveSupersample.html">GimpAdaptiveSupersample</a></span><span class="refpurpose"> — Functions to perform adaptive supersampling on
an area.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpBilinear.html">GimpBilinear</a></span><span class="refpurpose"></span>
<span class="refentrytitle"><a href="libgimpcolor-GimpBilinear.html">GimpBilinear</a></span><span class="refpurpose"> — Utility functions for bilinear interpolation.</span>
</dt>
<dt>
<span class="refentrytitle"><a href="libgimpcolor-GimpCairoColor.html">GimpCairoColor</a></span><span class="refpurpose"> — Color utility functions for cairo</span>
</dt>
</dl>
</div>

View File

@ -20,6 +20,7 @@
<xi:include href="xml/gimpcolormanaged.xml" />
<xi:include href="xml/gimpadaptivesupersample.xml" />
<xi:include href="xml/gimpbilinear.xml" />
<xi:include href="xml/gimpcairocolor.xml" />
</part>
<index id="libgimpcolor-index">
@ -34,6 +35,9 @@
<index role="GIMP 2.6" id="libgimpcolor-index-new-in-2-6">
<title>Index of new symbols in GIMP 2.6</title>
</index>
<index role="GIMP 2.8" id="libgimpcolor-index-new-in-2-8">
<title>Index of new symbols in GIMP 2.8</title>
</index>
<index role="deprecated" id="libgimpcolor-index-deprecated">
<title>Index of deprecated symbols</title>
</index>

View File

@ -21,6 +21,7 @@ GimpHSL
gimp_hsv_set
gimp_hsv_clamp
gimp_hsva_set
gimp_hsl_set
GIMP_TYPE_HSV
GIMP_TYPE_HSL
<SUBSECTION Standard>
@ -140,3 +141,15 @@ gimp_bilinear_rgb
gimp_bilinear_rgba
gimp_bilinear_pixels_8
</SECTION>
<SECTION>
<FILE>gimpcairocolor</FILE>
<TITLE>GimpCairoColor</TITLE>
gimp_cairo_set_source_rgb
gimp_cairo_set_source_rgba
gimp_cairo_checkerboard_create
GIMP_CAIRO_RGB24_SET_PIXEL
GIMP_CAIRO_RGB24_GET_PIXEL
GIMP_CAIRO_ARGB32_SET_PIXEL
GIMP_CAIRO_ARGB32_GET_PIXEL
</SECTION>

View File

@ -2,11 +2,11 @@
GimpAdaptiveSupersample
<!-- ##### SECTION Short_Description ##### -->
Functions to perform adaptive supersampling on an area.
<!-- ##### SECTION Long_Description ##### -->
<para>
Functions to perform adaptive supersampling on an area.
</para>
<!-- ##### SECTION See_Also ##### -->

View File

@ -0,0 +1,98 @@
<!-- ##### SECTION Title ##### -->
GimpCairoColor
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### SECTION Image ##### -->
<!-- ##### FUNCTION gimp_cairo_set_source_rgb ##### -->
<para>
</para>
@cr:
@color:
<!-- ##### FUNCTION gimp_cairo_set_source_rgba ##### -->
<para>
</para>
@cr:
@color:
<!-- ##### FUNCTION gimp_cairo_checkerboard_create ##### -->
<para>
</para>
@cr:
@size:
@light:
@dark:
@Returns:
<!-- ##### MACRO GIMP_CAIRO_RGB24_SET_PIXEL ##### -->
<para>
</para>
@d:
@r:
@g:
@b:
<!-- ##### MACRO GIMP_CAIRO_RGB24_GET_PIXEL ##### -->
<para>
</para>
@s:
@r:
@g:
@b:
<!-- ##### MACRO GIMP_CAIRO_ARGB32_SET_PIXEL ##### -->
<para>
</para>
@d:
@r:
@g:
@b:
@a:
<!-- ##### MACRO GIMP_CAIRO_ARGB32_GET_PIXEL ##### -->
<para>
</para>
@s:
@r:
@g:
@b:
@a:

View File

@ -2,11 +2,11 @@
GimpCMYK
<!-- ##### SECTION Short_Description ##### -->
Definitions and Functions relating to CMYK colors.
<!-- ##### SECTION Long_Description ##### -->
<para>
Definitions and Functions relating to CMYK colors.
</para>
<!-- ##### SECTION See_Also ##### -->

View File

@ -2,14 +2,11 @@
GimpColorSpace
<!-- ##### SECTION Short_Description ##### -->
Utility functions which convert colors between different color models.
<!-- ##### SECTION Long_Description ##### -->
<para>
When programming pixel data manipulation functions you will often use
algorithms operating on a color model different from the one GIMP
uses. This file provides utility functions to convert colors between
different color spaces.
</para>
<!-- ##### SECTION See_Also ##### -->

View File

@ -2,11 +2,11 @@
GimpHSV
<!-- ##### SECTION Short_Description ##### -->
Definitions and Functions relating to HSV colors.
<!-- ##### SECTION Long_Description ##### -->
<para>
Definitions and Functions relating to HSV colors.
</para>
<!-- ##### SECTION See_Also ##### -->
@ -71,6 +71,17 @@ Definitions and Functions relating to HSV colors.
@alpha:
<!-- ##### FUNCTION gimp_hsl_set ##### -->
<para>
</para>
@hsl:
@h:
@s:
@l:
<!-- ##### MACRO GIMP_TYPE_HSV ##### -->
<para>

View File

@ -2,11 +2,11 @@
GimpRGB
<!-- ##### SECTION Short_Description ##### -->
Definitions and Functions relating to RGB colors.
<!-- ##### SECTION Long_Description ##### -->
<para>
Definitions and Functions relating to RGB colors.
</para>
<!-- ##### SECTION See_Also ##### -->
@ -359,13 +359,12 @@ Definitions and Functions relating to RGB colors.
<!-- ##### MACRO GIMP_RGB_INTENSITY ##### -->
<para>
This macro calculates the intensity of an RGB value based on
coefficients taken from the NTSC analog television standard.
</para>
@r: red
@g: green
@b: blue
@r:
@g:
@b:
<!-- ##### MACRO GIMP_RGB_INTENSITY_RED ##### -->
@ -391,7 +390,7 @@ coefficients taken from the NTSC analog television standard.
<!-- ##### MACRO GIMP_TYPE_RGB ##### -->
<para>
#GIMP_TYPE_RGB is a #GType derived from #G_TYPE_BOXED.
</para>