PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Backup in image format
  • Use conditions:
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Saves the video currently transmitted by a "camera" as an image or a video sequence.
The formats for video backup are:
  • Windows an image in BMP format or a video sequence in AVI format.
  • Windows Mobile an image in JPEG format or a video sequence in ASF format.
  • Android an image in JPEG format or a video sequence. The format and quality of captured video depend on the default setting of device and they can differ between the different devices.
  • iPhone/iPad an image in JPEG format or a video sequence. The format and quality of captured video depend on the default setting of device and they can differ between the different devices.
Notes:
  • AndroidiPhone/iPad To directly get a photo or a video by using the native video application found on the device, use CameraRunApp.
  • This function is equivalent to VideoCapture.
Example
Reports and QueriesWindowsUser code (UMC)
// Save the video transmitted in the "CAM_Kitchen" control
// in the format of a 1-minute AVI ("C:\Temp\MyVideo.AVI")
ResSave = CameraCapture(CAM_Kitchen, "C:\Temp\MyVideo.AVI", viVideoCapture, 60)
IF ResBackup = True THEN
Info("Video successfully saved")
ELSE
Error(ErrorInfo())
END
Syntax
<Result> = CameraCapture(<Name of Camera Control> , <Name of Created File> [, <Type of Capture> [, <Capture Duration> [, <Number of Images per Second> [, <Display During Capture>]]]])
<Result>: Boolean
  • True if the video was successfully saved,
  • False otherwise. To find out the error details, use ErrorInfo.
<Name of Camera Control>: Character string (with or without quotes)
Name of Camera control to use. There is no need to display the video in a Camera control in order to save it.
<Name of Created File>: Character string (with quotes)
Name and full (or relative) path of file to create.
Windows If an image is saved, a BMP file is created. If a video sequence is saved, an AVI file is created.
Windows Mobile If an image is saved, a JPEG file is created. If a video sequence is saved, an ASF file is created.
Android If an image is saved, a JPEG file is created. If a video sequence is saved, the format and quality of captured video depend on the default setting of device and they can differ between the different devices.
Caution: No UNC path can be used.
<Type of Capture>: Optional integer constant
Type of capture:
viPictureCapture
Windows Capture an image in the format of a BMP file.

Windows Mobile The capture is performed in a JPEG file.

Android The capture is performed in a JPEG file.
viVideoCapture
(Default value)
Windows Capture a video sequence in the format of an AVI file.

Windows Mobile The capture is performed in ASF format.

Android If a video sequence is saved, the format and quality of captured video depend on the default setting of device and they can differ between the different devices.
<Capture Duration>: Optional integer or optional duration
Duration of capture (in seconds). If this parameter is set to 0 or if it is not specified, the capture will stop:
  • during the call to VideoStop.
  • when the specified disk is full.
Note: This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s for example).
    New in version 23
    the direct indication of duration (1 s for example).
    the direct indication of duration (1 s for example).
<Number of Images per Second>: Optional integer
Number of images saved per second (15 by default). This parameter is taken into account only if <Type of Capture> is equal to viVideoCapture.
Windows Mobile This parameter is ignored.
<Display During Capture>: Optional boolean
  • True (by default) if the video currently transmitted must be viewed in the specified Camera control,
  • False otherwise.
AndroidiPhone/iPad This parameter is ignored. The video saved is always viewed in the Camera control.
Remarks

Backup in image format

Only the image displayed when running VideoCapture will be saved in BMP format. To save this image, you can also use:

Use conditions:

  • Windows To use this function, a "web camera" must be connected to the current computer.
  • Windows Mobile This function requires a device that operates in Windows CE version 5.0 (or later) and that is equipped with a camera.
  • Android This function requires a device equipped with a camera. It can also be used during an execution in the Android emulator (for the capture of images only).
  • Android The camera setting can be identified and modified by VideoParameter and VideoListParameter.
Android

Required permissions

The call to this function modifies the permissions required by the application.
Required permissions:
  • CAMERA: This permission allows the applications to access the camera.
  • RECORD_AUDIO: This permission allows the applications to record the sound.
Components
WINDEV wd230obj.dll
Windows Mobile wp230obj.dll
Android wd230android.jar
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment