toResized

open override fun toResized(newSize: Size): TileGraphics

Returns a copy of this TileGraphics resized to a new size and using Tile.empty if the new size is larger than the old and it needs 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.

open override fun toResized(newSize: Size, filler: Tile): TileGraphics

Returns a copy of this image resized to a new size and using the specified filler if the new size is larger than the old one 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.