C# 클래스 WinRTXamlToolkit.Controls.CameraCaptureControl

상속: Windows.UI.Xaml.Controls.Control
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 프로퍼티들

프로퍼티 타입 설명
AudioDeviceIdProperty Windows.UI.Xaml.DependencyProperty
AudioDeviceNameProperty Windows.UI.Xaml.DependencyProperty
AudioDeviceProperty Windows.UI.Xaml.DependencyProperty
PhotoCaptureCountdownSecondsProperty Windows.UI.Xaml.DependencyProperty
PickAudioDeviceAutomaticallyProperty Windows.UI.Xaml.DependencyProperty
PickVideoDeviceAutomaticallyProperty Windows.UI.Xaml.DependencyProperty
PreferredCameraTypeProperty Windows.UI.Xaml.DependencyProperty
ShowOnLoadProperty Windows.UI.Xaml.DependencyProperty
StreamingCaptureModeProperty Windows.UI.Xaml.DependencyProperty
VideoDeviceEnclosureLocationProperty Windows.UI.Xaml.DependencyProperty
VideoDeviceIdProperty Windows.UI.Xaml.DependencyProperty
VideoDeviceNameProperty Windows.UI.Xaml.DependencyProperty
VideoDeviceProperty Windows.UI.Xaml.DependencyProperty
VideoEncodingQualityProperty Windows.UI.Xaml.DependencyProperty

Private Properties

프로퍼티 타입 설명
CheckStreamingCaptureModeConfiguration bool
FindAudioCaptureDevicesAsync System.Threading.Tasks.Task
FindVideoCaptureDevicesAsync System.Threading.Tasks.Task
InitializeAsync Task
OnAudioDeviceIdChanged void
OnCameraFailed void
OnLoaded void
OnMediaCaptureFailed void
OnStreamingCaptureModeChanged void
OnUnloaded void
OnVideoDeviceIdChanged void
ShowMicrophoneSelectorAsync Task
ShowWebCamSelectorAsync Task
StartPreviewAsync Task
TraceDeviceDetails void

공개 메소드들

메소드 설명
CameraCaptureControl ( ) : System

Initializes a new instance of the CameraCaptureControl class.

CapturePhotoToStorageFileAsync ( StorageFolder folder = null, string fileName = null, string defaultExtension = ".jpg" ) : Task

Captures the photo to storage file asynchronously.

CapturePhotoToStreamAsync ( IRandomAccessStream stream, ImageEncodingProperties imageEncodingProperties ) : System.Threading.Tasks.Task

Captures a photo to a stream asynchronously.

CycleCamerasAsync ( ) : Task

Cycles the cameras asynchronously.

HideAsync ( ) : System.Threading.Tasks.Task

Hides the camera preview asynchronously.

ShowAsync ( ) : Task

Shows the preview asynchronously (completes when the camera is initialized)..

StartVideoCaptureAsync ( StorageFolder folder = null, string fileName = null ) : Task

Starts the video capture asynchronously.

StopCaptureAsync ( ) : Task

Stops the video capture.

보호된 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnAudioDeviceIdChanged ( string oldAudioDeviceId, string newAudioDeviceId ) : void

Provides derived classes an opportunity to handle changes to the AudioDeviceId property.

OnStreamingCaptureModeChanged ( StreamingCaptureMode oldStreamingCaptureMode, StreamingCaptureMode newStreamingCaptureMode ) : void

Provides derived classes an opportunity to handle changes to the StreamingCaptureMode property.

OnVideoDeviceIdChanged ( string oldVideoDeviceId, string newVideoDeviceId ) : void

Provides derived classes an opportunity to handle changes to the VideoDeviceId property.

비공개 메소드들

메소드 설명
CheckStreamingCaptureModeConfiguration ( ) : bool
FindAudioCaptureDevicesAsync ( ) : System.Threading.Tasks.Task
FindVideoCaptureDevicesAsync ( ) : System.Threading.Tasks.Task
InitializeAsync ( ) : Task

Performs the one time initialization and shows the preview (if video).

OnAudioDeviceIdChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the AudioDeviceId property.

