decodeStream

Decode a drawable or a raw image resource.

Return

the sourceType resource image decoded with a minimum sample size.

Parameters

minSize

minWidth the image must have.

stream

image inputStream

open fun decodeStream(stream: InputStream, minSize: Int): Bitmap