MediaFrameSource.SetFormatAsync(MediaFrameFormat) Methode

Definition

Legt asynchron das Frameformat der MediaFrameSource fest.

public:
 virtual IAsyncAction ^ SetFormatAsync(MediaFrameFormat ^ format) = SetFormatAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetFormatAsync(MediaFrameFormat const& format);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetFormatAsync(MediaFrameFormat format);
function setFormatAsync(format)
Public Function SetFormatAsync (format As MediaFrameFormat) As IAsyncAction

Parameter

format
MediaFrameFormat

Das neue Frameformat für die Medienframequelle.

Gibt zurück

Eine asynchrone Aktion.

Attribute

Hinweise

Diese Methode ist eine Alternative zu MediaCapture.SetEncodingPropertiesAsync, aber im Gegensatz zu SetEncodingPropertiesAsync kann diese Methode mit jedem Stream verwendet werden, nicht nur mit den Farbkameravorschau-, Aufzeichnungs- und Fotoaufnahmestreams.

Rufen Sie die Liste der unterstützten Frameformate für eine Medienframequelle ab, indem Sie auf die SupportedFormats-Eigenschaft zugreifen.

Rufen Sie das aktuelle Frameformat der Medienframequelle ab, indem Sie auf die CurrentFormat-Eigenschaft zugreifen.

Gilt für: