Name
cpattern:GetControlPoint -- get control point
Synopsis
status, x, y = cpattern:GetControlPoint(patch_num, point_num)
Function
Gets the control point point_num of patch patch_num for a mesh pattern.

patch_num can range from 0 to n-1 where n is the number returned by cpattern:GetPatchCount().

Valid values for point_num are from 0 to 3 and identify the control points as explained in cairo.PatternMesh().

This function also returns #CAIRO_STATUS_SUCCESS, or #CAIRO_STATUS_INVALID_INDEX if patch_num or point_num is not valid for the pattern. If the pattern is not a mesh pattern, #CAIRO_STATUS_PATTERN_TYPE_MISMATCH is returned.

Inputs
patch_num
the patch number to return data for
point_num
the control point number to return data for
Results
status
#CAIRO_STATUS_SUCCESS or #CAIRO_STATUS_INVALID_INDEX
x
x coordinate of the control point
y
y coordinate of the control point

Show TOC