ID2D1RenderTarget::CreateGradientStopCollection(constD2D1_GRADIENT_STOP*,UINT32,D2D1_GAMMA,D2D1_EXTEND_MODE,ID2D1GradientStopCollection**) メソッド (d2d1.h)

指定した構造体の配列から ID2D1GradientStopCollectionD2D1_GRADIENT_STOP 作成します。

構文

HRESULT CreateGradientStopCollection(
  const D2D1_GRADIENT_STOP    *gradientStops,
  UINT32                      gradientStopsCount,
  D2D1_GAMMA                  colorInterpolationGamma,
  D2D1_EXTEND_MODE            extendMode,
  ID2D1GradientStopCollection **gradientStopCollection
);

パラメーター

gradientStops

種類: [入力] D2D1_GRADIENT_STOP*

D2D1_GRADIENT_STOP構造体の配列へのポインター。

gradientStopsCount

型: [in] UINT

gradientStops 配列内のグラデーションの分岐点の数を指定する 1 以上の値。

colorInterpolationGamma

種類: [入力] D2D1_GAMMA

グラデーションの分岐点間の色補間が実行される空間。

extendMode

種類: [入力] D2D1_EXTEND_MODE

[0,1] 正規化された範囲外のグラデーションの動作。

gradientStopCollection

型: [out] ID2D1GradientStopCollection**

このメソッドが戻るときに、 には、新しいグラデーションの停止コレクションへのポインターへのポインターが含まれます。

戻り値

型: HRESULT

このメソッドは、成功すると S_OK を返します。 それ以外の場合は、 HRESULT エラー コードが返されます。

必要条件

   
対象プラットフォーム Windows
ヘッダー d2d1.h (D2d1.h を含む)
Library D2d1.lib
[DLL] D2d1.dll

関連項目

ブラシの概要

D2D1_GRADIENT_STOP

線形グラデーション ブラシを作成する方法

放射状グラデーション ブラシを作成する方法

ID2D1RenderTarget