GraphicsPath::AddEllipse(INT,INT,INT,INT) メソッド (gdipluspath.h)

GraphicsPath::AddEllipse メソッドは、このパスに省略記号を追加します。

構文

Status AddEllipse(
  [in] INT x,
  [in] INT y,
  [in] INT width,
  [in] INT height
);

パラメーター

[in] x

型: INT

楕円の外接する四角形の左上隅の x 座標を指定する整数。

[in] y

型: INT

楕円の外接する四角形の左上隅の y 座標を指定する整数。

[in] width

型: INT

楕円の外接する四角形の幅を指定する整数。

[in] height

型: INT

楕円の外接する四角形の高さを指定する整数。

戻り値

種類: 状態

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

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

注釈

GraphicsPath オブジェクトは、4 つの接続されたベジエ スプラインのシーケンスとして楕円を格納します。 GraphicsPath オブジェクトには、楕円の外接する四角形の左上隅、幅、高さは格納されません。

次の例では、 GraphicsPath オブジェクト パスを作成し、 パスに省略記号を追加して 、パスを描画します。

VOID Example_AddEllipse(HDC hdc)
{
   Graphics graphics(hdc); 

   GraphicsPath path;
   path.AddEllipse(20, 20, 200, 100);

   // Draw the path.
   Pen pen(Color(255, 255, 0, 0));
   graphics.DrawPath(&pen, &path);
}

要件

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

こちらもご覧ください

AddArc メソッド

AddEllipse メソッド

領域でのクリッピング

パスの作成および描画

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

楕円と円弧

Graphicspath

パス