![]() | ![]() | ![]() | GIMP Color Library Reference Manual | ![]() |
---|
GimpColorSpace — Utility functions which convert colors between different color models.
struct GimpHSL; void gimp_rgb_to_hsv (const GimpRGB *rgb, GimpHSV *hsv); void gimp_rgb_to_hsl (const GimpRGB *rgb, GimpHSL *hsl); void gimp_hsv_to_rgb (const GimpHSV *hsv, GimpRGB *rgb); void gimp_hsl_to_rgb (const GimpHSL *hsl, GimpRGB *rgb); void gimp_rgb_to_hwb (const GimpRGB *rgb,gdouble *hue,gdouble *whiteness,gdouble *blackness); void gimp_hwb_to_rgb (gdouble hue,gdouble whiteness,gdouble blackness, GimpRGB *rgb); void gimp_rgb_to_hsv_int (gint *red,gint *green,gint *blue); void gimp_hsv_to_rgb_int (gint *hue,gint *saturation,gint *value); void gimp_rgb_to_hls_int (gint *red,gint *green,gint *blue);gint gimp_rgb_to_l_int (gint red,gint green,gint blue); void gimp_hls_to_rgb_int (gint *hue,gint *lightness,gint *saturation); void gimp_rgb_to_hsv4 (guchar *rgb,gdouble *hue,gdouble *saturation,gdouble *value); void gimp_hsv_to_rgb4 (guchar *rgb,gdouble hue,gdouble saturation,gdouble value);
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_rgb_to_hwb (const GimpRGB *rgb,gdouble *hue,gdouble *whiteness,gdouble *blackness);
rgb : | |
hue : | |
whiteness : | |
blackness : |
void gimp_hwb_to_rgb (gdouble hue,gdouble whiteness,gdouble blackness, GimpRGB *rgb);
hue : | |
whiteness : | |
blackness : | |
rgb : |
void gimp_rgb_to_hsv_int (gint *red,gint *green,gint *blue);
red : | |
green : | |
blue : |
void gimp_hsv_to_rgb_int (gint *hue,gint *saturation,gint *value);
hue : | |
saturation : | |
value : |
void gimp_rgb_to_hls_int (gint *red,gint *green,gint *blue);
red : | |
green : | |
blue : |
gint gimp_rgb_to_l_int (gint red,gint green,gint blue);
red : | |
green : | |
blue : | |
Returns : |
void gimp_hls_to_rgb_int (gint *hue,gint *lightness,gint *saturation);
hue : | |
lightness : | |
saturation : |
void gimp_rgb_to_hsv4 (guchar *rgb,gdouble *hue,gdouble *saturation,gdouble *value);
rgb : | |
hue : | |
saturation : | |
value : |
<< GimpHSV | GimpAdaptiveSupersample >> |