JanPRO suggests a snapshot can be taken of a view by the following code:
B4X:
Sub Snapshot(Target As View) As View
Dim NaObj As NativeObject = Target
Dim SnapshotView As View = NaObj.RunMethod("snapshotViewAfterScreenUpdates:",Array(True))
Return SnapshotView
End Sub
the snapshot itself being returned as a view.
How can the returned view be processed - e.g. how can the image in the returned view be extracted as a bitmap?
I have to do a bit of processing on the bitmap that is quite processor intensive which could be avoided if preview image was returned as YUV.
Every call to the CaptureStillImage method results in a pseudo camera shutter noise - very unprofessional when you are doing it every 2 secs - I have also mitigated this with:
All these problems would disappear if an iBarcode preview existed that is taken from the video stream and is supplied as YUV, these seem to suggest it is possible: