MediaCapture.CapturePhotoToStreamAsync Methode

Definition

Erfasst ein Foto in einem Datenstrom mit zufälligem Zugriff.

public:
 virtual IAsyncAction ^ CapturePhotoToStreamAsync(ImageEncodingProperties ^ type, IRandomAccessStream ^ stream) = CapturePhotoToStreamAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties const& type, IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties type, IRandomAccessStream stream);
function capturePhotoToStreamAsync(type, stream)
Public Function CapturePhotoToStreamAsync (type As ImageEncodingProperties, stream As IRandomAccessStream) As IAsyncAction

Parameter

type
ImageEncodingProperties

Die Codierungseigenschaften für das Ausgabebild.

stream
IRandomAccessStream

Der Stream, in den die Bilddaten geschrieben werden.

Gibt zurück

Gibt ein IAsyncAction-Objekt zurück, das zum Steuern des asynchronen Vorgangs verwendet wird.

Attribute

Windows-Anforderungen

App-Funktionen
backgroundMediaRecording microphone webcam

Gilt für: