指定された IStream に基づいて、IWICBitmapDecoder クラスの新しいインスタンスを作成します。
構文
HRESULT CreateDecoderFromStream(
[in] IStream *pIStream,
[in] const GUID *pguidVendor,
[in] WICDecodeOptions metadataOptions,
[out, retval] IWICBitmapDecoder **ppIDecoder
);
パラメーター
[in] pIStream
種類: IStream*
デコーダーを作成するストリーム。
[in] pguidVendor
型: const GUID*
優先デコーダー ベンダーの GUID。 優先ベンダーがない場合は NULL を 使用します。
[in] metadataOptions
種類: WICDecodeOptions
デコーダーの作成時に使用する WICDecodeOptions 。
[out, retval] ppIDecoder
種類: IWICBitmapDecoder**
新しい IWICBitmapDecoder へのポインターを受け取るポインター。
戻り値
型: HRESULT
このメソッドは、成功すると S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。
要件
| サポートされている最小のクライアント | WINDOWS XP と SP2、Windows Vista [デスクトップ アプリ |UWP アプリ] |
| サポートされている最小のサーバー | Windows Server 2008 [デスクトップ アプリ | UWP アプリ] |
| 対象プラットフォーム | Windows |
| ヘッダー | wincodec.h |
| Library | Windowscodecs.lib |
| [DLL] | Windowscodecs.dll |