Android Question Convert Camera output into bitmap for listview

John Decowski

Member
Licensed User
Longtime User
how would you convert the camera output into a bitmap (without having to save it). So you can put the image into a list view?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is possible to convert the output to a bitmap by using InputStream.InitializeFromBytesArray together with Bitmap.Initialize2.

However a better solution will be to save the image to a temporary file and then load it with LoadBitmapSample. Otherwise you will soon run out of memory as the camera images can be huge.
 
Upvote 0
Top