C# Class Catel.Services.CameraService

Mostrar archivo Open project: Catel/Catel

Public Methods

Method Description
IsCameraTypeSupported ( CameraType type ) : bool

Determines whether a particular camera type is supported on the device.

Protected Methods

Method Description
CancelCameraFocus ( ) : void

Cancels the current camera auto focus operation.

This method is already protected and only called when the service is currently running.

CaptureCameraImage ( ) : void

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

This method is already protected and only called when the service is currently running.

FocusCamera ( ) : void

Starts a camera auto focus operation.

This method is already protected and only called when the service is currently running.

FocusCameraAtPoint ( double x, double y ) : void

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

This method is already protected and only called when the service is currently running.

GetAvailableResolutions ( ) : IEnumerable

Gets the available resolutions.

GetCameraType ( ) : CameraType

Gets the type of the camera.

GetFlashMode ( ) : FlashMode

Gets the flash mode.

GetIsFocusAtPointSupported ( ) : bool

Gets a value indicating whether the camera can programmatically auto focus on a specific point in the viewfinder.

GetIsFocusSupported ( ) : bool

Gets a value indicating whether the camera can be auto-focused programmatically.

GetOrientation ( ) : double

Gets the number of degrees that the viewfind brush needs to be rotated clockwise to align with the camera sensor.

GetPreviewBufferArgb32FromCamera ( int pixelData ) : void

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

This method is already protected and only called when the service is currently running.

GetPreviewBufferYCbCrFromCamera ( byte pixelData ) : void

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

This method is already protected and only called when the service is currently running.

GetPreviewBufferYFromCamera ( byte pixelData ) : void

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

This method is already protected and only called when the service is currently running.

GetPreviewResolution ( ) : Catel.Services.Size

Gets the preview resolution of the images.

GetResolution ( ) : Catel.Services.Size

Gets the resolution of the actual images.

IsFlashModeSupportedByCamera ( FlashMode mode ) : bool

Determines whether a particular flash mode is supported on the device.

This method is already protected and only called when the service is currently running.

SetFlashMode ( FlashMode flashMode ) : void

Sets the flash mode.

SetResolution ( Catel.Services.Size resolution ) : void

Sets the resolution of the actual images.

StartService ( CameraType cameraType ) : void

Starts the camera service so it's retrieving data.

This method is already protected and only called when the service is currently not running.

StopService ( ) : void

Stops the camera service so it's no longer retrieving data.

This method is already protected and only called when the service is currently running.

Method Details

CancelCameraFocus() protected method

Cancels the current camera auto focus operation.
This method is already protected and only called when the service is currently running.
protected CancelCameraFocus ( ) : void
return void

CaptureCameraImage() protected method

Initiates a full-resolution capture of the current image displayed in the viewfinder
This method is already protected and only called when the service is currently running.
protected CaptureCameraImage ( ) : void
return void

FocusCamera() protected method

Starts a camera auto focus operation.
This method is already protected and only called when the service is currently running.
protected FocusCamera ( ) : void
return void

FocusCameraAtPoint() protected method

Starts a camera auto focus operation on a specific point in the viewfinder, for those devices that support it.
This method is already protected and only called when the service is currently running.
protected FocusCameraAtPoint ( 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 (top) and 1.0 (bottom).
return void

GetAvailableResolutions() protected method

Gets the available resolutions.
protected GetAvailableResolutions ( ) : IEnumerable
return IEnumerable

GetCameraType() protected method

Gets the type of the camera.
protected GetCameraType ( ) : CameraType
return CameraType

GetFlashMode() protected method

Gets the flash mode.
protected GetFlashMode ( ) : FlashMode
return FlashMode

GetIsFocusAtPointSupported() protected method

Gets a value indicating whether the camera can programmatically auto focus on a specific point in the viewfinder.
protected GetIsFocusAtPointSupported ( ) : bool
return bool

GetIsFocusSupported() protected method

Gets a value indicating whether the camera can be auto-focused programmatically.
protected GetIsFocusSupported ( ) : bool
return bool

GetOrientation() protected method

Gets the number of degrees that the viewfind brush needs to be rotated clockwise to align with the camera sensor.
protected GetOrientation ( ) : double
return double

GetPreviewBufferArgb32FromCamera() protected method

Copies the current viewfinder ARGB frame into a buffer for further manipulation.
This method is already protected and only called when the service is currently running.
protected GetPreviewBufferArgb32FromCamera ( int pixelData ) : void
pixelData int The ARGB pixel data.
return void

GetPreviewBufferYCbCrFromCamera() protected method

Copies the current viewfinder frame into a buffer for further manipulation.
This method is already protected and only called when the service is currently running.
protected GetPreviewBufferYCbCrFromCamera ( byte pixelData ) : void
pixelData byte The pixel data.
return void

GetPreviewBufferYFromCamera() protected method

Copies the luminance data for the current viewfinder frame into a buffer for further manipulation.
This method is already protected and only called when the service is currently running.
protected GetPreviewBufferYFromCamera ( byte pixelData ) : void
pixelData byte The YCrCb pixel data.
return void

GetPreviewResolution() protected method

Gets the preview resolution of the images.
protected GetPreviewResolution ( ) : Catel.Services.Size
return Catel.Services.Size

GetResolution() protected method

Gets the resolution of the actual images.
protected GetResolution ( ) : Catel.Services.Size
return Catel.Services.Size

IsCameraTypeSupported() public method

Determines whether a particular camera type is supported on the device.
public IsCameraTypeSupported ( CameraType type ) : bool
type CameraType The type.
return bool

IsFlashModeSupportedByCamera() protected method

Determines whether a particular flash mode is supported on the device.
This method is already protected and only called when the service is currently running.
protected IsFlashModeSupportedByCamera ( FlashMode mode ) : bool
mode FlashMode The mode.
return bool

SetFlashMode() protected method

Sets the flash mode.
protected SetFlashMode ( FlashMode flashMode ) : void
flashMode FlashMode The flash mode.
return void

SetResolution() protected method

Sets the resolution of the actual images.
protected SetResolution ( Catel.Services.Size resolution ) : void
resolution Catel.Services.Size The resolution.
return void

StartService() protected method

Starts the camera service so it's retrieving data.
This method is already protected and only called when the service is currently not running.
protected StartService ( CameraType cameraType ) : void
cameraType CameraType Type of the camera.
return void

StopService() protected method

Stops the camera service so it's no longer retrieving data.
This method is already protected and only called when the service is currently running.
protected StopService ( ) : void
return void