skrypton-api / com.waicool20.skrypton.sikulix / ISikuliRegion / offset

offset

abstract fun offset(loc: Location): SKryptonRegion

Returns a new Region object, whose upper left corner is relocated adding the location’s x and y value to the respective values of the given region. Width and height are the same. So this clones a region at a different place.

Parameters

loc - Location object to offset by

Return
Region with offset coordinates.