ellipse

This function is used to draw an ellipse without filling.

void ellipse(
	int left,
	int top,
	int right,
	int bottom
);

Parameters

left

The upper-left corner x coordinate of the ellipse outer cut rectangle.

top

The upper-left corner y coordinate of the ellipse outer cut rectangle.

right

The lower-right x coordinate s/he of the ellipse outer cut rectangle.

bottom

The lower-right y coordinate s/he of the ellipse outer cut rectangle.

Return Value

None

Remarks

This function draws a ellipse without filling using the current line style.

Because of the coordinates of the screen pixel stakes are integers, the ellipse described by the center of the circle and radius cannot handle even-diameter cases. The parameters of this function can solve this problem by using the outer-cut rectangle to describe the ellipse.

You can draw a circle when the outer cut rectangle is square.

Examples

None

(贡献者:Krissi  编辑