PathGradientBrush::GetRectangle(Rect*) メソッド (gdipluspath.h)

PathGradientBrush::GetRectangle メソッドは、このパス グラデーション ブラシの境界パスを囲む最小の四角形を取得します。

構文

Status GetRectangle(
  [out] Rect *rect
);

パラメーター

[out] rect

種類: Rect*

外接する四角形を受け取る Rect オブジェクトへのポインター。

戻り値

種類: 状態

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

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

要件

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

関連項目

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

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

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

Graphicspath

PathGradientBrush

Rect