Data Matrix Size Setting Instruction

Setting Data Matrix Barcode Size

Data Matrix barcode size is customizable during barcode generation. OnBarcode's Data Matrix generating and scanning controls enable customers to set the created image size freely.

Data Matrix Generator Controls

Data Matrix Scanner Controls

Data Matrix Generator & Scanner Software



Data Matrix Structure

  • X : the width of a module bar; Xmin=1 pixel
  • Q : the width of the quiet zone; Qmin=X
  • data regions : consisting of square modules set out in a regular array
  • finder pattern : two solid adjacent borders in an "L" shape (width=X)
  • timing pattern : other two borders consisting of alternating dark and light modules
  • alignment pattern : for larger symbols (start with 32x32) to separate data regions (=2X)




Data Matrix Barcode Width

The width W of a Data Matrix symbol, including quiet zones, is determined by your symbol size (format mode) and module width.
It can be calculated from the following expression:


W = M1X + 2 Q

(M1 stands for the larger number in the Format Mode (Symbol Size), eg1.If 12x12, M1=12; eg2. If 8x32, M1=32.)

Quiet zone is optional for OnBarcode components.

Accoriding to ISO/IEC specifications, the minimum quiet zone is equal to X on all four sides. For applications with moderate to excessive reflected noise in close proximity to the symbol, a Quiet Zone of 2X to 4X is recommended.


Then the minimum value of W can be calculated as below:


N min = X ,
W min = M1 + 2
Eg. If you choose format mode 10*10 to encode data = " 123 "
W min = M + 2 = 10 + 2 = 12 pixel



Data Matrix Barcode Height

The height of a Data Matrix symbol, including quiet zones, is determined by your symbol size (format mode) and module width.
It can be calculated from the following expression:

H = M2X + 2

(M2 Stands for the smaller number in the Format Mode (Symbol Size), eg1.If 12x12, M2=12; eg2. If 8x32, M2=8.)
Then the minimum value of H can be calculated as below:


Q min = X, X min = 1 pixel ,
W min = M2 + 2
Eg. If you choose format mode 8*32 to encode a data,
H min = 8 + 2 = 10 pixel


OnBarcode provides details of Data Matrix Barcode Size Setting in C#.




OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.