C# Класс Catel.Services.CameraService

Показать файл Открыть проект

Открытые методы

Метод Описание
IsCameraTypeSupported ( CameraType type ) : bool

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

Защищенные методы

Метод Описание
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.

Описание методов

CancelCameraFocus() защищенный Метод

Cancels the current camera auto focus operation.
This method is already protected and only called when the service is currently running.
protected CancelCameraFocus ( ) : void
Результат void

CaptureCameraImage() защищенный Метод

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
Результат void

FocusCamera() защищенный Метод

Starts a camera auto focus operation.
This method is already protected and only called when the service is currently running.
protected FocusCamera ( ) : void
Результат void

FocusCameraAtPoint() защищенный Метод

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).
Результат void

GetAvailableResolutions() защищенный Метод

Gets the available resolutions.
protected GetAvailableResolutions ( ) : IEnumerable
Результат IEnumerable

GetCameraType() защищенный Метод

Gets the type of the camera.
protected GetCameraType ( ) : CameraType
Результат CameraType

GetFlashMode() защищенный Метод

Gets the flash mode.
protected GetFlashMode ( ) : FlashMode
Результат FlashMode

GetIsFocusAtPointSupported() защищенный Метод

Gets a value indicating whether the camera can programmatically auto focus on a specific point in the viewfinder.
protected GetIsFocusAtPointSupported ( ) : bool
Результат bool

GetIsFocusSupported() защищенный Метод

Gets a value indicating whether the camera can be auto-focused programmatically.
protected GetIsFocusSupported ( ) : bool
Результат bool

GetOrientation() защищенный Метод

Gets the number of degrees that the viewfind brush needs to be rotated clockwise to align with the camera sensor.
protected GetOrientation ( ) : double
Результат double

GetPreviewBufferArgb32FromCamera() защищенный Метод

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.
Результат void

GetPreviewBufferYCbCrFromCamera() защищенный Метод

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.
Результат void

GetPreviewBufferYFromCamera() защищенный Метод

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.
Результат void

GetPreviewResolution() защищенный Метод

Gets the preview resolution of the images.
protected GetPreviewResolution ( ) : Catel.Services.Size
Результат Catel.Services.Size

GetResolution() защищенный Метод

Gets the resolution of the actual images.
protected GetResolution ( ) : Catel.Services.Size
Результат Catel.Services.Size

IsCameraTypeSupported() публичный Метод

Determines whether a particular camera type is supported on the device.
public IsCameraTypeSupported ( CameraType type ) : bool
type CameraType The type.
Результат bool

IsFlashModeSupportedByCamera() защищенный Метод

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.
Результат bool

SetFlashMode() защищенный Метод

Sets the flash mode.
protected SetFlashMode ( FlashMode flashMode ) : void
flashMode FlashMode The flash mode.
Результат void

SetResolution() защищенный Метод

Sets the resolution of the actual images.
protected SetResolution ( Catel.Services.Size resolution ) : void
resolution Catel.Services.Size The resolution.
Результат void

StartService() защищенный Метод

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.
Результат void

StopService() защищенный Метод

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
Результат void