C#生成二维码
2020-12-13 13:50
标签:des style blog http io color os ar 使用 首先引用ThoughtWorks.QRCode.dll 代码: 使用示例: C#生成二维码 标签:des style blog http io color os ar 使用 原文地址:http://www.cnblogs.com/s0611163/p/4056412.htmlusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using ThoughtWorks.QRCode.Codec;
namespace QRCodeUtil
{
///
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using QRCodeUtil;
namespace SWX
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Bitmap bmp = QRCodeHelper.GetQRCodeBmp(@"http://www.baidu.com/");
string str = HttpContext.Current.Request.MapPath("\\aa.bmp");
bmp.Save(str);
}
}
}