toSubImage

open override fun toSubImage(offset: Position, size: Size): TileImage

Returns a part of this TileImage as a new TileImage.

Parameters

offset

the position from which copying will start

size

the size of the newly created image. If the new image would overflow an exception is thrown

Sources

(source)
Link copied to clipboard