MediaCapture.CapturePhotoToStorageFileAsync Méthode

Définition

Capture une photo dans un fichier de stockage.

public:
 virtual IAsyncAction ^ CapturePhotoToStorageFileAsync(ImageEncodingProperties ^ type, IStorageFile ^ file) = CapturePhotoToStorageFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CapturePhotoToStorageFileAsync(ImageEncodingProperties const& type, IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CapturePhotoToStorageFileAsync(ImageEncodingProperties type, IStorageFile file);
function capturePhotoToStorageFileAsync(type, file)
Public Function CapturePhotoToStorageFileAsync (type As ImageEncodingProperties, file As IStorageFile) As IAsyncAction

Paramètres

type
ImageEncodingProperties

Propriétés d’encodage de l’image de sortie.

file
IStorageFile

Fichier de stockage dans lequel l’image est enregistrée.

Retours

Retourne un objet IAsyncAction utilisé pour contrôler l’opération asynchrone.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
backgroundMediaRecording microphone webcam

Remarques

Pour obtenir des conseils pratiques sur la capture d’une photo dans un fichier de stockage, consultez Capture photo, vidéo et audio de base avec MediaCapture.

S’applique à