enum

Cairo::Extend

Inherits Enum / Comparable / Value / Object

Extend 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 Extend::None for surface patterns and Extend::Pad for gradient patterns.

New entries may be added in future versions.

Constants

None = 0

Pixels outside of the source pattern are fully.

Repeat = 1

The pattern is tiled by repeating.

Reflect = 2

The pattern is tiled by reflecting at the edges.

Pad = 3

Pixels outside of the pattern copy the closest pixel from the source.

Instance methods

none?

Returns true if this enum value equals None

Source
pad?

Returns true if this enum value equals Pad

Source
reflect?

Returns true if this enum value equals Reflect

Source
repeat?

Returns true if this enum value equals Repeat

Source