subRegion

fun subRegion(x: Pixels, y: Pixels, width: Pixels, height: Pixels): R

Gets a smaller region that is contained in this region.

Return

New Region representing this sub-region

Parameters

x

x Offset relative to the x coordinate of this region

y

y Offset relative to the y coordinate of this region

width

Width of subregion

height

Height of sub-region

Throws

if new sub-region is not contained in the current region