Share via


GraphicsPath::AddRectangle(constRect&) メソッド (gdipluspath.h)

GraphicsPath::AddRectangle メソッドは、このパスに四角形を追加します。

構文

Status AddRectangle(
  [in, ref] const Rect & rect
);

パラメーター

[in, ref] rect

型: const Rect

パスに追加する四角形への参照。

戻り値

種類: 状態

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

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

要件

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

こちらもご覧ください

AddRectangle メソッド

AddRectangles メソッド

領域でのクリッピング

パスの作成および描画

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

Graphicspath

パス

ペン、直線、および四角形

Rect

ペンを使用した直線と四角形の描画