Android Scanbot SDK API reference
Toggle table of contents
7.1.0
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
Android Scanbot SDK API reference
Android Scanbot SDK API reference
/
io.scanbot.sdk.util.bitmap
/
BitmapUtils
/
calculateInSampleSize
calculate
In
Sample
Size
@
JvmStatic
fun
calculateInSampleSize
(
options
:
BitmapFactory.Options
,
reqWidth
:
Int
,
reqHeight
:
Int
)
:
Int
Calculates best inSampleSize to fit reqWidth and reqHeight or a bit more
Return
Parameters
options
req
Width
req
Height