共用方式為


MediaCapture.CapturePhotoToStreamAsync 方法

定義

將相片擷取至隨機存取資料流程。

public:
 virtual IAsyncAction ^ CapturePhotoToStreamAsync(ImageEncodingProperties ^ type, IRandomAccessStream ^ stream) = CapturePhotoToStreamAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties const& type, IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties type, IRandomAccessStream stream);
function capturePhotoToStreamAsync(type, stream)
Public Function CapturePhotoToStreamAsync (type As ImageEncodingProperties, stream As IRandomAccessStream) As IAsyncAction

參數

type
ImageEncodingProperties

輸出影像的編碼屬性。

stream
IRandomAccessStream

寫入影像資料的資料流程。

傳回

會傳回用來控制非同步作業的 IAsyncAction 物件。

屬性

Windows 需求

應用程式功能
backgroundMediaRecording microphone webcam

適用於