C#. Leitcode Generator Image Setting Tutorial

sample source code to generate linear Leitcode in png, jpeg, etc. image formats in C# .NET


C# Leitcode Summary

Leticode, also known as German Postal 2 of 5 Leitcode, Deutsche Post Leitcode Barcode, is a postal barcode used by the Deutsche Post AG (DHL).

C# Leitcode is a Leitcode generation dill for .NET application which can easily create Leitcode image without distortion. C# Leitcode image setting properties (image formats, image resolution, image rotation, image color and bar alignment) are easy to implemented with Leitcode generation component for C# .NET projects. C# Leitcode supports ASP .NET and WinForms .NET applications, Reporting Service 2005 & 2008 projects.

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

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:


How to set Leitcode Image Format for C#.NET application

5 image formats (BMP, PNG, JPEG, GIF, TIFF) are valid for setting C# .NET Leitcode generated image format:

Linear Leitcode = new Linear();

Leitcode.Type = BarcodeType.Leitcode;

Leitcode.Data = "973456123456";

Generating Leitcode in PNG Format

Creating PNG format Leitcode images in C#.NET Class application:

Leitcode.Format = ImageFormat.Png;


Creating Leitcode in JPEG Format

Generating JEPG format Leitcode images in C#.NET web projects:

Leitcode.Format = ImageFormat.Jpeg;


Drawing Leitcode in Gif Format

Printing GIF format Leitcode images in C#.NET programming:

Leitcode.Format = ImageFormat.Gif;


Creating Leitcode in Tiff Format

Generating TIFF format Leitcode images in SQL Server Reporting Service (SSRS) & Crystal Reports:

Leitcode.Format = ImageFormat.Tiff;


Creating Leitcode in BMP Format

Drawing BMP format Leitcode images in C# .NET programming process:

Leitcode.Format = ImageFormat.Bmp;



How to Set Leitcode Image Rotation for C# .NET

Rotating the generated Leitcode image with 0, 90, 180, 270 degrees in C# projects:

Linear Leitcode = new Linear();

Leitcode.Type = BarcodeType.Leitcode;

Leitcode.Data = "12345679089";

Leitcode.Rotate = Rotate.Rotate270;


How to Adjust Leitcode Image Resolution

Setting the resolution for the created Leitcode image in C# programming:

Linear Leitcode = new Linear();

Leitcode.Type = BarcodeType.Leitcode;

Leitcode.Data = "97989454545";

Leitcode.Resolution = 150;


How to change Leitcode Image Color for C#.NET

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

Linear Leitcode = new Linear();

Leitcode.Type = BarcodeType.Leitcode;

Leitcode.Data = "734554321457";

Leitcode.BackColor = Color.Balck;

Leitcode.ForeColor = Color.Green;

Leitcode.TextColor = Color.White;


Leitcode Bar Alignment Setting for C# ASP.NET web projects

Bar Alignment property are available for C#.NET Leitcode image setting:

Linear Leitcode = new Linear();

Leitcode.Type = BarcodeType.Leitcode;

Leitcode.Data = "121212121212";


Leitcode.BarAlignment = AlignmentHori.Right;

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

OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. 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.