Code 39 Size Setting Instruction

Code 39 Size Setting

OnBarcode products enable users to adjust Code 39 image size during barcode generation. And Code 39 barcode size setting is supported by the following OnBarcode products:



How to generate, print barcode using .NET, Java sdk library control with example project source code free download:


Code 39 Structure

  • W : the width of Code 39.
  • Q : the width of the quiet zone; Q min = 10X.
  • I : the width of the intercharacter gap; this is a multiple of X; I min = X.
  • C : the number of encoded Code 39 data characters (including module 43 check character if used).
  • X : the width of Code 39 narrow bar; X min = 1 pixel.
  • N : the wide bar to narrow bar ratio; from 2.0 to 3.0, inclusive.



Code 39 Barcode Width

The Code 39 barcode width, W (measured in pixel), including quiet zones, can be calculated from the following expression:


W = ( C + 2 ) ( 3N + 6 ) X + ( C + 1 ) I + 2Q


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


N min = 2 , I min = 1 , Q min = 10X .
W min = ( C + 2 ) ( 3 * 2 + 6 ) X + ( C + 1 ) X + 2 * 10X
= ( 12C + 24 + C + 1 + 20 ) X
= ( 13C + 45 ) X
If, X min = 1 , W min = 13C + 45
Eg. Code 39 data = " 1A " , C = 2 .
W min = 13C + 45 = 26 + 45 = 71 pixel



Code 39 Barcode Height

There are no rigid requirements for the height of Code 39 in ISO/IEC 16388:2007(E). The recommended minimum height for manual scanning is 5.0mm or 15 % of Code 39 width (excluding quiet zones), whichever is greater.

Our Code 39 generators will set the height of Code 39 automatically. Meanwhile, customers may adjust the barcode height through Top and Bottom Margin settings.

OnBarcode provides details of Code 39 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.