C# Class CatenaLogic.Windows.Presentation.WebcamPlayer.CapDevice

Inheritance: System.Windows.DependencyObject, IDisposable
Show file Open project: raouldc/OptiDev Class Usage Examples

Public Properties

Property Type Description
BitmapSourceProperty System.Windows.DependencyProperty
FramerateProperty System.Windows.DependencyProperty
MonikerStringProperty System.Windows.DependencyProperty
NameProperty System.Windows.DependencyProperty
SystemDeviceEnum System.Guid
VideoInputDevice System.Guid

Public Methods

Method Description
CapDevice ( ) : System

Initializes the default capture device

CapDevice ( string moniker ) : System

Initializes a specific capture device

Dispose ( ) : void

Disposes the object

Start ( ) : void

; Starts grabbing images from the capture device

Stop ( ) : void

Stops grabbing images from the capture device

Private Methods

Method Description
CreateFileMapping ( IntPtr hFile, IntPtr lpFileMappingAttributes, uint flProtect, uint dwMaximumSizeHigh, uint dwMaximumSizeLow, string lpName ) : IntPtr
CurrentApplication_Exit ( object sender, System.Windows.ExitEventArgs e ) : void

Invoked when the application exits

InitializeDeviceForMoniker ( string moniker ) : void

Initialize the device for a specific moniker

MapViewOfFile ( IntPtr hFileMappingObject, uint dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, uint dwNumberOfBytesToMap ) : IntPtr
MonikerString_Changed ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Invoked when the MonikerString dependency property has changed

Release ( ) : void

Releases the capture device

RunWorker ( ) : void

Worker thread that captures the images

UpdateFramerate ( ) : void

Updates the framerate

capGrabber_NewFrameArrived ( object sender, EventArgs e ) : void

Invoked when a new frame arrived

capGrabber_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Invoked when a property of the CapGrabber object has changed

Method Details

CapDevice() public method

Initializes the default capture device
public CapDevice ( ) : System
return System

CapDevice() public method

Initializes a specific capture device
public CapDevice ( string moniker ) : System
moniker string Moniker string that represents a specific device
return System

Dispose() public method

Disposes the object
public Dispose ( ) : void
return void

Start() public method

; Starts grabbing images from the capture device
public Start ( ) : void
return void

Stop() public method

Stops grabbing images from the capture device
public Stop ( ) : void
return void

Property Details

BitmapSourceProperty public static property

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

FramerateProperty public static property

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

MonikerStringProperty public static property

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

NameProperty public static property

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

SystemDeviceEnum public static property

public static Guid,System SystemDeviceEnum
return System.Guid

VideoInputDevice public static property

public static Guid,System VideoInputDevice
return System.Guid