Graphics::FillEllipse(constBrush*,constRectF&) メソッド (gdiplusgraphics.h)

Graphics::FillEllipse メソッドは、四角形で指定された楕円の内部を塗りつぶすためにブラシを使用します。

構文

Status FillEllipse(
  const Brush   *brush,
  const RectF & rect
);

パラメーター

brush

楕円の内部を塗りつぶすために使用される Brush オブジェクトへのポインター。

rect

楕円の境界を指定する四角形への参照。

戻り値

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

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

解説

次の使用例は、外接する四角形で定義された楕円を塗りつぶします。

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

   // Create a SolidBrush object.
   SolidBrush blackBrush(Color(255, 0, 0, 0));

   // Create the RectF object that defines the ellipse.
   RectF ellipseRect(0.0f, 0.6f, 200.8f, 100.9f);

   // Fill the ellipse.
   graphics.FillEllipse(&blackBrush, ellipseRect);
}

要件

   
Header gdiplusgraphics.h

こちらもご覧ください

Brush

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

グラフィックス

RectF

ブラシを使用した図形の塗りつぶし