原創|使用教程|編輯:龔雪|2015-10-29 15:31:38.000|閱讀 744 次
概述:分享一段C#代碼,關于在BarCode Reader SDK中如何解PDF147碼。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
如何解PDF147碼?今天將給大家分享在BarCode Reader SDK中如何解PDF147碼。
using System; using System.Collections.Generic; using System.Text; using System.IO; using Bytescout.BarCodeReader; namespace SimpleTestSharp { class Program { const string path = "PDF417.png"; static void Main(string[] args) { Console.WriteLine("Reading barcode(s) from image {0}", Path.GetFullPath(path)); Reader bc = new Reader(); FoundBarcode[] barcodes = bc.ReadFrom(path); foreach (FoundBarcode barcode in barcodes) Console.WriteLine("Found barcode with type '{0}' and value '{1}'", barcode.Type, barcode.Value); Console.WriteLine("Press any key to exit.."); Console.ReadKey(); } } }
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn