//生成二维码 public void generateQRImage() { string currentPath = System.Web.HttpContext.Current.Server.MapPath(System.Web.HttpContext.Current.Request.ApplicationPath + "" + @"/Content/Qr_code_img"); string content = generateRecommendUrl(); Bitmap RQBmp = QRCodeHelper.Create(content, 410); RQBmp = QRCodeHelper.GetThumbnail(RQBmp, 400, 400); SaveImg(currentPath, RQBmp); }