有程序段如下:
private void button1_Click(object sender, EventArgs e)
{
Graphics g;
g=this.CreateGraphics();
Pen p=new Pen(Color.Green,3);
g.DrawEllipse(p,40,40,120,120);
g.DrawRectangle(p,40,40,120,120);
p.Dispose();
g,Dispose();
}
画出程序运行后,单击窗口中的button1按钮,在窗体中所绘制出的图形。
【正确答案】:40tu