C# Class 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.
Inheritance: IDisposable
Afficher le fichier Open project: cyrusbuilt/MonoPi

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
MonitorCapture ( ) : void

Monitors the capture process.

Method Details

Cancel() public méthode

Cancels the still capture process, if running.
public Cancel ( ) : void
Résultat void

Dispose() public méthode

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
Résultat void

OnCaptureDone() protected méthode

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureDone event.
protected OnCaptureDone ( CaptureDoneEventArgs e ) : void
e CaptureDoneEventArgs /// The event arguments. ///
Résultat void

OnCaptureOutputRecieved() protected méthode

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureOutputReceived event.
protected OnCaptureOutputRecieved ( CaptureOutputEventArgs e ) : void
e CaptureOutputEventArgs /// The event arguments. ///
Résultat void

OnCaptureStarted() protected méthode

Raises the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice.CaptureStarted event.
protected OnCaptureStarted ( CaptureStartEventArgs e ) : void
e CaptureStartEventArgs /// The event arguments. ///
Résultat void

PiCameraDevice() public méthode

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.PiCamera.PiCameraDevice class. This is the default constructor.
public PiCameraDevice ( ) : System
Résultat System

PiCameraDevice() public méthode

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. ///
Résultat System

Start() public méthode

Starts the capture process on a separate thread, then immediately returns will the process continues in the background.
public Start ( ) : void
Résultat void