Pattern.getRgba

Gets the solid color for a solid color pattern.

Note that the color and alpha values are not premultiplied.

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

Type: cairo.types.Status

cairo.types.Status.Success, or cairo.types.Status.PatternTypeMismatch if the pattern is not a solid color pattern.