GdPicture.NET is a Nutrient product. Learn more

Data Matrix code reader SDK for .NET

Read and generate Data Matrix barcodes in your .NET applications across 100+ image formats, including PDF, TIFF, JPEG, and PNG. Configure encoding modes and versions for optimal data density. Widely used in industries for marking small items with quick-read, high-capacity 2D codes.



Data Matrix recognition and generation

This SDK provides powerful Data Matrix barcode recognition and generation for .NET applications. Configure encoding modes and matrix versions, process codes across 100+ document formats, and extract detailed structural data, including row and column information with built-in error correction.

Data Matrix barcode SDK
Format support

Recognize and generate Data Matrix barcodes 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 detection. 


Output details

Returns the decoded string value and precise bounding box coordinates (top-left, top-right, bottom-left, bottom-right) for each recognized Data Matrix code, enabling accurate positioning and validation.


Structural data

Extract matrix dimensions with row and column count for each recognized Data Matrix code. Structural information supports validation, quality control, and downstream processing workflows.


High performance

Built-in error correction enables recognition of partially damaged symbols, while AnyCPU architecture and multithreaded processing deliver scalable performance across 32-bit and 64-bit environments.


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 Data Matrix 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.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);

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 image formats are supported for Data Matrix barcode recognition and generation?

The SDK supports more than 100 image formats — including bitmap, metafile, and PDF — enabling seamless integration with various document types

Can the SDK detect multiple Data Matrix barcodes within a single image?

Yes. It can detect and process multiple Data Matrix barcodes from black and white, grayscale, palletized, and color images, enhancing efficiency in batch processing scenarios.

What information does the SDK provide upon successful barcode recognition?

Upon recognizing a Data Matrix barcode, the SDK returns the decoded string value, the bounding box coordinates (top-left, top-right, bottom-left, bottom-right), and the number of rows and columns of each barcode, facilitating precise data extraction and localization.

Is the SDK capable of reading barcodes from various color image types?

Yes. The SDK can accurately read Data Matrix barcodes from black and white, grayscale, palletized, and color images, ensuring versatility across different image sources.

Does the SDK support error correction for damaged or partially obscured barcodes?

The SDK incorporates error correction code (ECC) algorithms, enabling the recognition and reconstruction of partially damaged or obscured Data Matrix symbols, thereby enhancing reliability in real-world applications.

Can the SDK process barcodes within a specific region of an image?

Yes. Developers can define a region of interest (ROI) within an image, instructing the SDK to focus on and process Data Matrix barcodes located in that specific area, which is useful for documents with multiple data zones.

Is the GdPicture.NET Data Matrix code reader SDK optimized for high-performance applications?

The SDK is designed for high-speed scanning and is optimized for performance, ensuring rapid barcode detection across various file formats, making it suitable for applications requiring efficient processing.

60-day free trial

Try GdPicture.NET now!