withNewSize

abstract fun withNewSize(newSize: Size): TileImage

Returns a copy of this image resized to a new size. The copy will be independent from the one this method is invoked on, so modifying one will not affect the other.

abstract fun withNewSize(newSize: Size, filler: Tile): TileImage

Returns a copy of this image resized to a new size and using a specified filler Tile if the new size is larger than the old and we need to fill in empty areas. The copy will be independent from the one this method is invoked on, so modifying one will not affect the other.