C#. EAN-8 Generator Image Setting Tutorial

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


 

C# EAN-8 Introduction

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

C# EAN-8 Generator supports 5 types of EAN-8 generator, which are C# EAN-8 Generator for Windows Forms, C# EAN-8 Generator for ASP.NET , C# EAN-8 Generator for SQL Server Reporting Services (SSRS), C# EAN-8 Generator for Crystal Reports, C# EAN-8 Generator for Windows Azure. All of these EAN-8 generators allow adjusting the EAN-8 image settings.

OnBarcode C# Barcode Generator is designed to generate, create EAN-8 and other linear & 2d barcodes in Microsoft Word. Here are some more tutorials for C# EAN-8 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:


 

Generating EAN-8 by Adjusting the Image Format in C#.NET

As referring to the image format, C# .NET EAN-8 image format setting property provides 5 image formats to generate high quality EAN-8 images in C# projects:

Linear ean8 = new Linear();

ean8.Type = BarcodeType.EAN8;

ean8.Data = "7654321";

Generating EAN-8 in PNG Format

You may set the PNG format to generate EAN-8 images in C#.NET Class & console application:

ean8.Format = ImageFormat.Png;

ean8.drawBarcode("c:\EAN-8.png");

Creating EAN-8 with JPEG Format

You may set the JEPG format to output EAN-8 images in C# ASP.NET web projects:

ean8.Format = ImageFormat.Jpeg;

ean8.drawBarcode("c:\EAN-8.jpeg");

Drawing EAN-8 in Gif Format

You may set the GIF format to generate EAN-8 images in C#.NET Windows Forms programming:

ean8.Format = ImageFormat.Gif;

ean8.drawBarcode("c:\EAN-8.gif");

Creating EAN-8 in Tiff Format

You may set the TIFF format to draw EAN-8 images in SQL Server Reporting Service (SSRS) & Crystal Reports:

ean8.Format = ImageFormat.Tiff;

ean8.drawBarcode("c:\EAN-8.tiff");

Creating EAN-8 in BMP Format

You may set the BMP format to create EAN-8 images in C# class.:

EAN-8.Format = ImageFormat.Bmp;

EAN-8.drawBarcode("c:\EAN-8.bmp");

 

Rotating EAN-8 Image for C#.NET Programming

C# .NET EAN-8 image rotation setting supports rotating the generated EAN-8 image with 0, 90, 180, 270 degrees in C# projects:

Linear ean8 = new Linear();

ean8.Type = BarcodeType.EAN8;

ean8.Data = "1234567";

ean8.Rotate = Rotate.Rotate90;

 

C#.NET EAN-8 Image Resolution Setting

C# .NET EAN-8 image resolution setting allows setting the resolution for the created image in C# programming:

Linear ean8 = new Linear();

ean8.Type = BarcodeType.EAN8;

ean8.Data = "7777777";

ean8.Resolution = 120;

 

C#.NET EAN-8 Image Color Setting

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

Linear ean8 = new Linear();

ean8.Type = BarcodeType.EAN8;

ean8.Data = "1234123";

ean8.BackColor = Color.Black;

ean8.ForeColor = Color.White;

ean8.TextColor = Color.Yellow;

 

C#.NET EAN-8 Bar Alignment Setting

Besides image format, image resolution, image rotation and image color, EAN-8 Generator for C# image setting properties can set bar alignment.

Linear ean8 = new Linear();

ean8.Type = BarcodeType.EAN8;

ean8.Data = "4321321";

ean8.BarcodeWidth=200;

ean8.BarAlignment = AlignmentHori.Center;

When the set image width is larger than the minimum image width, Bar Alignment property can set 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.