Expand Minimize

MediaCapture.CapturePhotoToStreamAsync | capturePhotoToStreamAsync method

Applies to Windows and Windows Phone

Captures a photo to a random-access stream.

Syntax


mediaCapture.capturePhotoToStreamAsync(type, stream).done( /* Your success and error handlers */ );

Parameters

type

Type: ImageEncodingProperties

The encoding properties for the output image.

stream

Type: IRandomAccessStream

The stream where the image data is written.

Return value

Type: IAsyncAction

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.winmd

Capabilities

webcam
microphone

See also

MediaCapture

 

 

Show:
© 2014 Microsoft. All rights reserved.