生成验证码
摘要:
StringBuilder sb = new StringBuilder();Random random = new Random();for (int i = 0; i < 4; i++){ sb.Append(random.Next(0, 9));}Bitmap img = new Bitmap((int)Math.Ceiling((sb.ToString().Length * 12.5)), 22);Graphics gc = Graphics.FromImage(img);gc.Clear(Color.White);gc.DrawRectangle(new Pen(Color.S 阅读全文
posted @ 2013-11-22 15:15 kingtiger 阅读(115) 评论(0) 推荐(0) 编辑