scaleIfNeeded

fun scaleIfNeeded(image: Bitmap, maxHeight: Int, maxWidth: Int): Bitmap

Scales bitmap with saved aspectRatio

Return

Bitmap scaled image bitmap