# Interleaved 2 of 5 Size Setting Instruction

## Interleaved 2 of 5 Barcode Size Setting

Interleaved 2 of 5 barcode size is customizable during barcode generation. Our Interleaved 2 of 5 generation and recognization controls grant customers to set the Interleaved 2 of 5 image size freely.

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

## Interleaved 2 of 5 Structure

• W : the width of Interleaved 2 of 5.
• X : the width of Interleaved 2 of 5 narrow bar; X min = 1 pixel.
• N : the wide bar to narrow bar ratio; from 2.0 to 3.0, inclusive.
• P : the number of character pairs.
• Q : the width of the quiet zone; minimum is 10X.

## Interleaved 2 of 5 Barcode Width

Interleaved 2 of 5 barcode width, W (measured in pixel), including quiet zones, can be calculated from the following expression:

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

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

N min = 2 , Q min = 10X .
W min = [ P ( 4 * 2 + 6 ) + 2 + 6 ] X + 2 * 10X
= ( 14P + 8 ) X + 20 X
= ( 14P + 28 ) X
If, X min = 1 , W min = 14P + 28
Eg. Interleaved 2 of 5 data = " 1234 " , P = 2 .
W min = 14P + 28 = 28 + 28 = 56 pixel

## Interleaved 2 of 5 Barcode Height

There are no rigid requirements for the height of Interleaved 2 of 5 in ISO/IEC 16390:2007(E). The recommended minimum bar code height for manual scanning: 5.0 mm or 15 % of symbol width excluding quiet zones, whichever is greater.

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

OnBarcode provides details of Interleaved 2 of 5 Barcode Size Setting in C#.