.NET Barcode for WinForms          ASP.NET Barcode          .NET Barcode Reader          Java Barcode          Java Barcode Reader
Avapose > Code 39 Introduction > Code 39 Size Setting

Code 39 Size Setting

Code 39 Generator Size Setting, Generate Code 39 in C#, ASP.NET, VB.NET applications

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

Barcode structure
The components of Code 39 barcode include a leading quiet zone, start character, one or more symbol characters representing data (including check character, if present), stop character and a trailing quiet zone.


Code 39 Size Setting

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

Code 39


W
= [ P (4N + 6 ) +N + 6 ) ] X + 2Q

W: barcode width of Interleaved 2 of 5.
X: width of Interleaved 2 of 5 narrow bar; (X min = 1 pixel)
N: the wide bar to narrow bar ratio; (2.0<=N<=3.0)
P: the number of character pairs.
Q: the width of the quiet zone; (Qmin= 10X)


Barcode Width:

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

Code 39


According to ISO/IEC 16388:2007 (E) standard, there are no detailed requirements for code 39 barcode height. However, there is a recommended minimum bar code height for manual scanning, that is, 5,0 mm or 15% of symbol width including quiet zones, whichever is greater.

For more details on Code 39 size setting, please go through the below guide: