GraphicsPath::AddEllipse(constRectF&) メソッド (gdipluspath.h)

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

構文

Status AddEllipse(
  const RectF & rect
);

パラメーター

rect

楕円を囲む四角形への参照。

戻り値

Type:Status

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

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

注釈

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

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

VOID Example_AddEllipse(HDC hdc)
{
   Graphics graphics(hdc); 
   RectF rect(20.0f, 20.0f, 200.0f, 100.0f);

   GraphicsPath path;
   path.AddEllipse(rect);

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

要件

   
Header gdipluspath.h

こちらもご覧ください

AddArc メソッド

AddEllipse メソッド

領域を使用したクリッピング

パスの作成および描画

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

楕円と円弧

Graphicspath

パス

RectF