Elevate your cross-platform C++ applications with advanced barcode processing features using the latest Aspose.BarCode for C++ 24.8 release. Generate and recognize Austalia Post, PZN, and QR codes using the latest release.
Augmented Generation of Australian Post, Planet, and Postnet Barcodes
We have optimized the generation of Australia Post, Planet, and Postnet barcodes in this C++ barcode library version. The AustralianPostShortBarHeight
is now calculated by default as 0.26 from BarHeight
, while PostalShortBarHeight
is calculated as 0.5. This code example illustrates the BarHeight
calculation for AustralianPost
.
//AustraliaPost barcode generation
System::SharedPtr<BarcodeGenerator> gen = System::MakeObject<BarcodeGenerator>(EncodeTypes::AustraliaPost, u"6212345678AP");
gen->get_Parameters()->get_Barcode()->get_AustralianPost()->set_AustralianPostEncodingTable(Aspose::BarCode::CustomerInformationInterpretingType::CTable);
gen->get_Parameters()->get_Barcode()->get_BarHeight()->set_Pixels(100.0f);
// If short bar is not specified, it is scaled to 0.26 * BarHeight
gen->get_Parameters()->get_Barcode()->get_AustralianPost()->get_AustralianPostShortBarHeight()->set_Pixels(10.0f);
gen->get_Parameters()->get_Barcode()->get_Padding()->get_Left()->set_Pixels(10.0f);
gen->get_Parameters()->get_Barcode()->get_Padding()->get_Top()->set_Pixels(10.0f);
gen->get_Parameters()->get_Barcode()->get_Padding()->get_Right()->set_Pixels(10.0f);
gen->get_Parameters()->get_Barcode()->get_Padding()->get_Bottom()->set_Pixels(10.0f);
gen->Save(u"AustraliaPost.png", BarCodeImageFormat::Png);
Source*
PZN7 and PZN8 Encoding Support
Experience PZN7 and PZN8 encoding/decoding boost within your platform-independent C++ solutions. This sample code demonstrates the encoding and decoding of the PZ7 barcodes.
//encode and decode PZN7
System::SharedPtr<BarcodeGenerator> gen = System::MakeObject<BarcodeGenerator>(EncodeTypes::PZN, u"123456");
System::SharedPtr<BarCodeReader> reader = System::MakeObject<BarCodeReader>(gen->GenerateBarCodeImage(), DecodeType::PZN);
for (System::SharedPtr<BarCodeResult> result : reader->ReadBarCodes())
{
System::Console::WriteLine(result->get_CodeTypeName() + u":" + result->get_CodeText());
}
Source*
A Better Barcode Recognition Experience
Version 24.8 of Aspose.BarCode for C++ enables you to benefit from enhanced recognition capabilities for QR, MicroQR, and RectMicroQR barcodes, including support for new parameters like QRVersion
, MicroQRVersion
, RectMicroQRVersion
, and QRErrorLevel
across Windows, Linux, and macOS platforms.
Code example:
System::SharedPtr<BarcodeGenerator> gen = System::MakeObject<BarcodeGenerator>(EncodeTypes::QR, u"Aspose");
gen->get_Parameters()->get_Barcode()->get_QR()->set_QrVersion(QRVersion::Version15);
gen->get_Parameters()->get_Barcode()->get_QR()->set_QrErrorLevel(QRErrorLevel::LevelM);
System::SharedPtr<BarCodeReader> reader = System::MakeObject<BarCodeReader>(gen->GenerateBarCodeImage(), DecodeType::QR);
reader->ReadBarCodes();
System::Console::WriteLine(u"Codetext: {0}", reader->get_FoundBarCodes()[0]->get_CodeText());
System::Console::WriteLine(u"QR version: {0}", reader->get_FoundBarCodes()[0]->get_Extended()->get_QR()->get_QRVersion());
System::Console::WriteLine(u"Error level: {0}", reader->get_FoundBarCodes()[0]->get_Extended()->get_QR()->get_QRErrorLevel());
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.BarCode for C++ 24.8 Release Notes.