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.
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.
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.
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.
Extract matrix dimensions with row and column count for each recognized Data Matrix code. Structural information supports validation, quality control, and downstream processing workflows.
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
Download and install the GdPicture.NET package to access compiled demo applications and multi-language sample projects with full source code.
\Samples\Bin\.\Samples\WinForm\.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);Using gdpictureImaging As GdPictureImaging = New GdPictureImaging() ' Select the image to process. Dim imageID As Integer = gdpictureImaging.CreateGdPictureImageFromFile("C:\temp\source.png") ' Scan the barcodes. gdpictureImaging.BarcodeDataMatrixReaderDoScan(imageID) ' Determine the number of scanned barcodes. Dim barcodeCount As Integer = gdpictureImaging.BarcodeDataMatrixReaderGetBarcodeCount() Dim content = "" If barcodeCount > 0 Then content = "Number of barcodes scanned: " & barcodeCount.ToString() ' Save the value of each barcode. For i = 1 To barcodeCount content = content & vbLf & "Barcode Number: " & i.ToString() & " Value: " & gdpictureImaging.BarcodeDataMatrixReaderGetBarcodeValue(i).ToString() Next End If ' Write the values to the console. Console.WriteLine(content); ' Release unnecessary resources. gdpictureImaging.BarcodeDataMatrixReaderClear() gdpictureImaging.ReleaseGdPictureImage(imageID)End UsingThe SDK supports more than 100 image formats — including bitmap, metafile, and PDF — enabling seamless integration with various document types
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.
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.
Yes. The SDK can accurately read Data Matrix barcodes from black and white, grayscale, palletized, and color images, ensuring versatility across different image sources.
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.
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.
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