Code 128 Size Setting Instruction
Code 128 Size Setting
With any of our
Code 128 generator, users can control the image size during barcode generation. The following generators are efficient to achieve this.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Code 128 Structure
- W : the width of Code 128.
- C : the number of start, special, symbol check and stop characters plus the number of the
data characters not included in D (i.e. C=3+special char +not double-density data char)
- X : the width of a module bar; Xmin=1 pixel
- Q : the width of the quiet zone; Qmin=10X
- D : the number of numeric data characters encoded in double density (Code Set C)
Code 128 Barcode Width
The Code 128 barcode width, W (measured in pixel), including quiet zones, can be calculated from the following expression:
W = 11 X (C+ D/2 ) +2Q + 2 X
Then the minimum value of W can be calculated as below:
X min = 1 pixel , Q min = 10X .
W min = 11( C + D/2)+22
Eg. Code 128A data = " ABC " , C = 2 .D=0
W min = 88 pixel
Code 128 Barcode Height
There are no rigid requirements for the height of Code 128 in ISO/IEC 15417:2007 (E).
However, it is recommended for manual scanning that the minimum bar height, i.e. the Y Dimension, should be 5 mm or 15% of the symbol length, whichever is greater.
Our Code 128 generators will set the height of Code 128 automatically according to the ISO standard. Meanwhile, customers may adjust the barcode height through Top and Bottom Margin settings.
OnBarcode provides details of
Code 128 Barcode Size Setting in C#.