
c#怎么画虚线圆
2个回答
展开全部
private void Form_Paint(object sender, PaintEventArgs e)
{
Pen p = new Pen(Color.Black);
p.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDot;
e.Graphics.DrawEllipse(p, 3, 3, 20, 20);
}
{
Pen p = new Pen(Color.Black);
p.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDot;
e.Graphics.DrawEllipse(p, 3, 3, 20, 20);
}
追问
Graphics报错了
追答
我的没报错...
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询