Share via


ID2D1RenderTarget::CreateSolidColorBrush メソッド

指定された色と不透明度が設定された、新しい ID2D1SolidColorBrush を作成します。

構文

HRESULT CreateSolidColorBrush(
  [ref]  const D2D1_COLOR_F &color,
  [ref]  const D2D1_BRUSH_PROPERTIES &brushProperties,
  [out]  ID2D1SolidColorBrush **solidColorBrush
);

パラメーター

  • color
    D2D1_COLOR_F ブラシの色の赤、緑、青、およびアルファの値。
  • brushProperties
    D2D1_BRUSH_PROPERTIES ブラシの基本の不透明度。
  • solidColorBrush [out]
    ID2D1SolidColorBrush このメソッドが返されるときに、新しいブラシへのポインターのアドレスが格納されます。このパラメーターは初期化されずに渡されます。

戻り値

HRESULT

メソッドが成功した場合は、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

参照

ID2D1RenderTarget

ID2D1RenderTarget

ブラシの概要

Direct2D クイックスタート