Hello,
With CameraIntent, and the code below, photos taken in portrait mode are automatically rotated to landscape mode. What is the code please to keep them then save in portrait mode.
Thank you
With CameraIntent, and the code below, photos taken in portrait mode are automatically rotated to landscape mode. What is the code please to keep them then save in portrait mode.
Thank you
B4X:
Sub TakePicture
Dim i As Intent
i.Initialize("android.media.action.IMAGE_CAPTURE", "")
File.Delete(Starter.provider.SharedFolder, tempImageFile)
Dim u As Object = Starter.provider.GetFileUri(tempImageFile)
i.PutExtra("output", u) 'the image will be saved to this path
Try
StartActivityForResult(i)
Catch
ToastMessageShow("Camera is not available.", True)
Log(LastException)
End Try
End Sub