The camera object allows you to access the device cameras. This library is supported by Android 1.6+. If possible it is recommended to work with CameraEx class that wraps this object and adds many features. The CameraEx class requires Android 2.3+. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Permissions:
android.permission.CAMERA
Events:
Ready (Success As Boolean) PictureTaken (Data() As Byte) Preview (Data() As Byte) FocusDone (Success As Boolean)
Starts auto-focus function. The FocusDone event will be raised when the operation completes. You can check whether the "auto" focus mode is supported with CameraEx class.
CancelAutoFocus
Cancels the auto-focus operation. Does nothing if no such operation is in progress.
Initializes the back camera. Panel - The preview images will be displayed on the panel. EventName - Events subs prefix. The Ready event will be raised when the camera has finished opening.
Same as Initialize. CameraId is the id of the hardware camera. This method is only available from Android 2.3+.
Release
Releases the camera object and allows other processes to access the camera.
StartPreview
Starts displaying the preview images.
StopPreview
Stops displaying the preview images.
TakePicture
Takes a picture. When the picture is ready, the PictureTaken event will be raised. You should not call TakePicture while another picture is currently taken. The preview images are stopped after calling this method. You can call StartPreview to restart the preview images.
Top