C# 클래스 PhotoSharingApp.Universal.Camera.CameraEngine

상속: PhotoSharingApp.Universal.ComponentModel.ObservableObjectBase, ICameraEngine
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
CleanUp ( ) : System.Threading.Tasks.Task

Cleans the instance up.

GetNumberOfAvailableDevices ( ) : Task

Gets the number of available devices that can be used for taking photos.

Init ( ICameraView cameraView ) : void

Initializes the camera engine.

InitCamera ( DeviceInformation deviceInformation = null ) : System.Threading.Tasks.Task

Initializes the camera.

StartPreviewAsync ( ) : System.Threading.Tasks.Task

Starts the video preview.

StopPreviewAsync ( ) : System.Threading.Tasks.Task

Stops the preview.

SwitchCamera ( ) : System.Threading.Tasks.Task

Switches the camera.

SwitchFlashMode ( ) : System.Threading.Tasks.Task

Switches the flash mode.

TakePhoto ( ) : Task

Takes the photo.

UnloadCamera ( ) : System.Threading.Tasks.Task

Unloads the camera.

비공개 메소드들

메소드 설명
GetDevice ( ) : Task

Gets the device for the desired panel.

InitResolutions ( ) : System.Threading.Tasks.Task

Initializes the resolutions.

RefreshPreviewRotation ( ) : System.Threading.Tasks.Task

Refreshes the preview rotation.

메소드 상세

CleanUp() 공개 메소드

Cleans the instance up.
public CleanUp ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

GetNumberOfAvailableDevices() 공개 메소드

Gets the number of available devices that can be used for taking photos.
public GetNumberOfAvailableDevices ( ) : Task
리턴 Task

Init() 공개 메소드

Initializes the camera engine.
public Init ( ICameraView cameraView ) : void
cameraView ICameraView The camera view.
리턴 void

InitCamera() 공개 메소드

Initializes the camera.
public InitCamera ( DeviceInformation deviceInformation = null ) : System.Threading.Tasks.Task
deviceInformation Windows.Devices.Enumeration.DeviceInformation
리턴 System.Threading.Tasks.Task

StartPreviewAsync() 공개 메소드

Starts the video preview.
public StartPreviewAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

StopPreviewAsync() 공개 메소드

Stops the preview.
public StopPreviewAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

SwitchCamera() 공개 메소드

Switches the camera.
public SwitchCamera ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

SwitchFlashMode() 공개 메소드

Switches the flash mode.
public SwitchFlashMode ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

TakePhoto() 공개 메소드

Takes the photo.
public TakePhoto ( ) : Task
리턴 Task

UnloadCamera() 공개 메소드

Unloads the camera.
public UnloadCamera ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task