Pattern.getRgba

Gets the solid color for a solid color pattern. Since 1.4

class Pattern
getRgba
(
out double red
,
out double green
,
out double blue
,
out double alpha
)

Parameters

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

Return Value

CAIRO_STATUS_SUCCESS, or CAIRO_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a solid color pattern.