Hi All
I am using the advanced camera lib and have taken a picture, saved the picture then load the picture to an imageview. My problem is the picture is rotated in the imageview. I am using a tablet in prtrait mode and have changed the oriportrait orilandscape setting in the app so that what I preview in the camera panel is correct orientation.
This is my picturetaken sub if it helps.
Cany anyone suggest a fix for this.
LJ
I am using the advanced camera lib and have taken a picture, saved the picture then load the picture to an imageview. My problem is the picture is rotated in the imageview. I am using a tablet in prtrait mode and have changed the oriportrait orilandscape setting in the app so that what I preview in the camera panel is correct orientation.
B4X:
Sub Camera1_PictureTaken (Data() As Byte)
camera1.StartPreview
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal & "/treescape/images/","Image.jpg", False)
out.WriteBytes(Data, 0, Data.Length)
out.Close
imageview1.Visible = True
imageview1.Bitmap = LoadBitmap(File.DirRootExternal & "/treescape/images/","Image.jpg")
'ToastMessageShow("Image saved: " & File.Combine(File.DirRootExternal, "Image.jpg"), True)
End Sub
Cany anyone suggest a fix for this.
LJ