为什么Graphics.FillEllipse 画出来是方形?
public void FillEllipseRectangle(PaintEventArgs e)
{
// Create solid brush.
SolidBrush redBrush = new SolidBrush(Color.Red);
// Create rectangle for ellipse.
int x = 0;
int y = 0;
int width = 5;
int height = 5;
Rectangle rect = new Rectangle(x, y, width, height);
// Fill ellipse on screen.
e.Graphics.FillEllipse(redBrush, rect);
}
为什么width 和height 值小的时候画出来是方形? 大于8的时候是圆形?
难道我电脑显示的问题?