Why Aspose.BarCode for C++?

Real-world scans are rarely perfect. Aspose.BarCode for C++ is designed to decode barcodes from damaged or distorted images, including noise, glare, skew, low contrast, and missing elements. Tune quality settings to balance speed and tolerance, and use built-in cleanup options such as median and salt-and-pepper filtering when the input is messy.

Standards? Covered.

Aspose.BarCode for C++ 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

Native Windows, Mac and Linux Support

Aspose.BarCode for C++ is a native library for Windows, Mac and Linux. It targets x64 applications and fits common C++ toolchains, including Visual Studio and CMake builds with MSVC, GCC, or 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, Native Barcode Processing

Aspose.BarCode for C++ delivers high-performance barcode generation and recognition for native applications. Build engineering tools, industrial systems, desktop utilities, or server-side services with a library designed for accuracy and efficiency. Recognition stays reliable on rotated, skewed, or low-quality images, and generation gives you precise control for print, screen, or embedded workflows.

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

  • Generate and recognize 80+ barcode symbologies
  • Work with common raster formats such as PNG, JPEG, BMP, and TIFF
  • Read barcodes from noisy, distorted, or rotated images with high accuracy
  • Customize resolution, padding, orientation, captions, and text settings
  • Integrate barcodes into desktop apps, embedded systems, or back-end services

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 80 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 and PDF files with Aspose.PDF

Feature icon

Support for linear, 2D and postal symbologies