GdPicture.NET is a Nutrient product. Learn more

2D barcode reader SDK for .NET

Read and decode 2D barcode symbologies, including QR code, Micro QR code, Data Matrix, PDF417, Aztec Code, and MaxiCode. Powered by AI and fuzzy logic, the barcode engine delivers fast, accurate recognition — even with blurred or damaged codes.



Advanced 2D barcode SDK

This SDK provides powerful 2D barcode recognition and generation for .NET applications. Decode and create QR codes, Data Matrix, PDF417, Aztec Code, and MaxiCode with Unicode support, flexible configuration options, and robust error correction for reliable results.

2D barcode SDK
2D decoding

Decode 2D barcodes from images and PDFs — full-page or region-specific. Recognizes partially damaged symbols using error correction code (ECC) with full Unicode support for international character sets.


2D generation

Generate 2D barcodes in image and PDF formats with vector or raster output. Configure error correction levels, encoding modes, and symbol sizes to match your application requirements.


Symbol coverage

Supports five major 2D barcode types: Data Matrix, PDF417, QR code, Micro QR code, Aztec Code, and MaxiCode. Read and write across all formats with consistent API methods.


Output details

Returns the decoded string value, barcode type, bounding box coordinates (top-left, top-right, bottom-left, bottom-right), and structural data, including row and column count for matrix barcodes.


Flexible reading

Read barcodes on full pages or within specific regions of interest. Supports detection across multiple layouts and document types with configurable scanning parameters.


Support promise

Access expert technical support for integration, optimization, and troubleshooting. Our team is available to help you implement barcode solutions effectively.

DEMO

Test 2D barcode recognition with your own files

Upload an image or PDF containing 2D barcodes to see instant recognition results. Test detection accuracy across QR codes, Data Matrix, PDF417, Aztec Code, and MaxiCode with various image qualities.

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.

Examples of usage

using GdPictureImaging gdpictureImaging = new GdPictureImaging();
// Select the image to process.
int imageID = gdpictureImaging.CreateGdPictureImageFromFile(@"C:\temp\source.png");
// Scan the barcodes.
gdpictureImaging.BarcodeDataMatrixReaderDoScan(imageID);
// Determine the number of scanned barcodes.
int barcodeCount = gdpictureImaging.BarcodeDataMatrixReaderGetBarcodeCount();
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.BarcodeDataMatrixReaderGetBarcodeValue(i)}";
}
}
// Write the values to the console.
Console.WriteLine(content);
// Release unnecessary resources.
gdpictureImaging.BarcodeDataMatrixReaderClear();
gdpictureImaging.ReleaseGdPictureImage(imageID);

Watch video tutorials

Learn how to implement barcode reading and generation in your .NET applications. These short tutorials cover common integration patterns and best practices.


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 2D barcode symbologies are supported by the GdPicture.NET SDK?

The GdPicture.NET SDK supports a comprehensive range of 2D barcode symbologies, including:

  • QR code and Micro QR code
  • Data Matrix
  • PDF417
  • Aztec Code
  • MaxiCode

This extensive support ensures compatibility with various industry standards and applications.

Can the SDK handle multiple barcodes within a single document or image?

Yes. The GdPicture.NET SDK is capable of detecting and decoding multiple 2D barcodes within a single page or image. It can process barcodes on an entire page or within a specified region of interest, providing flexibility for various use cases

How does the SDK manage error correction for damaged or partially obscured barcodes?

The SDK incorporates error correction code (ECC) algorithms to recognize and reconstruct partially destroyed or obscured symbols. This feature enhances the reliability of barcode recognition, even when dealing with damaged documents.

Is the GdPicture.NET SDK optimized for multithreaded applications?

Yes. The SDK is designed to function efficiently in multithreaded environments. It supports AnyCPU configurations, making it suitable for both 32-bit and 64-bit applications, and ensuring high performance in concurrent processing scenarios.

What output information does the SDK provide upon successful barcode recognition?

Upon detecting a barcode, the SDK returns detailed information, including:

  • The decoded string value of the barcode
  • The bounding box coordinates (top-left, top-right, bottom-left, bottom-right)
  • The number of rows and columns in the barcode
  • The confidence level of the recognition

This comprehensive data aids developers in accurately interpreting and utilizing the barcode information within their applications.

60-day free trial

Try GdPicture.NET now!