| GIMP Library Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
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) |
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.
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); |