VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Media Namespace / DirectShowCamera Class / ShowPropertiesDialog() Method
Syntax Example Requirements SeeAlso
In This Topic
ShowPropertiesDialog() Method (DirectShowCamera)
In This Topic
Shows the camera properties dialog.
Syntax
'Declaration

Public Overrides Sub ShowPropertiesDialog()

public override void ShowPropertiesDialog()

Example

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();
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also