Android Question CameraEx byte array -> ImageView

fjhcitus

Member
Licensed User
Longtime User
Hi
I would like the result of CameraEx_PictureTaken (Data() As Byte) event to show the image in an ImageView - is this possible ?
 

MarkusR

Well-Known Member
Licensed User
Longtime User
something like this:
B4X:
    Dim inp As InputStream
    inp.InitializeFromBytesArray(Data,0,Data.Length)
 
    Dim B As Bitmap
    B.Initialize2(inp)

    ImageView1.Bitmap = B
    ImageView1.Invalidate
data is result from camera lib 2.20 PictureTaken Event
(i am new to b4a, maybe there is a better way.)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…