Windows Dev Center

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

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2015 Microsoft