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

getImageRotation

@ORIENTATION static fun getImageRotation(fileStream: java.io.InputStream): int

Get the orientation of the image file base on the exif information.

Parameters

fileStream - java.io.InputStream: image stream.

Return
int: angle in degree.

@ORIENTATION static fun getImageRotation(filename: java.lang.String): int

Get the orientation of the image file base on the exif information.

Parameters

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

Return
int: angle in degree.