C#. EAN-13 Generator Image Setting Tutorial

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


 

C# EAN-13 Introduction

EAN-13, also known as European Article Number 13, UPC-13, GTIN-13, GS1-13, EAN/UCC-13, is the standard barcode version of European Article Number.

C# EAN-13 is an EAN 13 generation package for .NET application which can easily create EAN 13 image without distortion. C# EAN-13 image setting properties (image formats, image resolution, image rotation, image color and bar alignment) are easy to implemented with EAN-13 generation component for C# .NET projects. For example, Bar Alignment property supports changing among Left, Right and Center.

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

 

EAN-13 Image Format Setting for C#.NET Class & console application

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

Linear ean13 = new Linear();

ean13.Type = BarcodeType.EAN13;

ean13.Data = "123456123456";

Generating EAN-13 in PNG Format

Creating PNG format EAN-13 images in C#.NET Class & console application:

ean13.Format = ImageFormat.Png;

ean13.drawBarcode("c:\ean13.png");

Creating EAN-13 in JPEG Format

Generating JEPG format EAN-13 images in C# ASP.NET web projects:

ean13.Format = ImageFormat.Jpeg;

ean13.drawBarcode("c:\ean13.jpeg");

Drawing EAN-13 in Gif Format

Printing GIF format EAN-13 images in C#.NET Windows Forms programming:

ean13.Format = ImageFormat.Gif;

ean13.drawBarcode("c:\ean13.gif");

Creating EAN-13 in Tiff Format

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

ean13.Format = ImageFormat.Tiff;

ean13.drawBarcode("c:\ean13.tiff");

Creating EAN-13 in BMP Format

Drawing BMP format EAN-13 images in C# .NET programming process:

ean13.Format = ImageFormat.Bmp;

ean13.drawBarcode("c:\ean13.bmp");

 

EAN-13 Image Rotation Setting for C# .NET applications

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

Linear ean13 = new Linear();

ean13.Type = BarcodeType.EAN13;

ean13.Data = "12345679089";

ean13.Rotate = Rotate.Rotate180;

 

EAN-13 Image Resolution Setting for SQL Server Reporting Service (SSRS) & Crystal Reports

Setting the resolution for the created EAN-13 image in C# programming:

Linear ean13 = new Linear();

ean13.Type = BarcodeType.EAN13;

ean13.Data = "898989454545";

ean13.Resolution = 120;

 

EAN-13 Image Color Setting for C#.NET Winforms programming

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

Linear ean13 = new Linear();

ean13.Type = BarcodeType.EAN13;

ean13.Data = "123455432145";

ean13.BackColor = Color.Balck;

ean13.ForeColor = Color.Green;

ean13.TextColor = Color.White;

 

EAN-13 Bar Alignment Setting for C# ASP.NET web projects

Bar Alignment property are available for C#.NET EAN-13 image setting:

Linear ean13 = new Linear();

ean13.Type = BarcodeType.EAN13;

ean13.Data = "121212121212";

ean13.BarcodeWidth=260;

ean13.BarAlignment = AlignmentHori.Left;

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