Closed root-ansh closed 4 years ago
Also, i didn't wanted to open a new request for this, but we can't toggle HDR , right?
Have you solved this problem?
@AndyAls, not yet, went on with other projects
thank you
Hi, I ran into the same issue. For now, this is how I fixed it, applying a matrix transformation to the Bitmap:
fun Bitmap.flipAndRotate(degrees: Float): Bitmap {
val matrix = Matrix().apply {
preScale(1f, -1f)
postRotate(degrees)
}
return Bitmap.createBitmap(this, 0, 0, width, height, matrix, true)
}
The preScale(1f, -1f)
did the trick.
I used the following code to be able to open and save a front cam picture, but the resultant picture I receive is mirrored ( preview's left becomes saved picture's right and vice versa)
code:
minSDK
as 21 andtargetSDK
as 28)is there a way to recieve the image as it is, or is it a hardware problem?