PathGradientBrush::SetCenterPoint(constPoint&) メソッド (gdipluspath.h)

PathGradientBrush::SetCenterPoint メソッドは、このパス グラデーション ブラシの中心点を設定します。 既定では、中心点はブラシの境界パスの重心にありますが、中心点はパスの内側または外側の任意の場所に設定できます。

構文

Status SetCenterPoint(
  [in, ref] const Point & point
);

パラメーター

[in, ref] point

型: const Point

中心点を指定する Point オブジェクトへの参照。

戻り値

種類: 状態

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

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

要件

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

こちらもご覧ください

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

パス グラデーションの作成

色のグラデーションで図形を塗りつぶす

Graphicspath

PathGradientBrush

PathGradientBrush::GetCenterColor

PathGradientBrush::GetCenterPoint メソッド

PathGradientBrush::SetCenterColor