SolidBrush::GetColor メソッド (gdiplusbrush.h)

SolidBrush::GetColor メソッドは、この単色ブラシの色を取得します。

構文

Status GetColor(
  [out] Color *color
);

パラメーター

[out] color

種類: *

この単色ブラシの色を受け取る Color オブジェクトへのポインター。

戻り値

種類: 状態

メソッドが成功した場合は、 Status 列挙体の要素である Ok を返します。

メソッドが失敗した場合は、 Status 列挙体の他の要素のいずれかを返します。

要件

   
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusbrush.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

関連項目

ブラシと図形の塗りつぶし

Color

単色で図形を塗りつぶす

Solidbrush

SolidBrush::SetColor