ShowPropertiesDialog() Method (DirectShowCamera)
Shows the camera properties dialog.
This C#/VB.NET code shows how to show the DirectShow camera properties dialog:
''' <summary>
''' Shows the properties dialog of DirectShow camera.
''' </summary>
Public Shared Sub ChangeCameraPropertiesUsingDeviceDialog()
' get a list of installed cameras
Dim captureDevices As System.Collections.ObjectModel.ReadOnlyCollection(Of Vintasoft.Imaging.Media.ImageCaptureDevice) = Vintasoft.Imaging.Media.ImageCaptureDeviceConfiguration.GetCaptureDevices()
' get the first available camera
Dim camera As Vintasoft.Imaging.Media.ImageCaptureDevice = captureDevices(0)
' show the properties dialog of DirectShow camera
camera.ShowPropertiesDialog()
End Sub
/// <summary>
/// Shows the properties dialog of DirectShow camera.
/// </summary>
public static void ChangeCameraPropertiesUsingDeviceDialog()
{
// get a list of installed cameras
System.Collections.ObjectModel.ReadOnlyCollection<Vintasoft.Imaging.Media.ImageCaptureDevice> captureDevices =
Vintasoft.Imaging.Media.ImageCaptureDeviceConfiguration.GetCaptureDevices();
// get the first available camera
Vintasoft.Imaging.Media.ImageCaptureDevice camera = captureDevices[0];
// show the properties dialog of DirectShow camera
camera.ShowPropertiesDialog();
}
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5