Generate Barcode Images Via C++

Create barcode images of various 1D, 2D and Postal symbologies via C++ library.

 

Barcodes visually represent the data in the machine-readable form, having a printed series of parallel bars or lines of different width. Normally used in the automated checkout systems deployed in stores and supermarkets. There are various types such as linear or 2D. C++ barcode library supports both types and it is easy for programmers to generate barcode images of various symbologies. API provides a BarcodeGenerator Class that deals with different barcode symbologies creation. Delevelpers can set any type such as EncodeTypes ::EAN8, Code93Extended, Code93Standard, Standard2of5, Matrix2of5 etc.

Creating Code 93 Barcode Images

Code 93 is an alphanumeric, variable length symbologyc, primarily used by Canada Post to encode supplementary delivery information. C++ barcode API supports code-93 standard and extended symbologies. EncodeTypes::Code93Extended and EncodeTypes::Code93Standard specifies that the data should be encoded with Extended and Standard CODE 93 barcode specification simultaneously. Process of generation is, use the BarcodeGenerator class with relevant code type and text as parameters. Using the same object set the additional settings and finally call the Save method to store into the relevant image format.

C++ Code for Generating Code 93 Standard Barcode
C++ Code to Generate Code 93 Extended Barcode

Data Matrix Barcode Generation

C++ BarCode API also supports 2D symbologies including Aztec, Data Matrix, PDf-417 and QR code. Process of generating Data Matrix code is almost same i.e create BarcodeGenerator class object with DataMatrix EncodeTypes as parameter, set the relevant parameters of the same object. Finally save into the required image format. Developers can also create many other popular barcode images of various linear and 2D symbologies listed below.

C++ Code for Data Matrix Code Generation