PC SOFT

WINDEV的在线文档

  • Backup in image format
  • Use conditions:
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Saves the video currently broadcasted by a "camera" as an image or a video sequence.

The formats for video backup are:

  • WinDevWindows an image in BMP format or a video sequence in AVI format.

例子
WinDev用户代码(MCU)
// Save the video broadcasted in the "CAM_Kitchen" control
// in the format of a 1-minute AVI ("C:\Temp\MyVideo.AVI")
ResSave视频采集CAM_Kitchen"C:\Temp\MyVideo.AVI"视频采集.视频60
如果ResBackup,那么
信息"Video successfully saved"
否则
错误错误信息())
结束

语法
<Result> = 视频采集(<Name of Camera Control> , <Name of Created File> [, <Type of Capture> [, <Capture Duration> [, <Number of Images per Second> [, <Display During Capture>]]]])
<Result>: Boolean
  • if the video was successfully saved,
  • otherwise. To find out the error details, use 错误信息.
<Name of Camera Control>: Character string (with or without quotes)
Name of the 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 the file to create.

WinDevWindows If an image is saved, a BMP file is created. If a video sequence is saved, an AVI file is created.

Caution: No UNC path can be used.
<Type of Capture>: Optional integer constant
Type of capture:
视频采集.图片
WinDevWindows Captures an image as a BMP file.


视频采集.视频
(Default value)
WinDevWindows Captures a video sequence as an AVI file.


<Capture Duration>: Optional integer
Duration of the capture (in seconds). If this parameter is set to 0 or if it is not specified, the capture will stop:
  • during the call to 视频停止.
  • when the specified disk is full.
<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 set to 视频采集.视频.

<Display During Capture>: Optional boolean
  • (by default) if the video currently broadcasted must be viewed in the specified Camera control,
  • otherwise.

注意

Backup in image format

Only the image displayed when 视频采集 is run will be saved in BMP format. To save this image, you can also use:

Use conditions:

  • WinDevWindows To use this function, a "web camera" must be connected to the current computer.

组件
WinDev wd200obj.dll