C# Класс CatenaLogic.Windows.Presentation.WebcamPlayer.CapDevice

Наследование: System.Windows.DependencyObject, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
BitmapSourceProperty System.Windows.DependencyProperty
FramerateProperty System.Windows.DependencyProperty
MonikerStringProperty System.Windows.DependencyProperty
NameProperty System.Windows.DependencyProperty
SystemDeviceEnum System.Guid
VideoInputDevice System.Guid

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

Метод Описание
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

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

Метод Описание
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

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

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

Initializes the default capture device
public CapDevice ( ) : System
Результат System

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

Initializes a specific capture device
public CapDevice ( string moniker ) : System
moniker string Moniker string that represents a specific device
Результат System

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

Disposes the object
public Dispose ( ) : void
Результат void

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

; Starts grabbing images from the capture device
public Start ( ) : void
Результат void

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

Stops grabbing images from the capture device
public Stop ( ) : void
Результат void

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

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

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

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

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

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

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

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

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

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

public static Guid,System SystemDeviceEnum
Результат System.Guid

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

public static Guid,System VideoInputDevice
Результат System.Guid