cairo_extend_t

#cairo_extend_t is used to describe how pattern color/alpha will be determined for areas "outside" the pattern's natural area, (for example, outside the surface bounds or outside the gradient geometry).

Mesh patterns are not affected by the extend mode.

The default extend mode is cairo.types.Extend.None for surface patterns and cairo.types.Extend.Pad for gradient patterns.

New entries may be added in future versions.

Values

ValueMeaning
None0

pixels outside of the source pattern are fully transparent (Since 1.0)

Repeat1

the pattern is tiled by repeating (Since 1.0)

Reflect2

the pattern is tiled by reflecting at the edges (Since 1.0; but only implemented for surface patterns since 1.6)

Pad3

pixels outside of the pattern copy the closest pixel from the source (Since 1.2; but only implemented for surface patterns since 1.6)