LowLagPhotoCapture Klasse

Definition

Stellt Methoden zum Aufnehmen eines Fotos mit geringer Auslöseverzögerung bereit.

public ref class LowLagPhotoCapture sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class LowLagPhotoCapture final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class LowLagPhotoCapture
Public NotInheritable Class LowLagPhotoCapture
Vererbung
Object Platform::Object IInspectable LowLagPhotoCapture
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Verwenden Sie MediaCapture.PrepareLowLagPhotoCaptureAsync , um die Erfassung zu initialisieren. Dies ist ein asynchroner Aufruf, der ein LowLagPhotoCapture-Objekt zurückgibt, wenn es fertig ist. Dies muss vor CaptureAsync aufgerufen werden.

FinishAsync beendet den Fotoaufnahmevorgang und gibt das LowLagPhotoCapture-Objekt und die Ressourcen frei, die vom Fotoaufnahmevorgang verwendet werden. Nachdem Sie eine Fotoaufnahme mit geringer Verzögerung gestartet haben, müssen Sie die Fotoaufnahme beenden, indem Sie FinishAsync aufrufen, bevor Ihre App versucht, Videos mit dem MediaCapture-Objekt aufzuzeichnen.

Wenn der Medientyp geändert oder ein Effekt hinzugefügt wird, müssen Sie MediaCapture.PrepareLowLagPhotoCaptureAsync aufrufen, um ein neues LowLagPhotoCapture-Objekt zu erstellen.

Anleitungen zur Verwendung von LowLagPhotoCapture zum Aufnehmen von Fotos finden Sie unter Einfache Foto-, Video- und Audioaufnahme mit MediaCapture.

Methoden

CaptureAsync()

Erfasst asynchron ein Foto mit geringer Auslöseverzögerung.

FinishAsync()

Gibt asynchron das LowLagPhotoCapture-Objekt und die ressourcen frei, die vom Fotoaufnahmevorgang verwendet werden.

Gilt für:

Weitere Informationen