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

适用于