ID2D1RenderTarget::CreateGradientStopCollection メソッド
指定されたグラデーション境界、色の補間のガンマ、および拡張モードから ID2D1GradientStopCollection を作成します。
構文
virtual HRESULT CreateGradientStopCollection(
[in] const D2D1_GRADIENT_STOP *gradientStops,
UINT gradientStopsCount,
D2D1_GAMMA colorInterpolationGamma,
D2D1_EXTEND_MODE extendMode,
[out] ID2D1GradientStopCollection **gradientStopCollection
) = 0;
パラメーター
- gradientStops [in]
D2D1_GRADIENT_STOP D2D1_GRADIENT_STOP 構造体の配列へのポインター。 - gradientStopsCount
UINT gradientStops 配列でグラデーション境界の数を指定する、1 以上の値。 - colorInterpolationGamma
D2D1_GAMMA グラデーション境界間で色の補間が行われる領域。 - extendMode
D2D1_EXTEND_MODE 正規化された範囲 [0,1] に含まれていないグラデーションの動作。 - gradientStopCollection [out]
ID2D1GradientStopCollection このメソッドが返されるときに、新しいグラデーション境界のコレクションへのポインターへのポインターが格納されます。
戻り値
メソッドが成功した場合は、S_OK が返されます。 それ以外の場合は、エラー コードが返されます。HRESULT.
要件
クライアントの最小要件 |
Windows 7, Windows Vista SP2 および Windows Vista 用のプラットフォーム更新プログラム |
サーバーの最小要件 |
Windows Server 2008 R2, Windows Server 2008 SP2 および Windows Server 2008 用のプラットフォーム更新プログラム |
ヘッダー |
D2d1.h |
ライブラリ |
D2d1.lib |
DLL |
D2d1.dll |