Graphics::D rawEllipse(constPen*,constRectF&) メソッド (gdiplusgraphics.h)

Graphics::D rawEllipse メソッドは楕円を描画します。

構文

Status DrawEllipse(
  const Pen     *pen,
  const RectF & rect
);

パラメーター

pen

楕円の描画に使用されるペンへのポインター。

rect

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

戻り値

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

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

解説

次の例では、楕円を描画します。

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

   // Create a Pen object.
   Pen bluePen(Color(255, 0, 0, 255));

   // Create a Rect object that bounds the ellipse.
   RectF ellipseRect(0.0f, 0.0f, 200.0f, 100.0f);

   // Draw the ellipse.
   graphics.DrawEllipse(&bluePen, ellipseRect);
}

要件

   
Header gdiplusgraphics.h

こちらもご覧ください

グラフィックス

FillEllipse メソッド

ペン

RectF

楕円と円弧