C# Class Cimbalino.Phone.Toolkit.Services.PhotoCameraService

Represents an instance of the IPhotoCameraService
Inheritance: IPhotoCameraService
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
CancelFocus ( ) : void

Cancels the current focus operation.

CaptureImage ( ) : void

Initiates a full-resolution capture of the current image displayed in the viewfinder.

CreateVideoBrush ( ) : VideoBrush

Creates a VideoBrush containing the current image.

Focus ( ) : void

Starts a camera auto focus operation.

FocusAtPoint ( double x, double y ) : void

Starts a camera auto focus operation on a specific point in the viewfinder, for those devices that support it.

GetPreviewBufferY ( byte pixelData ) : void

Copies the luminance data for the current viewfinder frame into a buffer for further manipulation.

GetPreviewBufferYCbCr ( byte pixelData ) : void

Copies the current viewfinder frame into a buffer for further manipulation.

Start ( ) : void

Starts the camera service.

Stop ( ) : void

Stops the camera service.

Private Methods

Method Description
PhotoCamera_AutoFocusCompleted ( object sender, CameraOperationCompletedEventArgs e ) : void
PhotoCamera_CaptureCompleted ( object sender, CameraOperationCompletedEventArgs e ) : void
PhotoCamera_CaptureImageAvailable ( object sender, ContentReadyEventArgs e ) : void
PhotoCamera_CaptureStarted ( object sender, EventArgs e ) : void
PhotoCamera_CaptureThumbnailAvailable ( object sender, ContentReadyEventArgs e ) : void
PhotoCamera_Initialized ( object sender, CameraOperationCompletedEventArgs e ) : void

Method Details

CancelFocus() public method

Cancels the current focus operation.
public CancelFocus ( ) : void
return void

CaptureImage() public method

Initiates a full-resolution capture of the current image displayed in the viewfinder.
public CaptureImage ( ) : void
return void

CreateVideoBrush() public method

Creates a VideoBrush containing the current image.
public CreateVideoBrush ( ) : VideoBrush
return VideoBrush

Focus() public method

Starts a camera auto focus operation.
public Focus ( ) : void
return void

FocusAtPoint() public method

Starts a camera auto focus operation on a specific point in the viewfinder, for those devices that support it.
public FocusAtPoint ( double x, double y ) : void
x double The horizontal location in the viewfinder; a value between 0 (left) and 1.0 (right).
y double The vertical location in the viewfinder; a value between 0 (bottom) and 1.0 (top).
return void

GetPreviewBufferY() public method

Copies the luminance data for the current viewfinder frame into a buffer for further manipulation.
public GetPreviewBufferY ( byte pixelData ) : void
pixelData byte The YUV pixel data.
return void

GetPreviewBufferYCbCr() public method

Copies the current viewfinder frame into a buffer for further manipulation.
public GetPreviewBufferYCbCr ( byte pixelData ) : void
pixelData byte The pixel data.
return void

Start() public method

Starts the camera service.
public Start ( ) : void
return void

Stop() public method

Stops the camera service.
public Stop ( ) : void
return void