PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Connects the "Camera" control to a specific driver for video capture.
Notes:
  • To use this function, a "camera" must be connected to the current computer.
  • This function is equivalent to VideoSetDriver.
Reminder: To find out the list of drivers for video capture installed on the current computer, use CameraListDriver. To find out the driver that is currently associated with a Camera control, use ..Driver.
// Displays the list of available video drivers
// in the LIST_VideoDrivers control
ListAdd(LIST_VideoDrivers, CameraListDriver())
// Uses the second video driver
IF CameraChangeDriver(CAM_Camera1, LIST_VideoDrivers[2]) = False THEN
Error("Unable to change driver: " + CR + ...
ErrorInfo())
END
Syntax
<Result> = CameraChangeDriver(<Name of Camera Control> , <Identifier of Video Driver>)
<Result>: Boolean
  • True if the video driver associated with the control was modified,
  • False if a problem occurred. To find out the error details, use ErrorInfo.
<Name of Camera Control>: Character string (with or without quotes)
Name of Camera control to use.
<Identifier of Video Driver>: Character string (with quotes)
Identifier of video driver to use. This identifier has the following format:
<Driver Name> + TAB + <Driver Version>
This identifier corresponds to the list format returned by CameraListDriver.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment