Camera
A Camera object represents a physical capture device and the properties associated with that device. You use a capture device to configure the properties of the underlying hardware. A capture device also provides input data, such as audio or video.
How to use
- Drop a
Camera
control from the object panel to aWindow
- Use the
Camera Inspector
to customize its properties likeCrop Image
,AutoFocus on Tap
, andAutoExposure on Tap
If you need to write code for Camera:
- Open the
Code Editor
- Select the
NewImage
orNewVideo
item inside theEvents
area and write your custom code in theCode Editor
The inspector where the Camera
class can be configured.
Example
- Drop a
Button
control from the object panel to aWindow
- Open the
Code Editor
- Select the
Action
item inside theEvents
area and write your custom code in theCode Editor
Camera1.capture()
Most important properties
Several UI aspects can be configured in the Camera
class but the whiteBalance
, mirror
, and maxScale
are the most commons to be configured.
whiteBalance
: White balance mode.mirror
: Camera mirror mode.maxScale
: Maximum scaling factor.
References
Camera class reference contains a complete list of properties and methods that can be used to customize a Camera
object.