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

Inheritance: System.Windows.DependencyObject, IDisposable
Afficher le fichier Open project: raouldc/OptiDev Class Usage Examples

Méthodes publiques

Свойство Type Description
BitmapSourceProperty System.Windows.DependencyProperty
FramerateProperty System.Windows.DependencyProperty
MonikerStringProperty System.Windows.DependencyProperty
NameProperty System.Windows.DependencyProperty
SystemDeviceEnum System.Guid
VideoInputDevice System.Guid

Méthodes publiques

Méthode 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

Méthode 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 méthode

Initializes the default capture device
public CapDevice ( ) : System
Résultat System

CapDevice() public méthode

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

Dispose() public méthode

Disposes the object
public Dispose ( ) : void
Résultat void

Start() public méthode

; Starts grabbing images from the capture device
public Start ( ) : void
Résultat void

Stop() public méthode

Stops grabbing images from the capture device
public Stop ( ) : void
Résultat void

Property Details

BitmapSourceProperty public_oe static_oe property

public static DependencyProperty,System.Windows BitmapSourceProperty
Résultat System.Windows.DependencyProperty

FramerateProperty public_oe static_oe property

public static DependencyProperty,System.Windows FramerateProperty
Résultat System.Windows.DependencyProperty

MonikerStringProperty public_oe static_oe property

public static DependencyProperty,System.Windows MonikerStringProperty
Résultat System.Windows.DependencyProperty

NameProperty public_oe static_oe property

public static DependencyProperty,System.Windows NameProperty
Résultat System.Windows.DependencyProperty

SystemDeviceEnum public_oe static_oe property

public static Guid,System SystemDeviceEnum
Résultat System.Guid

VideoInputDevice public_oe static_oe property

public static Guid,System VideoInputDevice
Résultat System.Guid