Browse our Products

Aspose.BarCode for .NET 17.02 Release Notes

Aspose.BarCode for .Net has been updated to version 17.02 and we are pleased to announce it. The following is a list of changes in this version of Aspose.Imaging.

Features and Improvements

KeySummaryCategory
BARCODENET-36457Unable to successfully read code39standard barcode from PNG imageEnhancement
BARCODENET-36456QR code is not recognizingEnhancement
BARCODENET-36450Restore code128 uses a bitmap spliting in the histogram algorithmEnhancement

Usage examples

BARCODENET-36457 Unable to successfully read code39standard barcode from PNG image

Sample:

 using (BarCodeReader reader = new BarCodeReader("bar.png", DecodeType.AllSupportedTypes))

{

    reader.RecognitionMode = RecognitionMode.MaxBarCodes;

    while (reader.Read())

    {

        Console.WriteLine("{0}: {1}", reader.GetCodeType(), reader.GetCodeText());

    }

}

Result:

 Code39Standard: 16-23285

BARCODENET-36456 QR code is not recognizing

Sample:

 string filename = "image1_out.png";

using (BarCodeReader reader = new BarCodeReader(filename, DecodeType.QR))

{

    reader.RecognitionMode = RecognitionMode.MaxQuality;

    while (reader.Read())

    {

        Console.WriteLine(reader.GetBarCodeDecodeType() + ": " + reader.GetCodeText());

    }

}

Result:

 QR: B8BFFEE8-75C2-47EA-AF95-A608BF574771-201701-1501761-29238569-18259579-8929-1988-07-26

BARCODENET-36450 Restore code128 uses a bitmap spliting in the histogram algorithm

Code sample

 string filename = @"42.tif";

using(BarCodeReader barcodeReader = new BarCodeReader(filename, DecodeType.Code128))

{

   barcodeReader.RecognitionMode = RecognitionMode.MaxQuality;

   while (barcodeReader.Read())

   {

      Console.WriteLine(" -- Symbol:" + barcodeReader.GetCodeType() + " Code :" + barcodeReader.GetCodeText());

   }

}
 Result:

 -- Symbol:Code128 Code :AZ000000014942