Gambas Documentation - /comp/gb.cairo/cairo/imagepattern

# Cairo.ImagePattern (gb.cairo)

Static Function ImagePattern ( Image As Image [ , X As Float, Y As Float, Extend As Integer, Filter As Integer ] ) As CairoPattern

Creates a new Cairo pattern from an image.

- Image : image object.

- X, Y : translation assigned to the pattern matrix.

- Extend : the mode to be used for drawing outside the area of a pattern.

- Filter : the filter to be used for resizing when using this pattern.

The Extend argument takes one of the following values:

- ExtendNone

- ExtendRepeat

- ExtendReflect

- ExtendPad

The Filter argument takes the same values as the CairoPattern.Filter property.