Interleaved 2 of 5 for .NET

Interleaved 2 of 5(a.k.a. ANSI/AIM ITF 25, ANSI/AIM I-2/5, I-2/5, 2 of 5 Interleaved, 2/5 Interleaved) is a continuous two-width barcode symbology encoding digits. It is used commercially on 135 film and on cartons of some products, while the products inside are labeled with UPC or EAN.

.NET Barcode Interleaved 2 of 5 prints:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
.NET Barcode Interleaved 2 of 5 Generator - C#, VB.NET Interleaved 2 of 5 Generating Sample Code

1. How to generate Interleaved 2 of 5 barcodes in C# Class?

   using BusinessRefinery.Barcode;

   // construct a linear barcode object
   Linear barcode = new Linear();  
    
   // set linear barcode symbolgoy to code-128
   barcode.Symbology = Symbology.CODE128;
    
   // set code-128 code text to encode		      
   barcode.Code = "9876543210";  
    
   //draw barcode and save into image file in gif format   
   barcode.drawBarcode("C://code-128-in-csharp.gif");    


2. How to generate Interleaved 2 of 5 barcodes in VB.NET Class?

   // construct a linear barcode object
   Dim barcode As BusinessRefinery.Barcode.Linear
   barcode = New BusinessRefinery.Barcode.Linear()
   
   // set linear barcode symbolgoy to code-128
   barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE128
   
   // set code-128 code text to encode	
   barcode.Code = "0123456789"
   
   //draw barcode and save into image file in gif format  
   barcode.drawBarcode("C://code-128-in-vbnet.gif")


3. How to draw Interleaved 2 of 5 barcodes to image files (GIF, JPEG, BMP, PNG, & TIFF)?

            using BusinessRefinery.Barcode;

            Linear barcode = new Linear();
            barcode.Symbology = BarcodeType.CODE128;
            barcode.Code = "9876543210";
            barcode.drawBarcode("C://code-128-in-csharp.gif");

You can draw other file formats, by change file types to .jpg, .bmp, .png, and .tif.



4. How to draw & print Interleaved 2 of 5 barcodes to .NET objects like Graphics, Stream, Bitmap?

            using BusinessRefinery.Barcode;

            Linear barcode = new Linear();
            barcode.Symbology = BarcodeType.CODE128;
            barcode.Code = "9876543210";

            barcode.drawBarcode2Stream("Stream object");

            Bitmap barcodeInBitmap = barcode.drawBarcode();

            barcode.drawBarcodeOnGraphics("Graphics object");</