Browse our Products

Aspose.BarCode for Cpp 25.9 Release Notes

All Changes

KeySummaryCategory
BARCODENET-39385Improve Aztec recognition performance on mobile devicesEnhancement
BARCODENET-39397Optimize 2D barcode recognition, change the recognition algorithm of GS1CompositeBarEnhancement

Public API changes and backwards compatibility

Aztec Code recognition performance

Aztec Code barcode recognition performance has been enhanced, with better results on mobile devices and in document processing scenarios.

    auto reader = System::MakeObject<BarCodeReader>(u"Aztec.png", DecodeType::Aztec);
    auto results = reader->ReadBarCodes();
    for (auto const& res : results)
        Console::WriteLine(res->get_CodeText());

GS1 Composite Barcode recognition process

GS1 Composite Barcode recognition process has been updated to eliminate delays when using DecodeType.Types2D.

    auto gen = System::MakeObject<BarcodeGenerator>(
        EncodeTypes::GS1CompositeBar,
        u"(01)13112345678906|(17)010615(10)A123456"
    );

    auto params = gen->get_Parameters();
    params->get_Barcode()->get_GS1CompositeBar()->set_LinearComponentType(EncodeTypes::GS1Code128);
    params->get_Barcode()->get_GS1CompositeBar()->set_TwoDComponentType(TwoDComponentType::CC_C);
    params->get_Barcode()->get_GS1CompositeBar()->set_IsAllowOnlyGS1Encoding(true);
    params->get_Barcode()->get_CodeTextParameters()->set_Location(CodeLocation::None);

    auto image = gen->GenerateBarCodeImage();

    auto reader = System::MakeObject<BarCodeReader>(image, DecodeType::GS1CompositeBar);
    auto results = reader->ReadBarCodes();
    for (auto const& res : results)
        Console::WriteLine(res->get_CodeText());