Closed Pratishruti closed 4 years ago
Hi @Pratishruti ,
you can't get URI because the image you receive is kept in memory, not stored anywhere in the file system. GoldenEye simply converts bytes array into a Bitmap and it is up to developer to store the image wherever he wants.
Ok. Thanks a lot.
Actually I wanted to know the angle of image so that I can rotate it when captured in landscape mode. But, I guess its not possible if I get the bitmap instead of Uri. In my case I am keeping auto rotation off in device as in some devices (i.e. moto x4) when I change the orientation of device while recording video the camera view gets distorted. After this the distortion issue is resolved but if I capture an image in landscape mode then the image is showing as it it I mean in landscape mode. I wanted to rotate it to portrait while showing.
Thanks.
The image is always rotated to the same orientation that the picture was taken in. You can rotate the Bitmap however you want using Bitmap transformation after you receive the image.
Hi, Can I get the Uri of image as I am getting bitmap from " onPictureTaken" callback.
goldenEye.takePicture( onPictureTaken = { bitmap ->
Please help me out. Thanks