I think this is probably easy but I cannot find an example.
In the CameraEx class there is a function called PreviewImageToJpeg(data() as byte, quality as Int) as Byte()
The first parameter (data as byte array) refers to the camera preview image formatted in YUV.
My code would be something like:
But what do I need to call in order to save the preview image into the byte array in the first place.
Any help appreciated.
In the CameraEx class there is a function called PreviewImageToJpeg(data() as byte, quality as Int) as Byte()
The first parameter (data as byte array) refers to the camera preview image formatted in YUV.
My code would be something like:
B4X:
Dim jpeg() As Byte = camEx.PreviewImageToJpeg(PreviewImage, 70)
But what do I need to call in order to save the preview image into the byte array in the first place.
Any help appreciated.