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

decodeFile

static fun decodeFile(filename: java.lang.String, minSize: int, square: boolean): Bitmap

Decode a image file into a Bitmap.

Parameters

filename - java.lang.String: image file path.

minSize - int: minWidth the image must have.

square - boolean: width and height of the image should be same.

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

static fun decodeFile(filename: java.lang.String, minSize: int, square: boolean, fixRotation: boolean): Bitmap

Decode a image file into a Bitmap.

Parameters

filename - java.lang.String: image file path.

minSize - int: minWidth the image must have.

square - boolean: width and height of the image should be same.

fixRotation - boolean: fix image rotation based on the exif orientation information.

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