Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
In this tutorial, you'll learn how to generate QR codes using C# with the Iron Barcode library, which is free for development. Begin by accessing the package manager console and installing the Iron Barcode library using the command install package barcode
. Once installed, navigate to the program.cs file and include the using IronBarcode
namespace. To create a QR code, use the QRCodeWriter.CreateQRCode
function, providing the desired text as an argument, such as 'ironsoftware.com'. Save the QR code in formats like JPEG, PNG, or others by specifying the path and filename. If needed, adjust the QR code's size by passing the required dimensions as a second argument. Additionally, Iron Barcode allows you to add text below or above the QR code using AddBarcodeValueTextBelowBarcode
and AddAnnotationTextAboveBarcode
functions. To enhance the QR code with a logo, replace the create QR code function with CreateQRCodeWithLogo
, passing the QR code value, logo file path, and size as arguments. Execute the program, and you'll find the generated QR code image in the output folder, complete with any added annotations, text, and logo. This tutorial provides a comprehensive approach to customizing QR codes, and for further assistance, a support team is available.
Further Reading: How to Generate a QR Code Using C# with IronBarcode