Pattern.getLinearPoints

Gets the gradient endpoints for a linear gradient.

class Pattern
getLinearPoints
(
out double x0
,
out double y0
,
out double x1
,
out double y1
)

Parameters

x0 double

return value for the x coordinate of the first point, or null

y0 double

return value for the y coordinate of the first point, or null

x1 double

return value for the x coordinate of the second point, or null

y1 double

return value for the y coordinate of the second point, or null

Return Value

Type: cairo.types.Status

cairo.types.Status.Success, or cairo.types.Status.PatternTypeMismatch if pattern is not a linear gradient pattern.