C# Class Catel.Services.CameraService

Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode Description
IsCameraTypeSupported ( CameraType type ) : bool

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

Méthodes protégées

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

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

CaptureCameraImage() protected méthode

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

FocusCamera() protected méthode

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

FocusCameraAtPoint() protected méthode

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

GetAvailableResolutions() protected méthode

Gets the available resolutions.
protected GetAvailableResolutions ( ) : IEnumerable
Résultat IEnumerable

GetCameraType() protected méthode

Gets the type of the camera.
protected GetCameraType ( ) : CameraType
Résultat CameraType

GetFlashMode() protected méthode

Gets the flash mode.
protected GetFlashMode ( ) : FlashMode
Résultat FlashMode

GetIsFocusAtPointSupported() protected méthode

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

GetIsFocusSupported() protected méthode

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

GetOrientation() protected méthode

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

GetPreviewBufferArgb32FromCamera() protected méthode

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

GetPreviewBufferYCbCrFromCamera() protected méthode

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

GetPreviewBufferYFromCamera() protected méthode

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

GetPreviewResolution() protected méthode

Gets the preview resolution of the images.
protected GetPreviewResolution ( ) : Catel.Services.Size
Résultat Catel.Services.Size

GetResolution() protected méthode

Gets the resolution of the actual images.
protected GetResolution ( ) : Catel.Services.Size
Résultat Catel.Services.Size

IsCameraTypeSupported() public méthode

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

IsFlashModeSupportedByCamera() protected méthode

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

SetFlashMode() protected méthode

Sets the flash mode.
protected SetFlashMode ( FlashMode flashMode ) : void
flashMode FlashMode The flash mode.
Résultat void

SetResolution() protected méthode

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

StartService() protected méthode

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

StopService() protected méthode

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