需要用到的类,先在命名空间声明。
需要用到类,先在命名空间引入。
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ThoughtWorks.QRCode.Codec;
using ThoughtWorks.QRCode.Codec.Data;
1,生成二维码
/// <summary>
/// 生成二维码,如果有Logo,则在二维码中添加Logo
/// </summary>
/// <param name="content"></param>
/// <returns></returns>
public Bitmap CreateQRCode(string content)