if patch_num or point_num is not valid for pattern. If pattern is not a mesh pattern, cairo.types.Status.PatternTypeMismatch is returned.
meshPatternGetControlPoint
fn
cairo.types.Status meshPatternGetControlPoint(cairo.pattern.Pattern pattern, uint patchNum, uint pointNum, out double x, out double y)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 cairo.global.meshPatternGetPatchCount.
Valid values for point_num are from 0 to 3 and identify the control points as explained in cairo.global.patternCreateMesh.
Parameters
pattern | a #cairo_pattern_t |
patchNum | the patch number to return data for |
pointNum | the control point number to return data for |
x | return value for the x coordinate of the control point, or null |
y | return value for the y coordinate of the control point, or null |
Returns
cairo.types.Status.Success, or cairo.types.Status.InvalidIndex