using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ThoughtWorks.QRCode.Codec;
using ThoughtWorks.QRCode.Codec.Data;
using ThoughtWorks.QRCode.Codec.Util;
using System.IO;
namespace QRCode
{
public partial class Form1 : Form
{
string datas = "";
string picpath = "";
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text.Trim() == "")
{
MessageBox.Show("请输入二维码信息!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
textBox1.Focus();
return;
}
datas = textBox1.Text.Trim();
if (picpath != "")
{
Image im = ECode(datas);
pic_s
如何利用C#来生成带图片的二维码
最新推荐文章于 2025-07-09 12:45:06 发布