By using the following C# sample code in your Visual Studio .NET barcode recognition application, you can easily decode and read ITF-14 barcode from a local image file. Certainly, you may also have a try with provided C#.NET APIs to recognize ITF-14 linear barcode from an image string or a bitmap of image file.
public void ScanITF14FromFile(string filename) { // Free C# demo code for reading ITF-14 1d barcode from a local image file. BarcodeResult[] results = BarCodeScanner.Scan(filename, BarCodeType.ITF14); // Free C# APIs for reading ITF-14 1d barcode from an image stream or a bitmap of image. // public static BarcodeResult[] Scan(Bitmap bitmap, BarCodeType barType); // public static BarcodeResult[] Scan(Stream stream, BarCodeType barType); foreach (BarcodeResult result in results) { Console.WriteLine(result.BarType.ToString() + "-" + result.Data); } }
In addition to specify a barcode type to decode, you can directly use the following C# demo code to implement more accurate barcode scanning and reading. And this method is suitable when there's only one ITF-14 barcode on your image source.
Bitmap bmp = new Bitmap("YourImagePath"); BarcodeResult barcode = BarCodeScanner.ScanSingle(bmp); Console.WriteLine("barcode data:{0}.", barcode.Data);