scaled

fun scaled(width: Int, height: Int, smooth: Boolean = true): Bitmap32

Creates a new Bitmap32 with the specified new dimensions widthxheight scaling the original content. The smooth parameter determines the quality of the interpolation. smooth=false will use a nearest neighborhood implementation.