Gets path defining the patch patch_num for a mesh pattern.

cairo_mesh_pattern_get_path(pattern, patch_num)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

patch_num

[unsigned int] the patch number to return data for

Value

[cairo_path_t *]

Details

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

Return value: the path defining the patch, or a path with status %CAIRO_STATUS_INVALID_INDEX if patch_num or point_num is not valid for pattern. If pattern is not a mesh pattern, a path with status %CAIRO_STATUS_PATTERN_TYPE_MISMATCH is returned.

Since: 1.12

C function prototype: cairo_path_t * cairo_mesh_pattern_get_path (cairo_pattern_t *pattern, unsigned int patch_num)

See also