resize

open override fun resize(newWidth: Int, newHeight: Int): Sprite2D

Resizes the object to the specified newWidth and newHeight in place.

Return

This object after resizing.

Parameters

newWidth

The new width of the object.

newHeight

The new height of the object.