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#.

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 © . All rights reserved.