Android Question camera and imageview merge

jchal

Active Member
Licensed User
Longtime User
i have the camera onmy app were i can take a picture and store it on my device .
but what i waould like to do is on the top of the camera i have an imageview and i want to merge the camera image and the imageview image on a single photo.
How can i do this??
my code is as follows
B4X:
Sub Camera1_PictureTaken (Data() As Byte)
    camera1.StartPreview
    Dim out As OutputStream
    out = File.OpenOutput(File.DirRootExternal, "1.jpg", False)
    out.WriteBytes(Data, 0, Data.Length)
    out.Close
    ToastMessageShow("Image saved: " & File.Combine(File.DirRootExternal, "1.jpg"), True)
    btnTakePicture.Enabled = True
   
End Sub
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…