calculateInSampleSize

private fun calculateInSampleSize(options: BitmapFactory.Options, reqWidth: Int, reqHeight: Int): Int

Calculates the inSampleSize for the bitmap decoding.

Return

the inSampleSize for the bitmap decoding

See also

Parameters

options

the options of the bitmap decoding

reqWidth

the min required width of the decoded bitmap

reqHeight

the min required height of the decoded bitmap