Name
cpattern:GetLinearPoints -- get gradient endpoints
Synopsis
status, x0, y0, x1, y1 = cpattern:GetLinearPoints()
Function
Gets the gradient endpoints for a linear gradient.

This function also returns #CAIRO_STATUS_SUCCESS, or #CAIRO_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a linear gradient pattern.

Inputs
none

Results
status
#CAIRO_STATUS_SUCCESS or #CAIRO_STATUS_PATTERN_TYPE_MISMATCH
x0
x coordinate of the first point
y0
y coordinate of the first point
x1
x coordinate of the second point
y1
y coordinate of the second point

Show TOC