Region.offset

Moves a region the specified distance.

class Region
void
offset
(
int dx
,
int dy
)

Parameters

dx int

the distance to move the region horizontally

dy int

the distance to move the region vertically

Meta