ID2D1RenderTarget::CreateSolidColorBrush(constD2D1_COLOR_F&,constD2D1_BRUSH_PROPERTIES&,ID2D1SolidColorBrush**) メソッド (d2d1.h)

指定した色と不透明度を持つ新しい ID2D1SolidColorBrush を作成します。

構文

HRESULT CreateSolidColorBrush(
  const D2D1_COLOR_F &          color,
  const D2D1_BRUSH_PROPERTIES & brushProperties,
  ID2D1SolidColorBrush          **solidColorBrush
);

パラメーター

color

型: [in] const D2D1_COLOR_F &

ブラシの色の赤、緑、青、アルファ値。

brushProperties

型: [in] const D2D1_BRUSH_PROPERTIES &

ブラシの基本不透明度。

solidColorBrush

種類: [out] ID2D1SolidColorBrush**

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

戻り値

型: HRESULT

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

要件

要件
サポートされている最小のクライアント Windows 7、Windows Vista SP2 と Windows Vista 用プラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
サポートされている最小のサーバー Windows Server 2008 R2、Windows Server 2008 SP2 および Windows Server 2008 用プラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
対象プラットフォーム Windows
ヘッダー d2d1.h
Library D2d1.lib
[DLL] D2d1.dll

こちらもご覧ください

ブラシの概要

Direct2D クイック スタート

ID2D1RenderTarget