Here's the details of the project:
Third-Party Project References:
===============================
ZXing.Net Assembly Info:
The sample mentioned in this blog was using the old version of ZXing.Net below:
Site: http://zxingnet.codeplex.com/
version: 0.12.0.0
timestamp: Sun Sep 22, 2013 at 3:00 PM
-------------
[1/11/2018]
New Updates for ZXing.Net Assembly:
It is now moved to: https://github.com/micjahn/ZXing.Net
===============================
C# .Net Project Info:
===============================
Version: .Net 3.5
Download Site: http://www.4shared.com/zip/VxMrVCpq/BarCodeReader.html
===============================
Code Snippet:
private void btnScanCode_Click(object sender, EventArgs e) { BarcodeReader br = new BarcodeReader(); br.Options.PossibleFormats = new List(new[] { BarcodeFormat.QR_CODE, BarcodeFormat.All_1D }); Bitmap bm = (Bitmap)Bitmap.FromFile(@"..\..\QRCodes\okinawajapan.jpg"); Result rs = br.Decode(bm); lblQRResult.Text = rs == null ? string.Empty: rs.Text; } private void btnWriteCode_Click(object sender, EventArgs e) { BarcodeWriter bw = new BarcodeWriter(); BitMatrix bitMatrix = new BitMatrix(100, 100); Bitmap bmp = bitMatrix.ToBitmap(BarcodeFormat.CODE_128, "OKINAWAJAPAN"); bmp.Save(@"..\..\QRCodes\okinawajapan.jpg", ImageFormat.Jpeg); }
No comments:
Post a Comment