ly.img.android.pesdk.utils / BitmapFactoryUtils / decodeStream

decodeStream

static fun decodeStream(stream: java.io.InputStream, minSize: int): Bitmap

Decode a drawable or a raw image resource.

Parameters

stream - java.io.InputStream: image inputStream

minSize - int: minWidth the image must have.

Return
Bitmap: the sourceType resource image decoded with a minimum sample size.