ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Video functions
  • Operating mode of the Camera control when displaying dialog boxes
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Camera>.Configure (Function)
In french: <Caméra>.Configure
Allows you to configure the video capture driver. This configuration can be performed by the user (via a dialog box) or through programming (configuration of resolution).
Warning: This function can only be used with camera fields in compatible mode (option "Use older 'Video for Windows' APIs (compatibility)" checked in the field description)..
Note: This function is equivalent to CameraConfigure.
Example
// Affiche la boîte de dialogue standard permettant la configuration du driver de capture vidéo 
// utilisé pour le champ "CAM_MaVidéo"
CAM_MaVidéo.Configure()
// Spécifie une résolution de 640 par 480
CAM_VIDEO1.Configure(viResolution, 640, 480)
Syntax
<Result> = <Camera control>.Configures([<Type of configuration> [, <Width resolution> , <Height resolution>]])
<Result>: Boolean
  • True if the standard dialog box is displayed,
  • False if an error occurs. The corresponding error message is returned by ErrorInfo.
<Camera control>: Control name
Name of the Camera control to be used.
<Type of configuration>: Optional integer constant
Type of configuration to perform:
viConfigureFormatDisplay a dialog box (if it exists) allowing the user to specify the camera resolution, the number of colors used, etc.
viConfigureSource
(default value)
Display a dialog box (if it exists) allowing the user to specify the name of camera to use and the parameters of this camera (saturation for example).
This dialog box depends on the driver used by the Camera control.
viResolutionUsed to specify a resolution for the camera, via <Width resolution> and <Height resolution>.
<Width resolution>: Optional integer
Width of camera resolution (in pixels). This parameter must be specified if <Type of configuration> is set to viResolution.
<Height resolution>: Optional integer
Height of the camera resolution (in pixels). This parameter must be specified if <Type of configuration> is set to viResolution.
Remarks

Operating mode of the Camera control when displaying dialog boxes

  • If the panel for configuring the format is displayed, the Camera control is frozen.
  • If the configuration panel is displayed by the viConfigureSource constant, the Camera control continues to operate. The modifications of the parameters are immediately taken into account and applied to the Camera control in "direct live".
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help