TIFF JPG PDF BMP QR
Aspose.BarCode  for C++
PNG

Generate QR Code via C++

Create QR Code, GS1 QR Code type barcode in image formats using Aspose.BarCode for C++ APIs.

How to Generate QR Barcode Using C++

In order to create QR Code, GS1 QR Code barcode , we’ll use

Aspose.BarCode for C++

API which is a feature-rich, powerful and easy to use barcode API for C++ platform. You can download its latest version directly, just open

NuGet

package manager, search for Aspose.BarCode.Cpp and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.BarCode.Cpp

Steps to Generate QR Code via C++

  1. Create a new instance of BarcodeGenerator
  2. Set code text and EncodeTypes as parameters
  3. Call the BarcodeGenerator.Save method to save barcode as image

System Requirements

Aspose.BarCode for C++ supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Aspose.BarCode for C++ DLL referenced in your project.
 

Create QR Barcodes - C++

// Create barcode generator
System::SharedPtr<BarcodeGenerator> barcodeGenerator = System::MakeObject<BarcodeGenerator>(EncodeTypes::QR, u"1234567");
barcodeGenerator->get_Parameters()->set_Resolution(300);
// Generate barcode and save as image
barcodeGenerator->Save(u"output.jpg"); 
// Use the relevant EncodeTypes QR, GS1 QR
 

QR Barcode Generation Live Demos

Create QR Barocdes right now by visiting our Live Demos website.The live demo has the following benefits

  No need to download Aspose API.
  No need to write any code.
  Just set the QR encoding type, text and image type.
  You will get the generated QR barcode.

About Aspose.BarCode for C++ API

Aspose.BarCode is a barcode reader and generation API. It can easily decode and generate 1D, 2D and postal barcodes of multiple symbologies. Developers can easily integrate it in any barcode generation and scanning application. Moreover, Generated barcodes can easily be exported to different high-quality image formats. Its a standalone library and does not require any additional software installation.

Other Supported Barcode Generation Symbologies

Using C++, One can also create barcode of different symbologies including.

PDF417 (PDF 417, Micro Pdf417, Macro PDF417)
DATABAR (GS1 Databar Expanded, GS1 Databar Expanded Stacked, GS1 DataBar Expanded, GS1 Databar OmniDirectional, GS1 DataBar Stacked, GS1 Databar Stacked OmniDirectional, GS1 DataBar Truncated)
DATAMATRIX (Data Matrix, GS1 Data Matrix)
EAN (EAN-8, EAN-13, EAN-14)
UPC (UPC-A, UPC-E, UPCA GS1 Code 128 Coupon, UPCA GS1 Databar Coupon)
AZTEC (AZTEC)
CODEBLOCK (CodablockF, GS1 CodablockF)
CODE128 (Code 128, GS1-128)
CODE16K (CODE 16K)
CODE32 (ITALIAN PHARMACODE CODE 32)
CODE39 (Code 39 Extended, Code 39 Standard)
CODE93 (Code 93 Extended, Code 93 Standard)
ONECODE (USPS ONECODE)
AUSTRALIAPOST (Australia Post, Australia Poste Parcel)
DEUTSCHEPOST (Deutsche Post Identcode, Deutsche Post Leitcode)
DUTCHKIX (KIX-CODE)
ITALIANPOST25 (ITALIAN POST 25)
RM4SCC (ROYALMAIL RM4SCC)
POSTNET (POSTNET)
SINGAPOREPOST (SINGAPORE POST)
SWISSPOSTPARCEL (SWISS POST PARCEL)
DOTCODE (DOTCODE)
INTERLEAVED2OF5 (INTERLEAVED 2 OF 5)
DATALOGIC2OF5 (DATALOGIC 2 OF 5)
IATA2OF5 (IATA 2 OF 5)
MATRIX2OF5 (MATRIX 2 OF 5)
STANDARD2OF5 (STANDARD 2 OF 5)
ISBN (ISBN)
ISMN (ISMN)
ISSN (ISSN)
ITF (ITF-6, ITF-14)
PLANET (PLANET)