set_pattern


Description:

public void set_pattern (Rectangle rect, Buffer pattern, int x_offset, int y_offset)

Fill a region with a repeating pattern.

Offsets parameters are relative to the origin (0, 0) and not to the rectangle. So be carefull about the origin of pattern and this extents.

Parameters:

this

a Buffer

rect

the region of this to fill

pattern

a Buffer to be repeated as a pattern

x_offset

where the pattern starts horizontally

y_offset

where the pattern starts vertical