C#. Interleaved 2 of 5 Generator Image Setting Tutorial

sample source code to generate linear Interleaved 2 of 5 in png, jpeg, etc. image formats in C# .NET


 

C# Interleaved 2 of 5 Introduction

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.

C# Interleaved 2 of 5 is an Interleaved 2 of 5 barcode generator control which supports easy Interleaved 2 of 5 generation on various platform with adjusting the images properties, such as image formats(tiff, bmp, png, gif and jpeg), image resolution, image rotation(0, 90, 180, 270) and image color(background color, forecolor and text color). Furthermore, you may also set the valid data character set and data length with C# Interleaved 2 of 5.

OnBarcode C# Barcode Generator is designed to generate, create Interleaved 2 of 5 and other linear & 2d barcodes in Microsoft Word. Here are some more tutorials for C# Interleaved 2 of 5 generation concerning data encoding and size setting.

 

C#.NET Interleaved 2 of 5 Image Format Setting

C# .NET Interleaved 2 of 5 image format setting allows 5 image formats in the Interleaved 2 of 5 generation procedure in C# programming. They are TIFF, BMP, PNG, GIF and JPEG. You may adjust the Interleaved 2 of 5 image to these formats.

Setting PNG image format to generate Interleaved 2 of 5 images in C#.NET Class & console application

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "252525";

interleaved25.Format = ImageFormat.Png;

interleaved25.drawBarcode("c:\Interleaved 2 of 5.png");

Setting JPEG format to create Interleaved 2 of 5 images in C# ASP.NET web projects

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "525";

interleaved25.Format = ImageFormat.Jpeg;

interleaved25.drawBarcode("c:\Interleaved 2 of 5.jpeg");

Setting GIF format to print Interleaved 2 of 5 images in C#.NET Winforms programming

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "252";

interleaved25.Format = ImageFormat.Gif;

interleaved25.drawBarcode("c:\Interleaved 2 of 5.gif");

Setting TIFF format to draw Interleaved 2 of 5 in SQL Server Reporting Service (SSRS) & Crystal Reports

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "555";

interleaved25.Format = ImageFormat.Tiff;

interleaved25.drawBarcode("c:\Interleaved 2 of 5.tiff");

Setting BMP format to output Interleaved 2 of 5 in C# class

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "222";

interleaved25.Format = ImageFormat.Bmp;

interleaved25.drawBarcode("c:\Interleaved 2 of 5.bmp");

 

C#.NET Interleaved 2 of 5 Image Rotation Setting

C# .NET Interleaved 2 of 5 image rotation setting supports rotating the generated Interleaved 2 of 5 image with 0, 90, 180, 270 degrees in C# projects:

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "525252";

interleaved25.Rotate = Rotate.Rotate90;

 

C#.NET Interleaved 2 of 5 Image Resolution Setting

C# .NET Interleaved 2 of 5 image resolution setting allows setting the resolution for the created image in C# programming:

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "25252525";

interleaved25.Resolution = 100;

 

C#.NET Interleaved 2 of 5 Image Color Setting

C# .NET Interleaved 2 of 5 image color can be easily integrated with changing the text color, background color and bar color when generating Interleaved 2 of 5 in C# class:

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "25";

interleaved25.BackColor = Color.Red;

interleaved25.ForeColor = Color.Blue;

interleaved25.TextColor = Color.Yellow;

 

C#.NET Interleaved 2 of 5 Bar Alignment Setting

Besides image format, image resolution, image rotation and image color, Interleaved 2 of 5 Generator for C# image setting properties can set bar alignment.

Linear interleaved25 = new Linear();

interleaved25.Type = BarcodeType.INTERLEAVED25;

interleaved25.Data = "125125";

interleaved25.BarcodeWidth= 100;

interleaved25.BarAlignment = AlignmentHori.Left;

When the set image width is larger than the minimum image width, Bar Alignment property can set the extra space on the lfet, center and right side.







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.