|
|
|
|
|
Camera (Property) In french: Camera
The Camera property is used to identify and change the camera used (back or front). Remarks: - If a video recording is in progress, it is not possible to change the camera.
- This property can only be used on Camera controls that are not in "Version-26-compatible mode".
- This property corresponds to the "Camera" option in the "General" tab of the Camera control description window.
IF CAM_MyCamera.Camera = camBackCamera THEN
CAM_MyCamera.Camera = camFrontCamera
END
Syntax
Identifying the camera used by a Camera control Hide the details
<Result> = <Camera control>.Camera
<Result>: Integer constant Camera used:
| | camBackCamera | Back camera of the device. | camFrontCamera | Front camera of the device. |
The back camera is used by default. <Camera control>: Control name Name of the Camera control to be used.
Changing the camera used by a Camera control Hide the details
<Camera control>.Flash = <New camera>
<Camera control>: Control name Name of the Camera control to be used. <New camera>: Integer constant Camera used:
| | camBackCamera | Back camera of the device. | camFrontCamera | Front camera of the device. |
The back camera is used by default.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Photos
[ + ] This Android/iOS example is used to take photos and to save them by specifying a title and keywords. A search is also available. The photos are stored in the application directory, therefore they are private (not visible by other applications).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|