C# Class BrickPi.Tools.USBCam

Class to control USB camera, to be used as a singleton
Show file Open project: Ellerbach/BrickPi

Public Methods

Method Description
GetPictureRes ( ) : Task
TakePicture ( string filename ) : void

Private Methods

Method Description
InitCam ( ) : System.Threading.Tasks.Task
TakePhotoAsync ( string filename ) : Task

Async method to take a photo. Do not forget to declare capabilities on the manifest < DeviceCapability Name="microphone" />

USBCam ( ) : System

Method Details

GetPictureRes() public static method

public static GetPictureRes ( ) : Task
return Task

TakePicture() public static method

public static TakePicture ( string filename ) : void
filename string
return void