clearellipse

This function is used to clear an elliptical region.

void clearellipse(
	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

The function uses the background color to clear the elliptical region.

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.

When the outer cut rectangle is square, you can empty the circular area.

Examples

None

(贡献者:Krissi  编辑