|
C# using System.Drawing; using System.Drawing.Imaging; using BarcodeWrapper;
BarcodeReader reader= new BarcodeReader(); reader.ScanWithoutRotation = true; reader.TryHard = true; reader.ScanWith45DegreeCounterClockwiseRotation = true; reader.ScanMultiple = true; Bitmap bitmap = new Bitmap(strinputpath1); int count = reader.ReadBarcodeImage(bitmap, x, y, width, height); string text = "" + count + " codes found<br><br>";
for (int i = 0; i < count; i++) { text += reader.GetBarcodeType(i) + " value:" + reader.GetBarcodeValue(i) + "<br>"; }
|