meshPatternGetPath

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

pattern cairo.pattern.Pattern

a #cairo_pattern_t

patchNum uint

the patch number to return data for

Return Value

Type: cairo.path.Path

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.