I am using the CamEx2 library in some phones the resulting bitmap is good but in some phones the resulting bitmap is rotated by 90 degrees wherein the bottom of the image is located on the left. What could be the solution for this? Many thanks
This is a simple to use, cross platform library, that does many complex things under the hood. The developer calls SetMedia with a placeholder panel and a url. The panel will show an image, video or animated gif (more formats will be added). 'Show a remote image / video / animated gif in...
What i mean is that when i take a picture using CamEx2 It will produce a data as byte. The problem is the image in that byte is already rotated and not the imageview causing it to rotate. How can i resolve wherein the produced byte is always in portrait orientation at all devices?
Sub TakePicture
Try
SetState(openstate, True, VideoMode)
Wait For(cam.FocusAndTakePicture(MyTaskIndex)) Complete (Data() As Byte)
SetState(openstate, False, VideoMode)
cam.DataToFile(Data, VideoFileDir, "1.jpg")
imgbyte = Data
Dim bmp As B4XBitmap = cam.DataToBitmap(Data)
Catch
HandleError(LastException)
End Try
End Sub
What i mean is that when i take a picture using CamEx2 It will produce a data as byte. The problem is the image in that byte is already rotated and not the imageview causing it to rotate. How can i resolve wherein the produced byte is always in portrait orientation at all devices?
It happens when the camera creates a jpeg image where the image itself is rotated and the correct orientation is set in the exif headers.
SMM will load the images correctly, unlike LoadBitmap which ignores the headers.
I am using the CamEx2 library in some phones the resulting bitmap is good but in some phones the resulting bitmap is rotated by 90 degrees wherein the bottom of the image is located on the left. What could be the solution for this? Many thanks