|
- Save in image format
- Use conditions:
- Required permissions
<Camera>.Capture (Function) In french: <Caméra>.Capture Syntax
<Result> = <Camera control>.Capture(<File to create> [, <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.
<Camera control>: Control name Name of Camera control to use. <File to create>: Character string (with quotes) Name and full (or relative) path of file to create.
Versions 16 and later New in version 16 Caution: No UNC path can be used. <Type of capture>: Optional integer constant Type of capture: | | viPictureCapture |
Versions 16 and later New in version 16 | viVideoCapture (Default value) |
Versions 16 and later New in version 16 |
<Capture duration>: Optional integer 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 <Camera>.Stop.
- when the specified disk is full.
This parameter can correspond to: - an integer corresponding to the number of seconds,
- a Duration variable,
Versions 23 and laterthe direct indication of duration (1 s or 10 ms for example). New in version 23the direct indication of duration (1 s or 10 ms for example). the direct indication of duration (1 s or 10 ms 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.
<Display during capture>: Optional boolean - True (by default) if the video currently transmitted must be viewed in the specified Camera control,
- False otherwise.
Versions 16 and later New in version 16
Remarks Save in image format Only the image displayed when running <Camera>.Capture will be saved in BMP format. To save this image, you can also use: Versions 16 and later New in version 16
Related Examples:
|
Unit examples (WINDEV Mobile): The Camera functions
[ + ] Using the WLanguage "Camera" functions to start the native video camera application of the device in order to record a video or to take a photo.
|
This page is also available for…
|
|
|
| |
| | https://youtu.be/0sv8F0V0-gw https://windevdesenvolvimento.blogspot.com/2019/09/dicas-2278-windev-webdev-mobile-camera.html // BTN_TIRAr_FOTO CAM_CAMERA.Capture("C:\TEMP\FOTO.JPEG",viPictureCapture,2) IMG_FOTO="C:\TEMP\FOTO.JPEG"
|
|
|
|
| |
| |
| |
|
| | https://youtu.be/i1x0L20j-u8 // BTN INICIA GRAVACAO CAM_CAMERA.Capture("C:\temp\teste.mp4",viVideoCapture,0)
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |