Begin a patch in a mesh pattern.

cairo_mesh_pattern_begin_patch(pattern)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

Details

After calling this function, the patch shape should be defined with cairo_mesh_pattern_move_to(), cairo_mesh_pattern_line_to() and cairo_mesh_pattern_curve_to().

After defining the patch, cairo_mesh_pattern_end_patch() must be called before using pattern as a source or mask.

Note: If pattern is not a mesh pattern then pattern will be put into an error status with a status of %CAIRO_STATUS_PATTERN_TYPE_MISMATCH. If pattern already has a current patch, it will be put into an error status with a status of %CAIRO_STATUS_INVALID_MESH_CONSTRUCTION.

Since: 1.12

C function prototype: void cairo_mesh_pattern_begin_patch (cairo_pattern_t *pattern)

See also