calculate In Sample Size
private fun calculateInSampleSize(options: BitmapFactory.Options, reqWidth: Int, reqHeight: Int): Int
Content copied to clipboard
Calculates the inSampleSize for the bitmap decoding.
Return
the inSampleSize for the bitmap decoding
See also
Parameters
options
the options of the bitmap decoding
req Width
the min required width of the decoded bitmap
req Height
the min required height of the decoded bitmap