Struct

GimpRGB

Description [src]

struct GimpRGB {
  gdouble r;
  gdouble g;
  gdouble b;
  gdouble a;
}

Definitions and Functions relating to RGB colors.

Structure members
r

The red component.

g

The green component.

b

The blue component.

a

The alpha component.

Instance methods

gimp_rgba_add
No description available.

gimp_rgba_distance
No description available.

gimp_rgba_get_uchar

Gets the 8bit red, green, blue and alpha components of rgba.

gimp_rgba_multiply
No description available.

gimp_rgba_set

Sets the red, green, blue and alpha components of rgb. The values should be between 0.0 and 1.0 but there is no check to enforce this and the values are set exactly as they are passed in.

gimp_rgba_set_uchar

Sets the red, green, blue and alpha components of rgba from 8bit values (0 to 255).

gimp_rgb_add
No description available.

gimp_rgb_clamp
No description available.

gimp_rgb_composite
No description available.

gimp_rgb_get_uchar

Writes the red, green, blue and alpha components of rgb to the color components red, green and blue.

gimp_rgb_luminance
No description available.

since: 2.4

gimp_rgb_luminance_uchar
No description available.

since: 2.4

gimp_rgb_max
No description available.

gimp_rgb_min
No description available.

gimp_rgb_multiply
No description available.

gimp_rgb_set

Sets the red, green and blue components of rgb and leaves the alpha component unchanged. The color values should be between 0.0 and 1.0 but there is no check to enforce this and the values are set exactly as they are passed in.

gimp_rgb_set_alpha

Sets the alpha component of rgb and leaves the RGB components unchanged.

gimp_rgb_set_uchar

Sets the red, green and blue components of rgb from 8bit values (0 to 255) and leaves the alpha component unchanged.

gimp_rgb_to_hsl

Convert an RGB color value to a HSL (Hue, Saturation, Lightness) color value.

gimp_rgb_to_hsv

Does a conversion from RGB to HSV (Hue, Saturation, Value) colorspace.