C# 的A generic error occurred in GDI+错误,懂的进
Color col1 = Color.White;
Color col2 = Color.Black;
SolidBrush brus1 = new SolidBrush(col1);
SolidBrush brus2 = new SolidBrush(col2);
Rectangle rect = new Rectangle(0, 0, 0, 0);
rect.Location = new Point(300, 300);
rect.Width = 200;//Set rect's width
rect.Height = 200;//set rect's height
if (mode == 1)
{
g.FillRectangle(brus1, rect);
}
else
{
g.FillRectangle(brus2, rect);//错误出现在这句;
}
AccurateTimer.AccurateSleep(50);
帮忙解决的加分!