resize

fun Bitmap.resize(newWidth: Number, newHeight: Number): Bitmap

Resize Bitmap to specified height and width.


fun Bitmap.resize(width: Int, height: Int, mode: ResizeMode = ResizeMode.AUTOMATIC, isExcludeAlpha: Boolean = false): Bitmap