Barcode Generation and Recognition Library for C++
Generate or Scan a Barcode in C++ in 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++?
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.
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, 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.
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 and PDF files with Aspose.PDF
Support for linear, 2D and postal symbologies