言語

CameraCaptureUI クラス

定義

デバイスのカメラからオーディオ、ビデオ、写真をキャプチャするためのフル ウィンドウ UI と、写真のトリミング、ビデオのトリミング、遅延キャプチャ、カメラ設定のコントロールを提供します。

public ref class CameraCaptureUI sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Media.Capture.ICameraCaptureUIFactory, 65536, "Microsoft.Windows.Media.Capture.CameraCaptureUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Media.Capture.CameraCaptureUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CameraCaptureUI final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Media.Capture.ICameraCaptureUIFactory), 65536, "Microsoft.Windows.Media.Capture.CameraCaptureUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Media.Capture.CameraCaptureUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CameraCaptureUI
function CameraCaptureUI(windowId)
Public NotInheritable Class CameraCaptureUI
継承
Object Platform::Object IInspectable CameraCaptureUI
属性

注釈

この API は、Windows アプリ SDKを使用するWindows アプリで使用できます。 UWP アプリでは、Windowsの従来の CameraCaptureUI クラスを使用する必要があります。Media.Capture 名前空間。

CameraCaptureUI を使用すると、カスタム カメラ UI を作成することなく、低レベルのカメラ API を使用しなくても、基本的な写真とビデオキャプチャ機能をWindows アプリに簡単に追加できます。 カスタム カメラ UI またはキャプチャ パイプラインをより細かく制御する必要があるより高度なシナリオでは、 MediaCapture クラスを使用します。 詳細については、「 カメラ」を参照してください。

コンストラクター

名前 説明
CameraCaptureUI(WindowId)

CameraCaptureUI クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
PhotoSettings

CameraCaptureUI で写真をキャプチャするための設定を指定する CameraCaptureUIPhotoCaptureSettings を取得 します

VideoSettings

CameraCaptureUI でビデオをキャプチャするための設定を指定する CameraCaptureUIVideoCaptureSettings を取得 します

メソッド

名前 説明
CaptureFileAsync(CameraCaptureUIMode)

カメラ キャプチャ UI を起動し、ユーザーが写真、ビデオ、またはその両方をキャプチャできるようにします。

適用対象