B4i Question xResizeAndCrop - Does anyone have a working demo for iPhone - Alexander Stolte (first post)    Oct 15, 2024   (2 reactions) It's easy: iMedia lib. is needed Dim cam As Camera cam.Initialize("cam", B4XPages.GetNativeParent(Me)) cam.SelectFromSavedPhotos(Sender, cam.TYPE_IMAGE) Wait For (cam) Cam_Complete(Success As Boolean, Image As B4XBitmap, VideoPath As String) If Success Then If Image.IsIni B4i Question Page for cam (iMedia Library) - Andrew (Digitwell) (first post)    Jan 09, 2022   (1 reaction) You can initialise the camera like this
Camera.Initialize("cam", B4XPages.GetNativeParent(Me))
GetNativeParent gets the Page, Activity etc based on platform. B4J Tutorial Scan 1D / 2D barcodes with your Laptop's WebCam - Johan Schoeman    May 21, 2023   (10 reactions) 'now we can get the cameras name list and choose Dim L As List = cam.WebCam_Names defCamera = cam.getWebcamByName(L.Get(0)) 'let it be ... again the first single webcam for text Dim ViewSizes As List = cam.ViewSizes Log(ViewSizes) cam.setDimension2(defCamera, ViewSizes.G B4J Library WebCam class: how to choose a second camera ? - peacemaker    Jul 26, 2023   (4 reactions) height As Int)
cam.RunMethod("setViewSize",Array(Dimension.InitializeNewInstance("java.awt.Dimension",Array(width,height))))
End Sub
Public Sub OpenCam(cam As JavaObject)
cam.RunMethod("open",Null)
End Sub
Public Sub TakePicture(cam As JavaObject,filename As String)
FileIO = FileIO.Ini B4A Question Cam2 - managing multiples cameras - Erel (first post)    Jun 13, 2021   (1 reaction) The current Camera2 library doesn't support multi-cameras. B4J Library [Class] Webcam Capture - CanguroCode    Apr 26, 2015   (16 reactions) getDefaultCam
SetDimension (cam As JavaObject, width As Int, height As Int)
OpenCam (cam As JavaObject)
TakePicture(cam As JavaObject, filename As String)
Example:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 400
#AdditionalJar : webcam-capture-0.3.10
#Additiona B4J Library ABMaterial - a robust(?) camera component - JackKirk (first post)    Apr 13, 2024 {'value': 'mediaDevices API supported'});
cam_overlay.addEventListener('click', function()
{
var cam_click = document.getElementById('cam_click');
cam_click.play();
var cam_canvas = document.getElementById('cam_canvas');
var cam_context = cam_canvas.getContext B4A Question What does cam.SupportedCaptureSizes return? - DonManfred (first post)    Oct 18, 2018 It returns Object CameraSize resp. a list of CameraSize objects
Public PreviewSize, CaptureSize As CameraSize
PreviewSize.Initialize(1920, 1080)
CaptureSize.Initialize(1920, 1080) B4A Tutorial Camera2 - Still images and videos - erosolmi (first post)    Jan 08, 2018 Thanks a lot works fine.
TakePicture calls cam.FocusAndTakePicture it takes a picture but not considering current zoom level. B4J Question JavaObject to Image View - nazilabdulla    Apr 08, 2020 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(BufferedIm Page: 1   2   3   4   5   6   7   Powered by ColBERT |