F fjhcitus Member Licensed User Longtime User Feb 11, 2018 #1 Hi I would like the result of CameraEx_PictureTaken (Data() As Byte) event to show the image in an ImageView - is this possible ?
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 Feb 11, 2018 #2 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
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.)
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2018 #3 https://www.b4x.com/android/forum/threads/b4x-bytes-to-file.70111/#content Upvote 0