DrawEllipse
Graphics.DrawEllipse method (1 of 4)
Draws an ellipse defined by a bounding RectangleF
.
public void DrawEllipse(Pen pen, RectangleF rect)
Parameter |
Type |
Description |
pen |
Pen |
Pen that determines the color, width, and style of the ellipse. |
rect |
RectangleF |
RectangleF structure that defines the boundaries of the ellipse. |
Exceptions
exception |
condition |
ArgumentNullException |
pen is null. |
See Also
Graphics.DrawEllipse method (2 of 4)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
public void DrawEllipse(Pen pen, float x, float y, float width, float height)
Parameter |
Type |
Description |
pen |
Pen |
Pen that determines the color, width, and style of the ellipse. |
x |
Single |
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y |
Single |
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width |
Single |
Width of the bounding rectangle that defines the ellipse. |
height |
Single |
Height of the bounding rectangle that defines the ellipse. |
Exceptions
exception |
condition |
ArgumentNullException |
pen is null. |
See Also
Graphics.DrawEllipse method (3 of 4)
Draws an ellipse specified by a bounding Rectangle
structure.
public void DrawEllipse(Pen pen, Rectangle rect)
Parameter |
Type |
Description |
pen |
Pen |
Pen that determines the color, width, and style of the ellipse. |
rect |
Rectangle |
Rectangle structure that defines the boundaries of the ellipse. |
Exceptions
exception |
condition |
ArgumentNullException |
pen is null. |
See Also
Graphics.DrawEllipse method (4 of 4)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
public void DrawEllipse(Pen pen, int x, int y, int width, int height)
Parameter |
Type |
Description |
pen |
Pen |
Pen that determines the color, width, and style of the ellipse. |
x |
Int32 |
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
y |
Int32 |
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
width |
Int32 |
Width of the bounding rectangle that defines the ellipse. |
height |
Int32 |
Height of the bounding rectangle that defines the ellipse. |
Exceptions
exception |
condition |
ArgumentNullException |
pen is null. |
See Also