decodeFile

Decode a image file into a Bitmap.

Return

the sourceType file decoded with a minimum sample size.

Parameters

filename

image file path.

minSize

minWidth the image must have.

square

width and height of the image should be same.

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

Decode a image file into a Bitmap.

Return

the sourceType file decoded with a minimum sample size.

Parameters

filename

image file path.

fixRotation

fix image rotation based on the exif orientation information.

minSize

minWidth the image must have.

square

width and height of the image should be same.

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