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

Represents an instance of the IPhotoCameraService
Inheritance: IPhotoCameraService
Afficher le fichier Open project: Cimbalino/Cimbalino-Phone-Toolkit

Méthodes publiques

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

Méthode 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 méthode

Cancels the current focus operation.
public CancelFocus ( ) : void
Résultat void

CaptureImage() public méthode

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

CreateVideoBrush() public méthode

Creates a VideoBrush containing the current image.
public CreateVideoBrush ( ) : VideoBrush
Résultat VideoBrush

Focus() public méthode

Starts a camera auto focus operation.
public Focus ( ) : void
Résultat void

FocusAtPoint() public méthode

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

GetPreviewBufferY() public méthode

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

GetPreviewBufferYCbCr() public méthode

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

Start() public méthode

Starts the camera service.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the camera service.
public Stop ( ) : void
Résultat void