BitmapDecoder.CreateAsync(IRandomAccessStream) | createAsync(IRandomAccessStream) method

Applies to Windows and Windows Phone

Asynchronously creates a new BitmapDecoder and initializes it using a stream.

Syntax


Windows.Graphics.Imaging.BitmapDecoder.createAsync(stream).done( /* Your success and error handlers */ );

Parameters

stream

Type: IRandomAccessStream

The stream containing the image file to be decoded.

Return value

Type: IAsyncOperation<BitmapDecoder>

An object that manages the asynchronous creation of a new BitmapDecoder.

Remarks

Windows.Graphics.Imaging automatically determines the correct bitmap decoder to decode the stream.

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.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

See also

BitmapDecoder
CreateAsync(Guid, IRandomAccessStream)
How to decode an image

 

 

Show:
© 2014 Microsoft