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
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
package manager, search for Aspose.BarCode.Cpp and install. You may also use the following command from the Package Manager Console.
PM> Install-Package Aspose.BarCode.Cpp
Steps to Generate QR Code via C++
- Create a new instance of BarcodeGenerator
- Set code text and EncodeTypes as parameters
- Call the BarcodeGenerator.Save method to save barcode as image
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
About Aspose.BarCode for C++ APIAspose.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.