VB.NET ITF-14 Generator Size Setting Tutorial

sample source code to generate linear ITF-14 images and adjust barcode size in VB.NET


  • Easy to be installed in VB.NET IDEs
  • Reusable once being installed
  • Create horizontal and vertical bearer bars
  • Easy to set the width of wide bars and narrow bars
  • Support symbol and background color setting
  • Generate GIF, TIFF, BMP, PNG, and JPEG

ITF-14, also known as UPC Shipping Container Symbol ITF-14, ITF14, is numeric-only linear barcode generated according to GS1 standard.

 

ITF-14 Symbology Structure



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


More information about ITF-14 barcode settings in VB.NET Barcode Generator,please see:

 

ITF-14 VB.NET Generator Size Setting Tutorial

After ITF-14 VB.NET Generator installation, get it ready in VB.NET by placing the following statement: Dim itf14 As OnBarcode.Barcode.Linear itf14 = New OnBarcode.Barcode.Linear itf14.Type = OnBarcode.Barcode.BarcodeType.ITF14

BearerBarHori & BearerBarVert

Properties BearerBarHori (Type: Float; Default: 1) and BearerBarVert (Type: Float; Default: 1) to set the bearer bars around the ITF-14 symbol.

itf14_vbnet_bearerbar_1.png

itf14.BearerBarHori = 0

itf14.BearerBarVert = 0

itf14_vbnet_bearerbar_2.png

itf14.BearerBarHori = 1

itf14.BearerBarVert = 0

itf14_vbnet_bearerbar_3.png

itf14.BearerBarHori = 1

itf14.BearerBarVert = 1

N

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

itf14.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:

itf14.UOM = OnBarcode.Barcode.UnitOfMeasure.PIXEL

X & Y

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

Sample usage:

itf14.X = 2

itf14.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:

itf14.BarcodeHeight = 60

itf14.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 ITF-14 100% compatible with its symbology specification. See ITF-14 Barcode Size in VB.NET to know more usage of AutoResize.

Sample usage:

itf14.X = 2

itf14.BarcodeHeight = 60

itf14.AutoResize = True

TopMargin, BottomMargin, LeftMargin, & RightMargin

Using ITF-14 VB.NET Generator, a quiet zone with 10X width will be generated automatically at each side of the ITF-14. 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:

itf14.TopMargin = 10

itf14.BottomMargin = 10

itf14.LeftMargin = 10

itf14.RightMargin = 10

TextMargin

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

Sample usage:

itf14.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.