Barcode Recognition and Generation Library for C++
Barcode in C++ with Just a Few Lines
More showcases >// Create instance of BarcodeGenerator
auto gen = System::MakeObject<BarcodeGenerator>(EncodeTypes::QR, u"ASPOSE");
// Set barcode x-dimension in pixels
gen->get_Parameters()->get_Barcode()->get_XDimension()->set_Pixels(4.0f);
// Generate barcode and Save to PNG
gen->Save(u"QRCode.png", BarCodeImageFormat::Png);
> dotnet add package Aspose.BarCode.Cpp
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.
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.
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.
Save barcode labels in various formats
Recognize from stream or file
Encode & decode characters (non-english) in 2D types
Rotate barcode images at any angle
Scan barcodes from multi-page TIFF
Support for linear, 2D and postal symbologies