- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
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.
Generate and create Interleaved 2 of 5 barcode using Java is one of the functions in OnBarcode's
Barcode for Java Generating Java library (jar file), which supports
generating & printing Interleaved 2 of 5 and 20+ other linear & 2D bar codes in Java application and software.
Interleaved 2 of 5 Generator and Reader library, SDK & application
Interleaved 2 of 5 Generator components and software include
.NET Interleaved 2 of 5 Generator,
C# Interleaved 2 of 5 Generator,
VB.NET Interleaved 2 of 5 Generator,
ASP.NET Interleaved 2 of 5 Generator,
Interleaved 2 of 5 Generator.
This document is providing a detailed Java sample source code about generating Interleaved 2 of 5 barcodes in Java class using
Java Barcode generation component.
Complete Interleaved 2 of 5 custmoization settings is included in
Java Interleaved 2 of 5 generating guide.
Generating Interleaved 2 of 5 barcode in Java class example:
Interleaved25 barcode = new Interleaved25(); /* Interleaved 2 of 5 Valid data char set: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits) */ barcode.setData("112233445566"); barcode.setAddCheckSum(true); // Interleaved 2 of 5 Wide Narrow bar Ratio // Valid value is from 2.0 to 3.0 inclusive. barcode.setN(3.0f); // Unit of Measure, pixel, cm, or inch barcode.setUom(IBarcode.UOM_PIXEL); // barcode bar module width (X) in pixel barcode.setX(3f); // barcode bar module height (Y) in pixel barcode.setY(75f); // barcode image margins barcode.setLeftMargin(10f); barcode.setRightMargin(10f); barcode.setTopMargin(10f); barcode.setBottomMargin(10f); // barcode image resolution in dpi barcode.setResolution(72); // disply barcode encoding data below the barcode barcode.setShowText(true); // barcode encoding data font style barcode.setTextFont(new Font("Arial", 0, 12)); // space between barcode and barcode encoding data barcode.setTextMargin(6); // barcode displaying angle barcode.setRotate(IBarcode.ROTATE_0); barcode.drawBarcode("C:\\interleaved2of5.gif");