C# 클래스 Catel.Services.CameraService

파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
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