次の方法で共有


ID2D1RenderTarget::CreateLinearGradientBrush(constD2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES*,constD2D1_BRUSH_PROPERTIES*,ID2D1GradientStopCollection*,ID2D1LinearGradientBrush**) メソッド (d2d1.h)

線形グラデーションを使用して領域を描画するための ID2D1LinearGradientBrush オブジェクトを作成します。

構文

HRESULT CreateLinearGradientBrush(
  const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties,
  const D2D1_BRUSH_PROPERTIES                 *brushProperties,
  ID2D1GradientStopCollection                 *gradientStopCollection,
  ID2D1LinearGradientBrush                    **linearGradientBrush
);

パラメーター

linearGradientBrushProperties

型: [in] const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES*

グラデーションの始点と終点。

brushProperties

型: [in] const D2D1_BRUSH_PROPERTIES*

新しいブラシの変換と基本不透明度。

gradientStopCollection

型: [in] ID2D1GradientStopCollection*

ブラシ のグラデーション の色とそのグラデーション線に沿った位置を表すD2D1_GRADIENT_STOP構造体のコレクション。

linearGradientBrush

種類: [out] ID2D1LinearGradientBrush**

このメソッドが戻るとき、 には、新しいブラシへのポインターのアドレスが含まれます。 このパラメーターは初期化せずに渡されます。

戻り値

種類: HRESULT

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

要件

要件
対象プラットフォーム Windows
ヘッダー d2d1.h
Library D2d1.lib
[DLL] D2d1.dll

こちらもご覧ください

ブラシの概要

CreateGradientStopCollection

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

ID2D1GradientStopCollection

ID2D1LinearGradientBrush

ID2D1RadialGradientBrush

ID2D1RenderTarget