二维码生成实例亲自操作可用,本程序只提供方法和简单测试页面,具体可以将类复制到自己程序中使用
string data = textBox1.Text;//
pictureBox1.Image = G.toBitmap(data);
G.writeToFile(data, ImageFormat.Bmp, "123.bmp");
Image img = pictureBox1.Image;
Bitmap bmap = new Bitmap(img);
MessageBox.Show(G.readBitmap(bmap));


评论