_cairo_color_get_rgb (&pattern->color, red, green, blue);
if (pattern->type == CAIRO_PATTERN_SOLID) { cairo_solid_pattern_t *solid = (cairo_solid_pattern_t *) pattern;  *red   = solid->red; *green = solid->green; *blue  = solid->blue; } else *red = *green = *blue = 1.0;
_cairo_pattern_get_rgb (cairo_pattern_t *pattern,			double *red, double *green, double *blue){    _cairo_color_get_rgb (&pattern->color, red, green, blue);    return CAIRO_STATUS_SUCCESS;}