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 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 barcodes from stream or image file

 

Encode & decode non-english characters in 2D barcodes

 

Control size & orientation

 

Rotate 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:

  • 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 barcode 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 barcode 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. 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++

// 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 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 barcode type
System::SharedPtr<BarCodeReader> reader = System::MakeObject<BarCodeReader>(dir + u"template.jpg", DecodeType::EAN13);
// read all barcodes
while (reader->Read())
{
	// process information
}
reader->Close();

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 types.

 

Support and Learning Resources

 

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