Enhancements made to the BarCodeReader with Aspose.Barcode for .NET 18.10

Share on FacebookTweet about this on TwitterShare on LinkedIn

We are pleased to announce the release of Aspose.Barcode for .NET 18.10. This micro release addresses the instance reusability issue of the BarCodeReader. For a detailed note on what is new and fixed, please visit the release notes page for information of API documentation.

Enhancements made to the BarCodeReader

Before this release, if you wanted to scan two Barcodes, you had to create a new instance of the BarCodeReader to scan the second Barcode. This release of Aspose.Barcode for .NET addresses that issue. Now you can scan multiple Barcodes using the same instance of the BarCodeReader. This is demonstrated using a simple example given below.

BarCodeReader barCodeReader = new BarCodeReader();
barCodeReader.SetBarCodeImage(new Bitmap("BarCode1.bmp"));
barCodeReader.SetBarCodeReadType(DecodeType.AllSupportedTypes);
while (barCodeReader.Read())
{
    Console.WriteLine("BarCode Type: " + barCodeReader.GetCodeType());
    Console.WriteLine("BarCode CodeText: " + barCodeReader.GetCodeText());
}

barCodeReader.SetBarCodeImage(new Bitmap("BarCode2.bmp"));
while (barCodeReader.Read())
{
    Console.WriteLine("BarCode Type: " + barCodeReader.GetCodeType());
    Console.WriteLine("BarCode CodeText: " + barCodeReader.GetCodeText());
}
barCodeReader.Close();

Aspose.BarCode for .NET Resources

You can get started with Aspose.BarCode for .NET by making use of information available in the following: