Why Aspose.Barcode for C++?

The barcode library supports various settings to scan and decode damaged or distorted barcodes. It allows successfully reading barcode images with various defects, such as Gaussian noise, inverted colors, white spots, visual artifacts, colored background, and missing bars. To improve barcode readability, the API enables special methods and mechanisms, including median filtering, ‘salt-and-paper’ filtering, reducing image size, and others. Moreover, the barcode library benefits from advanced methods to decode industrial Data Matrix barcodes, read severely damaged QR codes, and even restore some data from incorrect barcodes.

Standards? Covered.

Aspose.BarCode for C++ Aspose.Barcode supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.

Matrix / 2D Codes

  • QR Code, MicroQR, rMQR
  • Data Matrix, Industrial Data Matrix (DPM)
  • Aztec
  • Han Xin
  • MaxiCode
  • DotCode

Linear / 1D Codes

  • UPCA, UPCE
  • EAN13, EAN14, EAN8
  • Code 128
  • DataBar
  • ITF
  • Postal

Industry & Composite Codes

  • GS1
  • ECI
  • Composite barcodes
  • HIBC
  • SwissQR
  • Royal Mailmark

Cross-platform Native Support

Aspose.Barcode for C++ is a cross-platform library for native development on Windows and Linux. It supports x64 applications and integrates easily with Visual Studio, CMake, and popular C++ compilers such as MSVC, GCC, and Clang.

Microsoft Windows
Linux
macOS
VS Code
Eclipse
NuGet
GitHub

Live Code Demo

Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.


// Initialize BarcodeGenerator auto gen = System::MakeObject<BarcodeGenerator>(EncodeTypes::QR, u"1234567"); // Set generation parameters gen->get_Parameters()->get_Barcode()->get_XDimension()->set_Pixels(7.0f); gen->get_Parameters()->get_Border()->set_Color(System::Drawing::Color::FromArgb((int32_t)0xff000000)); gen->get_Parameters()->get_Border()->get_Width()->set_Pixels(7.0f); // Generate and save Barcode image gen->Save(u"image.png", Aspose::BarCode::Generation::BarCodeImageFormat::Png);

// Initialize BarCodeReader auto reader = System::MakeObject<BarCodeReader>(u"image.png", DecodeType::QR); // Set recognition quality reader->set_QualitySettings(QualitySettings::get_HighPerformance()); // Recognize barcodes and output results auto res = reader->ReadBarCodes(); System::Console::WriteLine(System::String(u"Recognized ") + res->get_Length() + u"barcode(s)"); for (System::SharedPtr<BarCodeResult> r : res) System::Console::WriteLine(r->get_CodeTypeName() + u": " + r->get_CodeText());

Fast, Reliable, and Feature-Rich

Aspose.Barcode for C++ gives developers low-level control and high-speed performance for barcode processing in native applications. Whether you’re building engineering tools, industrial systems, desktop utilities, or server-side solutions — the library is designed to deliver accuracy and efficiency with minimal external dependencies. Barcode recognition works reliably even on rotated, skewed, or low-quality images, while generation allows complete customization for print, digital, or embedded use.

With full support for 1D and 2D barcode standards, you can:

  • Generate and recognize over 60 barcode symbologies
  • Work with raster formats like PNG, JPEG, BMP, TIFF, and more
  • Process noisy, distorted, or rotated images with high accuracy
  • Customize resolution, padding, orientation, and text settings
  • Integrate barcodes into desktop apps, embedded systems, or reports

Features and capabilities

Aspose.BarCode for C++ is a powerful development library to generate & recognize 1D & 2D barcodes from various image types at any angle. This API allows exporting generated barcodes to different high-quality image formats, enables modifying the appearance of generated barcodes and their parameters, such as background color, bar color, rotation angle, x-dimension, image quality, resolution, captions, size, and many others. It also provides rich barcode detecting and reading functionality and supports over 60 barcode types.

Feature icon

Save barcode labels in various formats

Feature icon

Recognize from stream or file

Feature icon

Encode & decode characters (non-english) in 2D types

Feature icon

Rotate barcode images at any angle

Feature icon

Scan barcodes from multi-page TIFF

Feature icon

Support for linear, 2D and postal symbologies