scale

suspend fun Bitmap.scale(maxSize: Int): Bitmap

Rescales the bitmap

Return

scaled bitmap

Parameters

maxSize

The maximum size of the longest side of the image (can be either height or width) in pixels