resize

fun resize(newWidth: Int, newHeight: Int): Image

Resizes the image to the specified width and height.

Return

A new Image object that is resized.

Parameters

newWidth

The new width of the image.

newHeight

The new height of the image.