BitmapDecoder.CreateAsync BitmapDecoder.CreateAsync BitmapDecoder.CreateAsync BitmapDecoder.CreateAsync BitmapDecoder.CreateAsync Method

Definition

Overloads

CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream)

Asynchronously creates a new BitmapDecoder using a specific bitmap codec and initializes it using a stream.

CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream)

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

CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream) CreateAsync(Guid, IRandomAccessStream)

Asynchronously creates a new BitmapDecoder using a specific bitmap codec and initializes it using a stream.

public : static IAsyncOperation<BitmapDecoder> CreateAsync(Platform::Guid decoderId, IRandomAccessStream stream)
static IAsyncOperation<BitmapDecoder> CreateAsync(Guid decoderId, IRandomAccessStream stream) const;
public static IAsyncOperation<BitmapDecoder> CreateAsync(Guid decoderId, IRandomAccessStream stream)
Public Shared Function CreateAsync(decoderId As Guid, stream As IRandomAccessStream) As IAsyncOperation(Of BitmapDecoder)
Windows.Graphics.Imaging.BitmapDecoder.createAsync(decoderId, stream).done( /* Your success and error handlers */ );

Parameters

decoderId
Guid Guid Guid

The unique identifier of the specified bitmap codec.

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream containing the image file to be decoded.

Returns

Remarks

This method allows the application to explicitly select the bitmap decoder to be used and bypass any automatic codec arbitration. The unique identifiers of the built-in decoders are available as properties on BitmapDecoder. In addition, the unique identifier of any installed decoder can be obtained using the GetDecoderInformationEnumerator method.

See also

CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream) CreateAsync(IRandomAccessStream)

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

public : static IAsyncOperation<BitmapDecoder> CreateAsync(IRandomAccessStream stream)
static IAsyncOperation<BitmapDecoder> CreateAsync(IRandomAccessStream stream) const;
public static IAsyncOperation<BitmapDecoder> CreateAsync(IRandomAccessStream stream)
Public Shared Function CreateAsync(stream As IRandomAccessStream) As IAsyncOperation(Of BitmapDecoder)
Windows.Graphics.Imaging.BitmapDecoder.createAsync(stream).done( /* Your success and error handlers */ );

Parameters

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream containing the image file to be decoded.

Returns

Remarks

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

See also