C++ Barcode Processing API

Create or Recognize 1D and 2D types as well as Export the generated barcodes to multiple image formats within C++ applications.

  Download Free Trial
Aspose.BarCode for C++

Aspose.BarCode for C++


Aspose.BarCode for C++ is a rich-featured API to add barcode generation & recognition capabilities as well as export the generated ones to different images with high quality. API provides barcode appearance manipulation such as bar color, background color, quality, rotation angle, x-dimension, size, captions, resolution and a lot more.

Aspose.BarCode for C++ supports multiple imaging, rotation, sizing, and printing features. Moreover, It provides encoding and decoding features for multiple symbologies including but not limited to QR Code, Aztec, Data Matrix, ISBN, code 39 and 93, PDF417, UPC, EAN, and GS1 DataMatrix.


Advanced C++ Barcode API Features



Save generated barcode images to stream or file


Recognize codes from stream or image


Encode and decode non-english characters in 2D types


Control size & orientation


Rotate images to any angle


Major refactoring of generated image layout


Support for 1D, 2D, and postal symbologies

Supported Barcode Symbologies

Aspose.BarCode for C++ supports multiple 1D, 2D and postal symbologies with both decode and encode capabilities.

API supported linear types include:

  • EAN 13 
  • EAN 8 
  • UPC A 
  • UPC E
  • Interleaved 2 of 5 
  • Standard 2 of 5
  • MSI
  • Code 11 
  • Codabar
  • EAN14 (SCC14) 
  • SSCC18 
  • ITF14 
  • Matrix 2 of 5
  • PZN
  • Code-128 
  • Code-39 Extended and Standard
  • Code-93 Standard and Extended
  • IATA 2of5 
  • OPC 
  • GS1 Code 128 
  • ISBN 
  • ISMN 
  • ISSN
  • ITF6 
  • VIN 
  • Pharmacode
  • Databar Omni Directional 
  • Databar Truncated 
  • Databar Limited
  • Databar Expanded
  • Databar Stacked Omni Directional 
  • Databar Expanded Stacked 
  • Databar Stacked 
  • Patch Code 
  • Supplement (Decode only)

2D types include:

  • PDF417 
  • Macro PDF 417 
  • Micro PDF 417 
  • Compact PDF 417 (Decode only)
  • DataMatrix 
  • Aztec 
  • QR
  • Micro QR 
  • Italian Post 25 
  • GS1 Data Matrix 
  • Code 16K 

Postal types include:

  • Postnet 
  • Planet 
  • USPS OneCode
  • Australia Post
  • Deutsche Post Identcode 
  • Deutsche Post Leticode 
  • RM4SCC 
  • Singapore Post 
  • Australian Poste Parcel 
  • Swiss Post Parcel 

Add Barcode Processing Features to C++ Applications

Aspose.BarCode for C++ allows the developers to easily add generation & recognition features to their own C++ applications. The barcode generation process only requires the text to encode and the type as well as the resultant image type to store the barcode label. It is really that simple!

Generate barcode of type GS1-128 AI 8102 coupon - C++

// Create barcode generator
System::SharedPtr<BarcodeGenerator> barcodeGenerator = System::MakeObject<BarcodeGenerator>(EncodeTypes::UpcaGs1Code128Coupon, u"codeText");
// Generate barcode and save as image

The barcode detection process is highly optimized for performance and provides the ability to recognize all supported 1D & 2D types from images, regardless of their orientation or position on the image. Furthermore, the library can also be used to detect multiple barcodes from one image.

Read barcodes from an image - C++

// load the image from disc while specifying expected code type
System::SharedPtr<BarCodeReader> reader = System::MakeObject<BarCodeReader>(dir + u"template.jpg", DecodeType::EAN13);
// read all codes
while (reader->Read())
	// process information

Customizing Symbologies & Appearance

Customizing the barcodes is easy by setting text, adjusting appearance-related properties such as foreground and background color, font, alignment as well as specifying different kinds of symbologies of linear, 2D and postal types.


Support and Learning Resources