C# Class WebEye.Controls.Wpf.WebCameraControl

Interaction logic for WebCameraControl.xaml
Mostrar archivo Open project: jacobbo/WebEye Class Usage Examples

Public Properties

Property Type Description
IsCapturingProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
InitializeCaptureGraph void
OnShutdownStarted void
SaveVideoDevice void

Public Methods

Method Description
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

Protected Methods

Method Description
OnContentChanged ( object oldContent, object newContent ) : void

Private Methods

Method Description
InitializeCaptureGraph ( ) : void

Initializes a capture graph.

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

Method Details

GetCurrentImage() public method

Retrieves the unstretched image being captured.
The control is not capturing a video stream. Failed to get the current image.
public GetCurrentImage ( ) : Bitmap
return System.Drawing.Bitmap

GetVideoCaptureDevices() public method

Gets a list of available video capture devices.
Failed to load the DirectShow utilities dll.
public GetVideoCaptureDevices ( ) : IEnumerable
return IEnumerable

OnContentChanged() protected method

protected OnContentChanged ( object oldContent, object newContent ) : void
oldContent object
newContent object
return void

StartCapture() public method

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.
return void

StopCapture() public method

Stops a capture.
The control is not capturing a video stream. Failed to stop a video capture graph.
public StopCapture ( ) : void
return void

WebCameraControl() public method

public WebCameraControl ( ) : System
return System

Property Details

IsCapturingProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsCapturingProperty
return System.Windows.DependencyProperty