Browse our Products
Aspose.BarCode for .NET 25.10 Release Notes
This article contains release notes information for Aspose.BarCode for .NET 25.10 (October 2025).
All Changes
| Key | Summary | Category |
|---|---|---|
| BARCODENET-39404 | Improve recognition performance of inverted barcodes | Enhancement |
Features and Improvements
Inverted Barcodes Recognition Performance
The recognition performance for inverted barcodes, where foreground and background colors are swapped, has been significantly improved. These enhancements provide more reliable decoding:
- on mobile devices under variable lighting conditions,
- in scanned documents that contain negative or inverted images,
- in high-contrast PDF files and document-processing workflows.
The feature can be enabled via the InverseImage quality setting:
using (BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.DataMatrix, "0126789ABCDEFabcdef"))
{
gen.Parameters.Barcode.BarColor = Color.White;
gen.Parameters.BackColor = Color.Black;
using (BarCodeReader reader = new BarCodeReader(gen.GenerateBarCodeImage(), DecodeType.DataMatrix))
{
reader.QualitySettings.InverseImage = InverseImageMode.Enabled;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}
}