예제 #1
0
        public IActionResult Index(string path)
        {
            var qrcode = QRCodeHelper.Generate(path);
            var base64 = QRCodeHelper.BitMapToBase64(qrcode);

            return(Content(base64));
        }
예제 #2
0
 /// <summary>
 /// 将文本转换成二维码
 /// </summary>
 /// <param name="text"></param>
 /// <param name="DarkColor"></param>
 /// <param name="LightColor"></param>
 /// <returns></returns>
 public static Bitmap GenerateQRCode(string text, System.Drawing.Color DarkColor, System.Drawing.Color LightColor)
 {
     return(QRCodeHelper.Generate(text));
 }