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
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
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