Share via


BitmapDecoder.CreateAsync Methode

Definition

Überlädt

CreateAsync(IRandomAccessStream)

Erstellt asynchron einen neuen BitmapDecoder und initialisiert ihn mithilfe eines Streams.

CreateAsync(Guid, IRandomAccessStream)

Erstellt asynchron einen neuen BitmapDecoder mit einem bestimmten Bitmapcodec und initialisiert ihn mithilfe eines Datenstroms.

CreateAsync(IRandomAccessStream)

Erstellt asynchron einen neuen BitmapDecoder und initialisiert ihn mithilfe eines Streams.

public:
 static IAsyncOperation<BitmapDecoder ^> ^ CreateAsync(IRandomAccessStream ^ stream);
/// [Windows.Foundation.Metadata.Overload("CreateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BitmapDecoder> CreateAsync(IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.Overload("CreateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BitmapDecoder> CreateAsync(IRandomAccessStream stream);
function createAsync(stream)
Public Shared Function CreateAsync (stream As IRandomAccessStream) As IAsyncOperation(Of BitmapDecoder)

Parameter

stream
IRandomAccessStream

Der Stream, der die zu decodierte Bilddatei enthält.

Gibt zurück

Ein -Objekt, das die asynchrone Erstellung eines neuen BitmapDecoders verwaltet.

Attribute

Hinweise

Windows.Graphics.Imaging bestimmt automatisch den richtigen Bitmapdecoder, um den Stream zu decodieren.

Weitere Informationen

Gilt für:

CreateAsync(Guid, IRandomAccessStream)

Erstellt asynchron einen neuen BitmapDecoder mit einem bestimmten Bitmapcodec und initialisiert ihn mithilfe eines Datenstroms.

public:
 static IAsyncOperation<BitmapDecoder ^> ^ CreateAsync(Platform::Guid decoderId, IRandomAccessStream ^ stream);
/// [Windows.Foundation.Metadata.Overload("CreateWithIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BitmapDecoder> CreateAsync(winrt::guid const& decoderId, IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.Overload("CreateWithIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BitmapDecoder> CreateAsync(Guid decoderId, IRandomAccessStream stream);
function createAsync(decoderId, stream)
Public Shared Function CreateAsync (decoderId As Guid, stream As IRandomAccessStream) As IAsyncOperation(Of BitmapDecoder)

Parameter

decoderId
Guid

Platform::Guid

winrt::guid

Der eindeutige Bezeichner des angegebenen Bitmapcodecs.

stream
IRandomAccessStream

Der Stream, der die zu decodierte Bilddatei enthält.

Gibt zurück

Ein -Objekt, das die asynchrone Erstellung eines neuen BitmapDecoders verwaltet.

Attribute

Hinweise

Mit dieser Methode kann die Anwendung explizit den zu verwendenden Bitmapdecoder auswählen und alle automatischen Codec-Schiedsverfahren umgehen. Die eindeutigen Bezeichner der integrierten Decoder sind als Eigenschaften in BitmapDecoder verfügbar. Darüber hinaus kann der eindeutige Bezeichner jedes installierten Decoders mithilfe der GetDecoderInformationEnumerator-Methode abgerufen werden.

Weitere Informationen

Gilt für: