绘制一个立体饼图的代码
namespace 绘制立体饼图{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Graphics g = pictureBox1.CreateGraphics();
for (int i = 0; i < 30; i++)
g.FillPie(Brushes.DarkRed, new Rectangle(100, 20 + i, 200,100), 100,100);
g.FillPie(Brushes.Red, new Rectangle(100, 20,200, 100), 100, 100);
}
}
}