Gets the solid color for a solid color pattern.

cairo_pattern_get_rgba(pattern, red, green, blue, alpha)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

red

[double *] return value for red component of color, or %NULL

green

[double *] return value for green component of color, or %NULL

blue

[double *] return value for blue component of color, or %NULL

alpha

[double *] return value for alpha component of color, or %NULL

Value

[int]

Details

Return value: %CAIRO_STATUS_SUCCESS, or %CAIRO_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a solid color pattern.

Since: 1.4

C function prototype: cairo_status_t cairo_pattern_get_rgba (cairo_pattern_t *pattern, double *red, double *green, double *blue, double *alpha)

See also