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.

Functions

gimp_rgb_list_names

Returns the list of SVG 1.0 color keywords that is used by gimp_rgb_parse_name().

since: 2.2

Instance methods

gimp_rgba_add
No description available.

gimp_rgba_distance
No description available.

gimp_rgba_get_pixel

Writes the red, green, blue and alpha components of rgba to the color stored in pixel. The pixel format of pixel is determined by format.

since: 2.10

gimp_rgba_get_uchar

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

gimp_rgba_multiply
No description available.

gimp_rgba_parse_css

Similar to gimp_rgb_parse_css() but handles RGB colors with alpha channel in the numerical CSS notation (rgba(255,0,0,255) or rgba(100%,0%,0%,1000%)).

since: 2.2

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_pixel

Sets the red, green, blue and alpha components of rgba from the color stored in pixel. The pixel format of pixel is determined by format.

since: 2.10

gimp_rgba_set_uchar

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

gimp_rgba_subtract
No description available.

gimp_rgb_add
No description available.

gimp_rgb_clamp
No description available.

gimp_rgb_composite
No description available.

gimp_rgb_distance
No description available.

gimp_rgb_gamma
No description available.

gimp_rgb_get_pixel

Writes the red, green, blue and alpha components of rgb to the color stored in pixel. The pixel format of pixel is determined by format.

since: 2.10

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_parse_css

Attempts to parse a string describing an RGB color in CSS notation. This can be either a numerical representation (rgb(255,0,0) or rgb(100%,0%,0%)) or a hexadecimal notation as parsed by gimp_rgb_parse_hex() (##ff0000) or a color name as parsed by gimp_rgb_parse_name() (red).

since: 2.2

gimp_rgb_parse_hex

Attempts to parse a string describing an RGB color in hexadecimal notation (optionally prefixed with a ‘#’).

since: 2.2

gimp_rgb_parse_name

Attempts to parse a color name. This function accepts SVG 1.0 color keywords.

since: 2.2

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_pixel

Sets the red, green and blue components of rgb from the color stored in pixel. The pixel format of pixel is determined by format.

since: 2.10

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_subtract
No description available.

gimp_rgb_to_cmyk

Does a naive conversion from RGB to CMYK colorspace. A simple formula that doesn’t take any color-profiles into account is used. The amount of black pullout how can be controlled via the pullout parameter. A pullout value of 0 makes this a conversion to CMY. A value of 1 causes the maximum amount of black to be pulled out.

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.