MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) Méthode

Définition

Initialise la capture photo de décalage d’obturateur faible et fournit l’objet LowLagPhotoCapture utilisé pour gérer l’enregistrement.

public:
 virtual IAsyncOperation<LowLagPhotoCapture ^> ^ PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties ^ type) = PrepareLowLagPhotoCaptureAsync;
IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties const& type);
public IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties type);
function prepareLowLagPhotoCaptureAsync(type)
Public Function PrepareLowLagPhotoCaptureAsync (type As ImageEncodingProperties) As IAsyncOperation(Of LowLagPhotoCapture)

Paramètres

type
ImageEncodingProperties

Profil d’encodage utilisé pour l’image.

Retours

Une fois cette méthode terminée, un objet LowLagPhotoCapture est retourné, qui peut être utilisé pour démarrer la capture de photo.

Configuration requise pour Windows

Fonctionnalités de l’application
backgroundMediaRecording

Remarques

Utilisez PrepareLowLagPhotoCaptureAsync pour initialiser la capture. Il s’agit d’un appel asynchrone qui renvoie un objet LowLagPhotoCapture quand il est terminé, qui est utilisé pour démarrer la capture de photo réelle en appelant LowLagPhotoCapture.CaptureAsync.

PrepareLowLagPhotoCaptureAsync doit être appelé avant LowLagPhotoCapture.CaptureAsync.

Pour obtenir des conseils pratiques sur l’utilisation de LowLagPhotoCapture pour capturer une photo, consultez Capture photo, vidéo et audio de base avec MediaCapture.

S’applique à

Voir aussi