meshPatternGetPath

fncairo.path.Path meshPatternGetPath(cairo.pattern.Pattern pattern, uint patchNum)

Gets path defining the 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.

Parameters

patterna #cairo_pattern_t
patchNumthe patch number to return data for

Returns

the path defining the patch, or a path with status

cairo.types.Status.InvalidIndex if patch_num or point_num is not valid for pattern. If pattern is not a mesh pattern, a path with status cairo.types.Status.PatternTypeMismatch is returned.