Closed brkcnplt closed 4 years ago
I've found solution which is :
fun flip(src:Bitmap):Bitmap { // create new matrix for transformation if(camera.facing==CameraKit.FACING_BACK) { val matrix = Matrix() matrix.preScale(-1.0f, 1.0f) // return transformed image return Bitmap.createBitmap(src, 0, 0, src.width, src.height, matrix, true) } else { val matrix = Matrix() matrix.preScale(1.0f, -1.0f) return Bitmap.createBitmap(src, 0, 0, src.width, src.height, matrix, true) } }
also u need you use this in captureImage part
capturedView.setImageBitmap(flip(bitmap))
Is there any way to hold the picture constant ? I tried to use
camerakit:ckMethod="still"
but ckMethod is not resolved. It might be because of the version. If I rotate the camera to FACING_BACK and then capture an image , there is no problem. But on the FACING_FRONT this issue occured.before capture
after capture