C# Класс CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice

An abstraction of the RaspiCam device. RaspiCam is a peripheral camera device designed specifically for use with the Raspberry Pi. The class provides a threaded wrapper around the raspistill utility and thus a means for still capture control. See http://www.raspberrypi.org/wp-content/uploads/2013/07/RaspiCam-Documentation.pdf for instructions on how to install and configure RaspiCam support.
Наследование: IDisposable
Показать файл Открыть проект

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

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

Cancels the still capture process, if running.

Dispose ( ) : void

Releases all resource used by the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice object.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice. The Dispose method leaves the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice was occupying.

PiCameraDevice ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice class. This is the default constructor.

PiCameraDevice ( StillCaptureSettings settings ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice class with the image capture settings.

Start ( ) : void

Starts the capture process on a separate thread, then immediately returns will the process continues in the background.

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

Метод Описание
OnCaptureDone ( CaptureDoneEventArgs e ) : void

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureDone event.

OnCaptureOutputRecieved ( CaptureOutputEventArgs e ) : void

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureOutputReceived event.

OnCaptureStarted ( CaptureStartEventArgs e ) : void

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureStarted event.

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

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

Monitors the capture process.

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

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

Cancels the still capture process, if running.
public Cancel ( ) : void
Результат void

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

Releases all resource used by the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice object.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice. The Dispose method leaves the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice was occupying.
public Dispose ( ) : void
Результат void

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

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureDone event.
protected OnCaptureDone ( CaptureDoneEventArgs e ) : void
e CaptureDoneEventArgs /// The event arguments. ///
Результат void

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

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureOutputReceived event.
protected OnCaptureOutputRecieved ( CaptureOutputEventArgs e ) : void
e CaptureOutputEventArgs /// The event arguments. ///
Результат void

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

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureStarted event.
protected OnCaptureStarted ( CaptureStartEventArgs e ) : void
e CaptureStartEventArgs /// The event arguments. ///
Результат void

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

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice class. This is the default constructor.
public PiCameraDevice ( ) : System
Результат System

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

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice class with the image capture settings.
public PiCameraDevice ( StillCaptureSettings settings ) : System
settings StillCaptureSettings /// The image capture settings to use. ///
Результат System

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

Starts the capture process on a separate thread, then immediately returns will the process continues in the background.
public Start ( ) : void
Результат void