|
|
|
|
|
- Saving a photo
- Use conditions:
- Required permissions
Captures the images received from the camera: - as an image: take a photo.
- as a video: record a video.
Depending on the platform, the following photo and video formats are used: BMP images or AVI videos. JPEG images or videos. The format and quality of the video depend on the default device settings and may differ from one device to another. JPEG images or videos. The format and quality of the video depend on the default device settings and may differ from one device to another.
Remarks:  To capture a photo or video using the device's native camera application, use CameraRunApp. - This function is equivalent to VideoCapture.
Advertencia
A partir de la versión 27, esta función queda obsoleta para aplicaciones Android e iOS. Esta función solo se conserva para controles Cámara creados con versiones anteriores y con la opción "Modo compatible con la versión 26" activada (pestaña "General" de la ventana de descripción del control).
Sintaxis
<Result> = CameraCapture(<Camera control> , <Name of created file> [, <Type of capture> [, <Capture duration> [, <Images per second> [, <Preview stream>]]]])
<Result>: Boolean - True if the video has been saved correctly,
- False otherwise. To get more details on the error, use ErrorInfo.
<Camera control>: Control name Name of the Camera control to be used. There is no need to display the video in a Camera control to save it. <Name of created file>: Character string Name and full (or relative) path of the file to create.Warning It is not possible to use a UNC path. <Type of capture>: Optional integer constant Type of capture: | | viPictureCapture |
| viVideoCapture (Default value) |
|
<Capture duration>: Optional integer or optional duration Length of the video recording (in seconds). If this parameter is set to 0 or is not specified, the video recording will stop:- when VideoStop is called.
- when there is no more space on the disk.
Note: This parameter can correspond to: - an integer corresponding to the number of seconds,
- a Duration variable,
- the duration in a readable format ('1 s' for example).
<Images per second>: Optional integer Number of frames per second (15 by default). This parameter is taken into account only if <Type of capture> is equal to viVideoCapture. <Preview stream>: Optional boolean - True (by default) if the video stream must be displayed in the specified Camera control,
- False otherwise.
Observaciones Only the image displayed when CameraCapture is executed is saved as a BMP image. To save this image, you can also use:
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|