//重画棋盘
private void DrawCheckerBoard()
{
this.BackColor = System.Drawing.SystemColors.Desktop;
this.BackColor = System.Drawing.SystemColors.Control;
}
求大神帮忙解释一下是什么意思,小弟基础差
//重画下一个选手的标志棋子
private void ReDrawNextPlayerMark() //此函数为下方棋子标志
{
System.Drawing.Graphics g = this.CreateGraphics();
imageList1.Draw(g, 2, 309, 20, 20, Player);
}
还有这个画的棋子为什么是圆形的,请大神详解一下
private void DrawCheckerBoard()
{
this.BackColor = System.Drawing.SystemColors.Desktop; 桌面的颜色,xp下默认是蓝色
this.BackColor = System.Drawing.SystemColors.Control; 控件的颜色,xp下默认是灰色有点黄
}
为什么棋子是圆形的,因为棋子的图片是在imageList1里面定义的,你打开看下