Skip to content

Camera control

General camera control settings

The camera control settings control the pan, tilt, roll, zoom, exposure, iris, etc. They are available on the current video capture device if IsCameraControlAvailable returns true.

The possible camera control settings are enumerated by the TCameraControl type.

For each camera control setting, it is possible to retrieve:

The SetCameraControl parameters are used as follows:

  • if SetAuto is true, SetDefault and SetValue are ignored and the setting is switched to "auto" mode,
  • if SetAuto is false and SetDefault is true, SetValue is ignored and the setting is set to its default value,
  • if SetAuto is false and SetDefault is false, the SetValue value is applied to the setting.

The default, minimum, maximum and stepping values are usually used to set trackbar ranges. See the miscVideoQuality form of the MainDemo project for sample code.

Note

These properties are device-dependent. Any form that uses these properties should be refreshed when the OnVideoDeviceSelected event occurs. See the MainDemo project for sample code.

Pan / Tilt position control

With some cameras, the pan and tilt positioning can be controlled with SendCameraCommand.