C++ Barcode Processing API

Create or Recognize 1D and 2D barcode 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 barcodes to a verity of image formats in high quality. API provides barcode appearance manipulation such as background color, bar color, image quality, rotation angle, x-dimension, captions, size, resolution and much more.

Aspose.BarCode for C++ supports multiple imaging, rotation, sizing and printing features. Moreover, It provides encoding and decoding features for multiple symbologies.


Advanced C++ Barcode API Features



Save generated barcode images to stream or file


Recognize barcodes from stream or image file


Encode & decode non-english characters in 2D barcodes


Control barcode size & orientation


Rotate barcode images to any angle


Major refactoring of generated image layout


Support for linear, 2D & postal symbologies

Supported Barcode Symbologies

Aspose.BarCode for C++ supports for a large number of linear, 2D and postal bar code symbologies for both decode and encode capabilities.

API supported linear barcode types include:

  • EAN13 
  • EAN8 
  • UPCA 
  • UPCE
  • Interleaved2of5 
  • Standard2of5
  • MSI
  • Code11 
  • Codabar
  • EAN14(SCC14) 
  • SSCC18 
  • ITF14 
  • Matrix 2 of 5
  • PZN
  • Code128 
  • Code39 Extended 
  • Code39 Standard
  • Code93 Extended
  • Code93 Standard 
  • IATA 2 of 5 
  • OPC 
  • GS1Code128 
  • ISBN 
  • ISMN 
  • ISSN
  • ITF6 
  • VIN 
  • Pharmacode
  • DatabarOmniDirectional 
  • DatabarTruncated 
  • DatabarLimited
  • DatabarExpanded
  • DatabarStackedOmniDirectional 
  • DatabarExpandedStacked 
  • DatabarStacked 
  • PatchCode 
  • Supplement (Decode only)

2D barcode types include:

  • PDF417 
  • MacroPDF417 
  • MicroPDF417 
  • CompactPDF417 (Decode only)
  • DataMatrix 
  • Aztec 
  • QR
  • MicroQR 
  • Italian Post 25 
  • GS1DataMatrix 
  • Code16K 

Postal barcode types include:

  • Postnet 
  • Planet 
  • USPS OneCode
  • Australia Post
  • Deutsche Post Identcode 
  • Deutsche Post Leticode 
  • RM4SCC 
  • SingaporePost 
  • AustralianPosteParcel 
  • SwissPostParcel 

Add Barcode Processing Features to C++ Applications

Aspose.BarCode for C++ allows the developers to easily add barcode generation & recognition features to their own C++ applications. Barcode generation process only requires the text to encode and the barcode 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++

// instantiate BarCodeBuilder object and set CodeText & Symbology
System::SharedPtr<BarCodeBuilder> barCodeBuilder = System::MakeObject<BarCodeBuilder>(u"514141100906(8102)03", EncodeTypes::UpcaGs1Code128Coupon);
// save barcode image on disc
barCodeBuilder->Save(dir + u"output.png");

Barcode recognition process is highly optimized for performance and provides the ability to recognize all supported 1D & 2D barcode types from images, regardless of their orientation or position on the image. Furthermore, the C++ Barcode 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 barcode type
System::SharedPtr<BarCodeReader> reader = System::MakeObject<BarCodeReader>(dir + u"template.jpg", DecodeType::EAN13);
// read all barcodes
while (reader->Read())
	// process information

Customizing Symbologies & Appearance

Customizing the barcodes is easy by setting code text (data to be encoded), 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 barcode types.


Support and Learning Resources


Aspose.BarCode offers individual Barcode generation and recognition APIs for other popular development environments as listed below: