D DOM85 Active Member Licensed User Longtime User Dec 13, 2011 #1 Hi, Please, don't be cruel with me for my ignorance (!), does any could show me how to load directly in an array a picture taken by camera? (i mean without save and load) ? Maybe it is not possible.. Much thanks.
Hi, Please, don't be cruel with me for my ignorance (!), does any could show me how to load directly in an array a picture taken by camera? (i mean without save and load) ? Maybe it is not possible.. Much thanks.
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2011 #2 Here: Code: Copy Sub Camera_PictureTaken (Data() As Byte) Dim in As InputStream in.InitializeFromBytesArray(Data) Dim bmp As Bitmap bmp.Initialize2(in) Activity.SetBackgroundImage(bmp) End Sub Upvote 0
Here: Code: Copy Sub Camera_PictureTaken (Data() As Byte) Dim in As InputStream in.InitializeFromBytesArray(Data) Dim bmp As Bitmap bmp.Initialize2(in) Activity.SetBackgroundImage(bmp) End Sub
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2011 #3 Data is a bytes array holding the image using Jpeg protocol. You will need to create a Bitmap in order to analyze it. Upvote 0
Data is a bytes array holding the image using Jpeg protocol. You will need to create a Bitmap in order to analyze it.
D DOM85 Active Member Licensed User Longtime User Dec 15, 2011 #4 OK! Now it's clear. Thank you for your help (and for your patience). Upvote 0