C# QRBarCode
程序员文章站
2023-11-07 15:52:34
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); } }
上一篇: Android仿淘宝切换商品列表布局效果的示例代码
下一篇: 火锅必备食材,可以有什么