MediaCapture.CapturePhotoToStorageFileAsync 메서드

정의

스토리지 파일에 사진을 캡처합니다.

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

매개 변수

type
ImageEncodingProperties

출력 이미지의 인코딩 속성입니다.

file
IStorageFile

이미지가 저장되는 스토리지 파일입니다.

반환

비동기 작업을 제어하는 데 사용되는 IAsyncAction 개체를 반환합니다.

특성

Windows 요구 사항

앱 기능
backgroundMediaRecording microphone webcam

설명

스토리지 파일에 사진을 캡처하는 방법에 대한 방법 지침은 MediaCapture를 사용하여 기본 기본 사진, 비디오 및 오디오 캡처를 참조하세요.

적용 대상