B4X:
Private Webcam,ImageIO,BufferedImage,FileIO,Dimension As JavaObject
Public Sub TakePicture(cam As JavaObject,filename As String)
FileIO= FileIO.InitializeNewInstance("java.io.File",Array(filename))
BufferedImage=cam.RunMethod("getImage",Null)
ImageIO.RunMethod("write",Array(BufferedImage, "PNG", FileIO))
Log("Close: "&cam.RunMethod("close",Null))
End Sub
How can this image view in ImageView ?