But that codes works for preview only, actual image still in landscape mode.
I have to save again to file in order to made actual image in portrait mode with these :
B4X:
Sub DisplayImg(Data() As Byte)
Private Bmp As Bitmap
Private Out As OutputStream
Bmp = LoadbitmapSample2(File.DirRootExternal,"1.jpg",imgVw.Width,imgVw.Height,True)
imgVw.Bitmap = Bmp
Out = File.OpenOutput(File.DirRootExternal,"1.jpg",False)
Bmp.WriteToStream(Out,100,"JPEG")
End Sub
Is that possible to set image orientation same with preview camera mode (portrait/landscape) without needed to save it first to file?