Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectShowAMCameraControlMBS class.

DirectShowAMCameraControlMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The private constructor.

DirectShowAMCameraControlMBS.Get(PropertySelector as Integer, byref Value as Integer, byref Flags as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This method retrieves the current setting of a camera property.

PropertySelector: A long value that specifies the property to retrieve, see kProperty* constants.
Value: receives the value of the property.
Flags: Receives a member of the CameraControlFlags enumeration. The returned value indicates whether the setting is controlled manually or automatically.

Lasterror is set.

DirectShowAMCameraControlMBS.GetRange(PropertySelector as Integer, byref MinValue as Integer, byref MaxValue as Integer, byref SteppingDelta as Integer, byref DefaultValue as Integer, byref CapsFlags as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This method retrieves the range and default value of a specified camera property.
Example
dim srcFilter as DirectShowBaseFilterMBS // your device
dim a as DirectShowAMCameraControlMBS = srcFilter.AMCameraControl

// query range for zoom
dim ZoomMin as integer
dim ZoomMax as integer
dim ZoomStep as integer
dim ZoomDefault as Integer
dim ZoomFlags as integer
a.GetRange(a.kPropertyZoom, ZoomMin, ZoomMax, ZoomStep, ZoomDefault, ZoomFlags)
dim ErrorCode as integer = a.Lasterror
dim ErrorText as string = a.LasterrorMessage

Break // check in debugger

PropertySelector: A long value that specifies the property to query, see kProperty* constants.
MinValue: Receives the minimum value of the property.
MaxValue: Receives the maximum value of the property.
SteppingDelta: Receives the step size for the property. The step size is the smallest increment by which the property can change.
DefaultValue: Receives the default value of the property.
CapsFlags: Receives an element of the CameraControlFlags enumeration, indicating whether the property is controlled automatically or manually.

Lasterror is set.

DirectShowAMCameraControlMBS.Set(PropertySelector as Integer, Value as Integer, Flags as Integer = 0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This method sets a specified property on the camera.

PropertySelector: A long value that specifies the property to set, see kProperty* constants.
Value: A long value that specifes the new value of the property.
Flags: A long value that specifies the desired control setting. See kFlags* constants.

Lasterror is set.

DirectShowAMCameraControlMBS.ShowPropertyDialog(parent as DesktopWindow, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows properties dialog.

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

DirectShowAMCameraControlMBS.ShowPropertyDialog(parent as window = nil, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows properties dialog.

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...