MediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties, IRandomAccessStream) MediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties, IRandomAccessStream) MediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties, IRandomAccessStream) MediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties, IRandomAccessStream) MediaCapture.CapturePhotoToStreamAsync(ImageEncodingProperties, IRandomAccessStream) Method

Definition

Captures a photo to a random-access stream.

public : IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties type, IRandomAccessStream stream)
IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties type, IRandomAccessStream stream) const;
public IAsyncAction CapturePhotoToStreamAsync(ImageEncodingProperties type, IRandomAccessStream stream)
Public Function CapturePhotoToStreamAsync(type As ImageEncodingProperties, stream As IRandomAccessStream) As IAsyncAction
Windows.Media.Capture.MediaCapture.capturePhotoToStreamAsync(type, stream).done( /* Your success and error handlers */ );

Parameters

type
ImageEncodingProperties ImageEncodingProperties ImageEncodingProperties

The encoding properties for the output image.

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream where the image data is written.

Returns

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

Additional features and requirements

Capabilities
webcam backgroundMediaRecording microphone