GdPicture.NET is a Nutrient product. Learn more

QR code SDK for .NET

Read and generate QR codes in your .NET applications with enterprise-grade accuracy. Supports standard QR codes and Micro QR variants across 100+ file formats, including PDF, TIFF, JPEG, and PNG. Decode damaged or low-quality codes with built-in error correction.



QR code recognition and generation

This SDK provides reliable QR code and Micro QR code recognition and generation for .NET applications. Configure encoding modes and error correction levels; decode codes from multiple image formats; and generate codes with precise control over size, colors, and output format.

QR code SDK
Format support

Recognize and generate QR codes and Micro QR codes across 100+ image formats, including PDF, TIFF, JPEG, and PNG. Decode codes from black and white, grayscale, palletized, and color images — full-page or region-specific.


Output details

Returns the decoded string value, bounding box coordinates (top-left, top-right, bottom-left, bottom-right), confidence score, and QR code version for each recognized code.


Error correction

Four error correction levels (L, M, Q, H) ensure reliable recognition of partially damaged symbols. Higher correction levels enable reading in challenging real-world conditions with up to 30 percent data recovery.


High performance

AnyCPU architecture supporting both 32-bit and 64-bit environments. Multithreaded processing delivers scalable, high-performance QR code recognition and generation for demanding applications.


GET STARTED

How to use

Download and install the GdPicture.NET package to access compiled demo applications and multi-language sample projects with full source code.

Explore demo apps
Find compiled demo applications in \Samples\Bin\.
Explore multi-language source code
Find C# and VB.NET demo apps and source code in \Samples\WinForm\.
Visit reference guide
Explore other code snippets within the online reference guide.

Example of usage

The example scans QR barcodes and then writes their values to the console.

using GdPictureImaging gdpictureImaging = new GdPictureImaging();
// Select the image to process.
int imageID = gdpictureImaging.CreateGdPictureImageFromFile(@"C:\temp\source.png");
// Scan the barcodes.
gdpictureImaging.BarcodeQRReaderDoScan(imageID);
// Determine the number of scanned barcodes.
int barcodeCount = gdpictureImaging.BarcodeQRReaderGetBarcodeCount();
string content = "";
if (barcodeCount > 0)
{
content = "Number of barcodes scanned: " + barcodeCount.ToString();
// Save the value of each barcode.
for (int i = 1; i <= barcodeCount; i++)
{
content += $"\nBarcode Number: {i} Value: {gdpictureImaging.BarcodeQRReaderGetBarcodeValue(i)}";
}
}
// Write the values to the console.
Console.WriteLine(content);
// Release unnecessary resources.
gdpictureImaging.BarcodeQRReaderClear();
gdpictureImaging.ReleaseGdPictureImage(imageID);

Trusted by 3,000+ customers and Fortune 500 companies

15Y+
More than 15 years of experience developing our SDK
10K+
Trusted by more than 10,000 developers


Frequently asked questions

Which QR code versions are supported by the GdPicture.NET QR code SDK?

The SDK supports both standard QR codes and Micro QR codes, accommodating various data capacities and symbol sizes to suit different application requirements.

Can the SDK process QR codes within multiple document formats?

Yes. The GdPicture.NET QR code SDK can read and write QR codes across more than 100 document formats, including bitmap, metafile, and PDF. This versatility ensures seamless integration with diverse file types.

How does the SDK handle error correction for damaged or partially obscured QR codes?

The SDK implements error correction code (ECC) algorithms, enabling the recognition and reconstruction of partially destroyed or obscured QR code symbols. This feature enhances reliability in real-world scenarios where barcodes may be damaged.

Is the GdPicture.NET SDK optimized for multithreaded applications?

Yes. The SDK is designed to function efficiently in multithreaded environments, supporting both 32-bit and 64-bit versions. This optimization ensures high performance in applications requiring concurrent processing.

What specific information does the SDK provide upon successful QR code recognition?

Upon detecting a QR code, the SDK returns detailed information, including:

  • The decoded string value of the QR code
  • The bounding box coordinates (top-left, top-right, bottom-left, bottom-right)
  • The version of the QR code
  • The confidence level of the recognition

This comprehensive data aids developers in accurately interpreting and utilizing QR code information within their applications.

60-day free trial

Try GdPicture.NET now!