Sets the mode to be used for drawing outside the area of a pattern. See #cairo_extend_t for details on the semantics of each extend strategy.

cairo_pattern_set_extend(pattern, extend)

Arguments

pattern

[cairo_pattern_t *] a #cairo_pattern_t

extend

[int] a #cairo_extend_t describing how the area outside of the pattern will be drawn

Details

The default extend mode is %CAIRO_EXTEND_NONE for surface patterns and %CAIRO_EXTEND_PAD for gradient patterns.

Since: 1.0

C function prototype: void cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend)

See also