C# Класс WebEye.Controls.Wpf.WebCameraControl

Interaction logic for WebCameraControl.xaml
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IsCapturingProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
InitializeCaptureGraph void
OnShutdownStarted void
SaveVideoDevice void

Открытые методы

Метод Описание
GetCurrentImage ( ) : Bitmap

Retrieves the unstretched image being captured.

GetVideoCaptureDevices ( ) : IEnumerable

Gets a list of available video capture devices.

StartCapture ( WebCameraId camera ) : void

Starts a capture.

StopCapture ( ) : void

Stops a capture.

WebCameraControl ( ) : System

Защищенные методы

Метод Описание
OnContentChanged ( object oldContent, object newContent ) : void

Приватные методы

Метод Описание
InitializeCaptureGraph ( ) : void

Initializes a capture graph.

OnShutdownStarted ( object sender, EventArgs eventArgs ) : void
SaveVideoDevice ( DirectShowProxy &info ) : void

Описание методов

GetCurrentImage() публичный Метод

Retrieves the unstretched image being captured.
The control is not capturing a video stream. Failed to get the current image.
public GetCurrentImage ( ) : Bitmap
Результат System.Drawing.Bitmap

GetVideoCaptureDevices() публичный Метод

Gets a list of available video capture devices.
Failed to load the DirectShow utilities dll.
public GetVideoCaptureDevices ( ) : IEnumerable
Результат IEnumerable

OnContentChanged() защищенный Метод

protected OnContentChanged ( object oldContent, object newContent ) : void
oldContent object
newContent object
Результат void

StartCapture() публичный Метод

Starts a capture.
A null reference is passed as an argument. Failed to load the DirectShow utilities dll. Failed to run a video capture graph.
public StartCapture ( WebCameraId camera ) : void
camera WebCameraId The camera to capture from.
Результат void

StopCapture() публичный Метод

Stops a capture.
The control is not capturing a video stream. Failed to stop a video capture graph.
public StopCapture ( ) : void
Результат void

WebCameraControl() публичный Метод

public WebCameraControl ( ) : System
Результат System

Описание свойств

IsCapturingProperty публичное статическое свойство

public static DependencyProperty,System.Windows IsCapturingProperty
Результат System.Windows.DependencyProperty