The ITF 14 barcode consists of Quiet zone, Start character, Character pairs, Stop character and Quiet zone.
As a result, the symbol width of an ITF 14 can be calculated with the formula:
ITF 14

|
W = [P( 4N + 6 )X +2Q + 2B
|
W : the symbol width of ITF-14
Q : the width of quiet zone on either side, Q min = 10X.
P : the number of character pairs
B : the width of the bearer bar
X : the width of a narrow element
N : the wide-to-narrow ratio |
With the formula above, there will be three ways to set the size of an ITF 14 image in C#. Here are the methods and respective examples.
Method 1. Setting the X Dimension
Setting in C# generator
Steps:
- Set the X dimension
- Set AutoResize to false
- Adjust other properties
|
Sample:
ITF14.Data = "1122334455667";
ITF14.X = 2;
ITF14.N = 2.5F;
ITF14.BearerBarLeft = 2;
ITF14.BearerBarTop = 2;
ITF14.AutoResize = false;
Other properties: default;
The generated ITF-14 image is:

|
Method 2. Setting the Barcode Width
Setting in C# generator
Steps:
- Set the barcode width
- Set AutoResize to true
- Adjust other properties
|
Sample:
ITF14.Data = "1122334455667";
ITF14.BarcodeImageWidth = 250;
ITF14.BarcodeImageHeight = 75;
ITF14.N = 2.5F;
ITF14.BearerBarLeft = 2;
ITF14.BearerBarTop = 2;
ITF14.AutoResize = true;
Other properties: default;
The generated ITF-14 image is:

According to the formula above, the maximum X dimension is ? pixel for this ITF-14 barcode.
|
Method 3. Setting both X Dimension and Symbol Width
Setting in C# generator
Steps:
- Set the X dimension
- Set the barcode width
- Set AutoResize to false
- Adjust other properties
|
Sample:
ITF14.Data = "1122334455667";
ITF14.BarcodeImageWidth = 240;
ITF14.X = 2;
ITF14.AutoResize = false;
Other properties: default;
The generated ITF-14 image is:

|
Attention: Please note that once you have set an X dimension, there will always be a minimum barcode width as calculated from the calculation above. Therefore, if the W you have set is less than the minimum value, Avapose ITF-14 Generators will reset the barcode width to a minimum value according to the standard. Here is an example:
If you set in C# ITF 14 generator:
ITF14.X=2;
ITF14.W=250
ITF 14; Data ="1122334455667";
The rest of barcode settings are in default value
|
According to the formula above,
W = 2Q +29NX + 48X + 2B
//X=2pixel, N=2.5, B=2*2; Q min=10*2=20 pixel
W min= 2*20+29*2.5*2+48*2+2*4
=40+145+96+8
=289 pixel |
However, the W (250 pixel) you have set in C# generator is less than the minimum barcode width (289pixel), so the generator will automatically reset it to 289 pixel according to standard. Here is the generated barcode image:
On the other hand, if you set a barcode width larger than the minimum W calculated by the formula, extra spaces will be added to either side of the quiet zones.
if you set in your C # generator:
ITF14.X=3;
ITF14.W=436;
ITF14; Data ="1122334455667";
The rest of barcode settings are in default value.
|
According to the formula,
W = 2Q +29NX + 48X + 2B
//X=3pixel, N=2, B=3*3; Q min=10*3=10 pixel
W min= 2*30+29*2*3+48*3+18
=60+144+18+174
=396 pixel
|
Now your W setting is 436 pixel, which is larger than the minimum width, so an extra 140 pixel will be added to both side of the quiet zone. Here is the barcode image:
ITF14 barcode size configurations in C# for various barcode solutions