Online Guide

For Using BC.NetBarcodeReader.Datamatrix in .NET
Scan, read, and recognize Data Matrix barcode from raster images Jpg, Jpeg, Png, Tiff, Bmp, and Gif.

Guide Overview

It's easy to use BC.NetBarcodeReader.Datamatrix library to scan and recognize Data Matrix barcode symbologies from images in your .NET projects. Here we will show you in simple steps. Please firstly download and get the free trial library (BC.NetBarcodeReaderTrial.Datamatrix.dll). And the only thing for the integration of our library is to add your project reference to it.


We take the Console Application as an example of how to use BC.NetBarcodeReader.Datamatrix library to scan and read Data Matrix from image files. For ease of use, here are simple code examples for C# and VB.NET developers. To decode all 2d barcodes and all 1d barcodes, you should use BC.NetBarcodeReader.All product.

1. Read and recognize Data Matrix barcode(s) from an image using BC.NetBarcodeReader.Datamatrix library. We also provide Data Matrix recognition solution for PDF document. If you are also interested in this, please see our product BC.NetPdfBarcodeReader.All SDK and its online guide: how to recognize barcodes from PDF file.

How to in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BC.NetBarcodeReaderTrial.All;

namespace BC.NetBarcodeReaderDemo
    class Program
        static void Main(string[] args)

        public static void ReadOneBarcodeTypefromImage()
            string[] data = NetBarcodeReader.Recognize("Datamatrix.jpg", NetBarcodeReader.Datamatrix);

            foreach (string result in data)

How to in VB.NET

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports BC.NetBarcodeReaderTrial.All

Module BCNetBarcodeReaderDemo  

    Sub Main()
    End Sub

    Public Sub ReadOneBarcodeTypefromImage()
        Dim data As String() = NetBarcodeReader.Recognize("Datamatrix.jpg", NetBarcodeReader.Datamatrix)

        For Each result As String In data

    End Sub

End Module

Guide for Each Barcode Symbology