C# Класс WinRTXamlToolkit.Controls.CameraCaptureControl

Наследование: Windows.UI.Xaml.Controls.Control
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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