Language

BitmapEncoder.CreateForTranscodingAsync メソッド

定義

新しい BitmapEncoder を非同期的に作成し、既存の BitmapDecoder のデータを使用して初期化します。

public:
 static IAsyncOperation<BitmapEncoder ^> ^ CreateForTranscodingAsync(IRandomAccessStream ^ stream, BitmapDecoder ^ bitmapDecoder);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<BitmapEncoder> CreateForTranscodingAsync(IRandomAccessStream const& stream, BitmapDecoder const& bitmapDecoder);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<BitmapEncoder> CreateForTranscodingAsync(IRandomAccessStream stream, BitmapDecoder bitmapDecoder);
function createForTranscodingAsync(stream, bitmapDecoder)
Public Shared Function CreateForTranscodingAsync (stream As IRandomAccessStream, bitmapDecoder As BitmapDecoder) As IAsyncOperation(Of BitmapEncoder)

パラメーター

stream
IRandomAccessStream

出力ストリーム。

bitmapDecoder
BitmapDecoder

コピーするイメージ データを含む BitmapDecoder 。

返品

既存の BitmapDecoder のデータを使用して、新しい BitmapEncoder の非同期作成を管理する オブジェクト。

属性

注釈

画像内の一部の要素を編集するが、残りのデータをそのまま保持する場合は、このメソッドを呼び出します。 たとえば、一部のメタデータやプロパティを記述するが、画像自体に触れたくない場合です。 このメソッドを使用して BitmapEncoder を作成すると、 bitmapDecoder 引数のデータを使用して初期化されます。 エンコーダーで設定したデータは既存のデータを上書きし、他のすべてのデータは変更されずに保持されます。

このメソッドでは、デコーダーと同じイメージ形式のエンコーダーを作成することのみが可能です。

適用対象

関連項目