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

decodeFile

open static fun decodeFile(filename: String!, minSize: Int, square: Boolean): Bitmap!

Decode a image file into a Bitmap.

Parameters

filename - 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.

open static fun decodeFile(filename: String!, minSize: Int, square: Boolean, fixRotation: Boolean): Bitmap!

Decode a image file into a Bitmap.

Parameters

filename - 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.