Skip to content

SetCameraControl

method

Delphi
function SetCameraControl (Setting: TCameraControl; SetAuto: Boolean; SetDefault: Boolean; SetValue: LongInt): Boolean;
C++Builder
bool __fastcall SetCameraControl(TCameraControl Setting, bool SetAuto, bool SetDefault, System::LongInt SetValue);
C#
public bool SetCameraControl(TCameraControl Setting, bool SetAuto, bool SetDefault, int SetValue);
VB.NET
Public Function SetCameraControl(Setting As TCameraControl, SetAuto As Boolean, SetDefault As Boolean, SetValue As Integer) As Boolean
C++/Qt
BOOL SetCameraControl (TCameraControl Setting, BOOL SetAuto, BOOL SetDefault, int SetValue);

Sets a TCameraControl setting, if available for the current video capture device (test IsCameraControlSetting for availability).

  • if SetAuto is true, SetDefault and SetValue are ignored and the setting is switched in "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.