VintaSoft Imaging .NET SDK 14.0: Документация для .NET разработчика
Vintasoft.Imaging.Media Namespace / DirectShowCamera Class / ShowPropertiesDialog() Method
Синтаксис Example Требования Смотрите также
В этом разделе
    ShowPropertiesDialog() Метод (DirectShowCamera)
    В этом разделе
    Показывает диалоговое окно свойств камеры.
    Синтаксис
    'Declaration
    
    Public Overrides Sub ShowPropertiesDialog()
    
    
    public override void ShowPropertiesDialog()
    
    
    public: void ShowPropertiesDialog(); override
    
    
    public:
    void ShowPropertiesDialog(); override
    Пример

    Вот C#/VB.NET код, который демонстрирует, как отобразить диалоговое окно свойств камеры DirectShow:

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

    Требования

    Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также