OnCameraFailed ( object sender, MediaCaptureFailedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnMediaCaptureFailed ( MediaCapture sender, MediaCaptureFailedEventArgs errorEventArgs ) : void
OnStreamingCaptureModeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the StreamingCaptureMode property.

OnUnloaded ( object sender, RoutedEventArgs e ) : void
OnVideoDeviceIdChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the VideoDeviceId property.

ShowMicrophoneSelectorAsync ( ) : Task
ShowWebCamSelectorAsync ( ) : Task
StartPreviewAsync ( ) : Task
TraceDeviceDetails ( ) : void

메소드 상세

CameraCaptureControl() 공개 메소드

Initializes a new instance of the CameraCaptureControl class.
public CameraCaptureControl ( ) : System
리턴 System

CapturePhotoToStorageFileAsync() 공개 메소드

Captures the photo to storage file asynchronously.
public CapturePhotoToStorageFileAsync ( StorageFolder folder = null, string fileName = null, string defaultExtension = ".jpg" ) : Task
folder Windows.Storage.StorageFolder The folder.
fileName string Name of the file.
defaultExtension string The default extension.
리턴 Task

CapturePhotoToStreamAsync() 공개 메소드

Captures a photo to a stream asynchronously.
public CapturePhotoToStreamAsync ( IRandomAccessStream stream, ImageEncodingProperties imageEncodingProperties ) : System.Threading.Tasks.Task
stream IRandomAccessStream The stream.
imageEncodingProperties Windows.Media.MediaProperties.ImageEncodingProperties The image encoding properties.
리턴 System.Threading.Tasks.Task

CycleCamerasAsync() 공개 메소드

Cycles the cameras asynchronously.
public CycleCamerasAsync ( ) : Task
리턴 Task

HideAsync() 공개 메소드

Hides the camera preview asynchronously.
public HideAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

OnApplyTemplate() 보호된 메소드

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected OnApplyTemplate ( ) : void
리턴 void

OnAudioDeviceIdChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the AudioDeviceId property.
protected OnAudioDeviceIdChanged ( string oldAudioDeviceId, string newAudioDeviceId ) : void
oldAudioDeviceId string The old AudioDeviceId value
newAudioDeviceId string The new AudioDeviceId value
리턴 void

OnStreamingCaptureModeChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the StreamingCaptureMode property.
protected OnStreamingCaptureModeChanged ( StreamingCaptureMode oldStreamingCaptureMode, StreamingCaptureMode newStreamingCaptureMode ) : void
oldStreamingCaptureMode StreamingCaptureMode The old StreamingCaptureMode value
newStreamingCaptureMode StreamingCaptureMode The new StreamingCaptureMode value
리턴 void

OnVideoDeviceIdChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the VideoDeviceId property.
protected OnVideoDeviceIdChanged ( string oldVideoDeviceId, string newVideoDeviceId ) : void
oldVideoDeviceId string The old VideoDeviceId value
newVideoDeviceId string The new VideoDeviceId value
리턴 void

ShowAsync() 공개 메소드

Shows the preview asynchronously (completes when the camera is initialized)..
public ShowAsync ( ) : Task
리턴 Task

StartVideoCaptureAsync() 공개 메소드

Starts the video capture asynchronously.
public StartVideoCaptureAsync ( StorageFolder folder = null, string fileName = null ) : Task
folder Windows.Storage.StorageFolder The folder.
fileName string Name of the file.
리턴 Task

StopCaptureAsync() 공개 메소드

Stops the video capture.
public StopCaptureAsync ( ) : Task
리턴 Task

프로퍼티 상세

AudioDeviceIdProperty 공개적으로 정적으로 프로퍼티

AudioDeviceId Dependency Property
public static DependencyProperty,Windows.UI.Xaml AudioDeviceIdProperty
리턴 Windows.UI.Xaml.DependencyProperty

AudioDeviceNameProperty 공개적으로 정적으로 프로퍼티

AudioDeviceName Dependency Property
public static DependencyProperty,Windows.UI.Xaml AudioDeviceNameProperty
리턴 Windows.UI.Xaml.DependencyProperty

AudioDeviceProperty 공개적으로 정적으로 프로퍼티

AudioDevice Dependency Property
public static DependencyProperty,Windows.UI.Xaml AudioDeviceProperty
리턴 Windows.UI.Xaml.DependencyProperty

PhotoCaptureCountdownSecondsProperty 공개적으로 정적으로 프로퍼티

PhotoCaptureCountdownSeconds Dependency Property
public static DependencyProperty,Windows.UI.Xaml PhotoCaptureCountdownSecondsProperty
리턴 Windows.UI.Xaml.DependencyProperty

PickAudioDeviceAutomaticallyProperty 공개적으로 정적으로 프로퍼티

PickAudioDeviceAutomatically Dependency Property
public static DependencyProperty,Windows.UI.Xaml PickAudioDeviceAutomaticallyProperty
리턴 Windows.UI.Xaml.DependencyProperty

PickVideoDeviceAutomaticallyProperty 공개적으로 정적으로 프로퍼티

PickVideoDeviceAutomatically Dependency Property
public static DependencyProperty,Windows.UI.Xaml PickVideoDeviceAutomaticallyProperty
리턴 Windows.UI.Xaml.DependencyProperty

PreferredCameraTypeProperty 공개적으로 정적으로 프로퍼티

The preferred camera type property.
public static DependencyProperty,Windows.UI.Xaml PreferredCameraTypeProperty
리턴 Windows.UI.Xaml.DependencyProperty

ShowOnLoadProperty 공개적으로 정적으로 프로퍼티

The ShowOnLoadProperty.
public static DependencyProperty,Windows.UI.Xaml ShowOnLoadProperty
리턴 Windows.UI.Xaml.DependencyProperty

StreamingCaptureModeProperty 공개적으로 정적으로 프로퍼티

StreamingCaptureMode Dependency Property
public static DependencyProperty,Windows.UI.Xaml StreamingCaptureModeProperty
리턴 Windows.UI.Xaml.DependencyProperty

VideoDeviceEnclosureLocationProperty 공개적으로 정적으로 프로퍼티

VideoDeviceEnclosureLocation Dependency Property
public static DependencyProperty,Windows.UI.Xaml VideoDeviceEnclosureLocationProperty
리턴 Windows.UI.Xaml.DependencyProperty

VideoDeviceIdProperty 공개적으로 정적으로 프로퍼티

VideoDeviceId Dependency Property
public static DependencyProperty,Windows.UI.Xaml VideoDeviceIdProperty
리턴 Windows.UI.Xaml.DependencyProperty

VideoDeviceNameProperty 공개적으로 정적으로 프로퍼티

VideoDeviceName Dependency Property
public static DependencyProperty,Windows.UI.Xaml VideoDeviceNameProperty
리턴 Windows.UI.Xaml.DependencyProperty

VideoDeviceProperty 공개적으로 정적으로 프로퍼티

VideoDevice Dependency Property
public static DependencyProperty,Windows.UI.Xaml VideoDeviceProperty
리턴 Windows.UI.Xaml.DependencyProperty

VideoEncodingQualityProperty 공개적으로 정적으로 프로퍼티

VideoEncodingQuality Dependency Property
public static DependencyProperty,Windows.UI.Xaml VideoEncodingQualityProperty
리턴 Windows.UI.Xaml.DependencyProperty