decodeSampledBitmapFromResource

fun decodeSampledBitmapFromResource(file: File, reqWidth: Int, reqHeight: Int): Bitmap

Decode a sampled bitmap from a file to a Bitmap.

Return

the decoded bitmap

See also

Parameters

file

the file to decode

reqWidth

the min required width of the decoded bitmap

reqHeight

the min required height of the decoded bitmap