VB.NET Interleaved 2 of 5 Generator Size Setting Tutorial

sample source code to generate linear Interleaved 2 of 5 images and adjust barcode size in VB.NET


  • Easy to be installed in VB.NET IDEs
  • Reusable once being installed
  • Support symbol and background color setting
  • Generate GIF, TIFF, BMP, PNG, and JPEG
  • Easy to set the width of wide bars and narrow bars
  • Compatible with ISO / IEC 16390 (2nd edition 2007-06-15)

Interleaved 2 of 5, also known as ANSI/AIM ITF 25, ANSI/AIM I-2/5, is higher-density numeric linear barcode symbology based upon the Standard 2 of 5 barcode symbology.

 

Interleaved 2 of 5 Symbology 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


More information about Interleaved 2 of 5 barcode settings in VB.NET Barcode Generator,please see:

 

Interleaved 2 of 5 VB.NET Generator Size Setting Tutorial

After Interleaved 2 of 5 VB.NET Generator installation, get it ready in VB.NET by placing the following statement:

Dim interleaved2of5 As OnBarcode.Barcode.

interleaved2of5 = New OnBarcode.Barcode.Linear

interleaved2of5.Type = OnBarcode.Barcode.BarcodeType.INTERLEAVED25

N

As there are wide bars and narrow bars in Interleaved 2 of 5. Property N (Type: Float; Default: 2) is used to to set the wider bars in Interleaved 2 of 5. The value of Property N represents the ratio of wide bars to narrow bars, which ranges from 2.0 to 3.0.

interleaved2of5.N= 2.5

UOM

UOM is the controller of size setting unit. Pixel, Cm, and Inch are provided as its options. The default value of UOM is Pixel. For example, type the following statement to select Pixel as the unit of size setting measure:

interleaved2of5.UOM = OnBarcode.Barcode.UnitOfMeasure.PIXEL

X & Y

Property X (Type: Float; Default: 1) and Property Y (Type: Float; Default: 60) are used in Interleaved 2 of 5 barcode symbol size setting. X is for the module width setting, and Y controls the height of the bar.

Sample usage:

interleaved2of5.X = 2

interleaved2of5.Y = 70

BarCodeHeight & BarCodeWidth

Property BarCodeHeight (Type: Float; Default: 0) and Property BarCodeWidth (Type: Float; Default: 0) to set the size of the whole image.

Sample usage:

interleaved2of5.BarcodeHeight = 60

interleaved2of5.BarcodeWidth = 175

AutoResize

When the value of X, Y, BarCodeWidth, and BarCodeHeight conflict with each other, Property AutoResize (Type: bool; Default: False) should be enabled to solve the problem and make the Interleaved 2 of 5 100% compatible with its symbology specification and ISO 16390. See Interleaved 2 of 5 Barcode Size in VB.NET to know more usage of AutoResize.

Sample usage:

interleaved2of5.X = 2

interleaved2of5.BarcodeHeight = 60

interleaved2of5.AutoResize = True

TopMargin, BottomMargin, LeftMargin, & RightMargin

Using Interleaved 2 of 5 VB.NET Generator, a quiet zone with 10X width will be generated automatically at each side of the Interleaved 2 of 5. When wider quiet zone is needed, you can increase the value of properties LeftMargin (Type: Float; Default: 0) and RightMargin (Type: Float; Default: 0). You can also create margins using TopMargin (Type: Float; Default: 0) and BottomMargin (Type: Float; Default: 0).

Sample usage:

interleaved2of5.TopMargin = 10

interleaved2of5.BottomMargin = 10

interleaved2of5.LeftMargin = 10

interleaved2of5.RightMargin = 10

TextMargin

Human readable text are required in almost every linear barcode symbology. Property TextMargin (Type: Float; Default: 6 pixel) is used to set the space between Interleaved 2 of 5 bar code and the human readable text below the barcode.

Sample usage:

interleaved2of5.TextMargin = 10







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.