C# QRBarCode
程序员文章站
2022-06-14 09:06:36
1. install-package barcode -v 4.0.2.2; 2. ......
1. install-package barcode -v 4.0.2.2;
2.
using ironbarcode; class program { static void main(string[] args) { barcodedemo(); console.readline(); } static void barcodedemo() { string barcodemsg = "be bold and make a difference!"; generatedbarcode mybarcode =barcodewriter.createbarcode(barcodemsg, barcodewriterencoding.qrcode); string picturefilepath = datetime.now.tostring("yyyymmddhhmmssffff") + ".jpg"; mybarcode.saveaspng(picturefilepath); system.diagnostics.process.start(picturefilepath); } }
上一篇: 孩子免疫力低吃什么东西好,给家长介绍一下
下一篇: ARM 安装中文输入法