resize

fun Bitmap.resize(width: Int, height: Int): Bitmap

Resizes the Bitmap to the selected size.

Author

Arnau Mora

Since

20210604

Return

The resized Bitmap.

Parameters

width

The desired width for the new image.

height

The desired height for the new image.