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
Show file Open project: cyrusbuilt/MonoPi

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
MonitorCapture ( ) : void

Monitors the capture process.

Method Details

Cancel() public method

Cancels the still capture process, if running.
public Cancel ( ) : void
return void

Dispose() public method

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
return void

OnCaptureDone() protected method

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

OnCaptureOutputRecieved() protected method

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

OnCaptureStarted() protected method

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

PiCameraDevice() public method

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

PiCameraDevice() public method

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. ///
return System

Start() public method

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