Hi
I used Erel's example however tweaked it to save a preview image to a local folder. Whilst this seems to work..
and does save an image file, the image itself is not saved properly as per attached image. Can someone please advise me please what I can do to solve this problem. Thank you...
I used Erel's example however tweaked it to save a preview image to a local folder. Whilst this seems to work..
B4X:
Sub Camera1_Preview (PreviewPic() As Byte)
If DateTime.Now > lastPreviewSaved + IntervalMs Then
Dim jpeg() As Byte = camEx.PreviewImageToJpeg(PreviewPic, 70)
lastPreviewSaved = DateTime.Now
' return today's date in yyyy-MM-dd_HHmmss format
Dim filename As String = modMashiane.PictureDate & ".jpg"
Dim dir As String = File.DirRootExternal & "/example/" & xToday
camEx.SavePictureToFile(jpeg, dir, filename)
End If
End Sub
and does save an image file, the image itself is not saved properly as per attached image. Can someone please advise me please what I can do to solve this problem. Thank you...