.NET Barcode for WinForms          ASP.NET Barcode          .NET Barcode Reader          Java Barcode          Java Barcode Reader
Avapose > Data Matrix Introduction > Data Matrix Size Setting

Data Matrix Size Setting

Data Matrix Generator Size Setting, Generate Data Matrix in C#, ASP.NET, VB.NET applications

Size setting overview
This page is on size setting of Data Matrix, emphasizing 2 important factors: barcode width and height.

Barcode structure
The components of Data Matrix barcode are Timing pattern, Data, Finder pattern, Alignment pattern and Quiet zone.


Data Matrix Size Setting

Barcode Width:
The W (measured in pixel), including quiet zones, can be calculated from the following expression:

Data Matrix


W
= M1X + 2 Q

X : the width of a module bar; Xmin=1 pixel
Q : the width of the quiet zone; Qmin=X
M1
stands for the larger number in the Format Mode (Symbol Size), eg1.If 12x12, M1=12; eg2. If 8x32, M1=32.


Barcode Height:

The Data Matrix barcode Height, H (measured in pixel) can be calculated from the following expression:

Data Matrix


H =W= M2X + 2
(M2 Stands for the smaller number in the Format Mode (Symbol Size), eg1.If 12x12, M2=12; eg2. If 8x32, M2=8.)

For more details on Data Matrix size setting, please go through the below guide: