Share via


MediaCapture.CapturePhotoToStreamAsync Method

Definition

Captures a photo to a random-access stream.

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

Parameters

type
ImageEncodingProperties

The encoding properties for the output image.

stream
IRandomAccessStream

The stream where the image data is written.

Returns

Returns an IAsyncAction object that is used to control the asynchronous operation.

Attributes

Windows requirements

App capabilities
backgroundMediaRecording microphone webcam

Applies to