Name
gimpcolorspace -- Utility functions which convert colors between different color models.
Synopsis
void gimp_rgb_to_hsv (gint *red,
gint *green,
gint *blue);
void gimp_hsv_to_rgb (gint *hue,
gint *saturation,
gint *value);
void gimp_rgb_to_hls (gint *red,
gint *green,
gint *blue);
gint gimp_rgb_to_l (gint red,
gint green,
gint blue);
void gimp_hls_to_rgb (gint *hue,
gint *lightness,
gint *saturation);
void gimp_rgb_to_hsv_double (gdouble *red,
gdouble *green,
gdouble *blue);
void gimp_hsv_to_rgb_double (gdouble *hue,
gdouble *saturation,
gdouble *value);
void gimp_rgb_to_hsv4 (guchar *hsv,
gdouble *red,
gdouble *green,
gdouble *blue);
void gimp_hsv_to_rgb4 (guchar *rgb,
gdouble hue,
gdouble saturation,
gdouble value);
#define INTENSITY_RED
#define INTENSITY_GREEN
#define INTENSITY_BLUE
#define INTENSITY (r,g,b) |
Description
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 concert colors between
different color spaces.
Details
gimp_rgb_to_hsv ()
void gimp_rgb_to_hsv (gint *red,
gint *green,
gint *blue); |
gimp_hsv_to_rgb ()
void gimp_hsv_to_rgb (gint *hue,
gint *saturation,
gint *value); |
gimp_rgb_to_hls ()
void gimp_rgb_to_hls (gint *red,
gint *green,
gint *blue); |
gimp_rgb_to_l ()
gint gimp_rgb_to_l (gint red,
gint green,
gint blue); |
gimp_hls_to_rgb ()
void gimp_hls_to_rgb (gint *hue,
gint *lightness,
gint *saturation); |
gimp_rgb_to_hsv_double ()
void gimp_rgb_to_hsv_double (gdouble *red,
gdouble *green,
gdouble *blue); |
gimp_hsv_to_rgb_double ()
void gimp_hsv_to_rgb_double (gdouble *hue,
gdouble *saturation,
gdouble *value); |
gimp_rgb_to_hsv4 ()
void gimp_rgb_to_hsv4 (guchar *hsv,
gdouble *red,
gdouble *green,
gdouble *blue); |
gimp_hsv_to_rgb4 ()
void gimp_hsv_to_rgb4 (guchar *rgb,
gdouble hue,
gdouble saturation,
gdouble value); |
INTENSITY_RED
#define INTENSITY_RED 0.30 |
INTENSITY_GREEN
#define INTENSITY_GREEN 0.59 |
INTENSITY_BLUE
#define INTENSITY_BLUE 0.11 |