for(int i=0;i<checkCode.Length;i++)
{
int cindex = rand.Next(7);
int findex = rand.Next(5);
Font f = new System.Drawing.Font(font[findex], 10, System.Drawing.FontStyle.Bold);
Brush b = new System.Drawing.SolidBrush(c[cindex]);
int ii=5;
if((i+1)%2==0)
{
ii=1;
}
g.DrawString(checkCode.Substring(i, 1), f, b, 3 + (i * 12), ii);//
}
这块儿让我研究了半天,明天再找俺partner商量商量去