一 C#的二维码
示例:
class Program { static void Main(string[] args) { QrEncoder qrEncoder = new QrEncoder(ErrorCorrectionLevel.H); QrCode qrCode = new QrCode(); qrEncoder.TryEncode("菡,现在想起你,真的是太突然了,你跳个舞给我看嘛,能不能不要这么诱人啊,我已经逻辑混乱了", out qrCode); int ModuleSize = 12; //大小 QuietZoneModules QuietZones = QuietZoneModules.Two; //空白区域 var render = new GraphicsRenderer(new FixedModuleSize(ModuleSize, QuietZones)); using (System.IO.Stream stream = File.OpenWrite(@"E:\RuPeng_Project\DiDao\DIDAO.Front\News\11\8.png")) { render.WriteToStream(qrCode.Matrix,System.Drawing.Imaging.ImageFormat.Png, stream); } } }