resize To Square Bitmap
fun resizeToSquareBitmap(image: Bitmap, dstWidth: Int, dstHeight: Int): Bitmap
Content copied to clipboard
Resizes (crops) the given bitmap such that its dimensions are equal.
Return
Resized (cropped) bitmap with equal dimensions.
Parameters
image
Bitmap to be resized (cropped) to a square.
dstWidth
Width of the resulting bitmap.
dstHeight
Height of the resulting bitmap.