C#. UPC-E Generator Image Setting Tutorial

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


 

C# UPC-E Introduction

UPC-E, also known as Universal Product Code version E, GTIN-12 with lead 0, GS1-12, UCC-12, is the short form representation of a UPC number.

C# UPC-E is a UPC-E barcode generator control which supports easy UPC-E 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). Besides, Bar Alignment property is valid in generating UPC-E barcode in C# generation SDK web control.

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

 

C#.NET UPC-E Image Format Setting

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

Linear upce = new Linear();

upce.Type = BarcodeType.UPCE;

upce.Data = "666666";

Setting PNG image format to generate UPC-E images in C#.NET Class & console application

upce.Format = ImageFormat.Png;

upce.drawBarcode("c:\UPC-E.png");

Setting JPEG format to create UPC-E images in C# ASP.NET web projects

upce.Format = ImageFormat.Jpeg;

upce.drawBarcode("c:\UPC-E.jpeg");

Setting GIF format to print UPC-E images in C#.NET Winforms programming

upce.Format = ImageFormat.Gif;

upce.drawBarcode("c:\UPC-E.gif");

Setting TIFF format to draw UPC-E in SQL Server Reporting Service (SSRS) & Crystal Reports

upce.Format = ImageFormat.Tiff;

upce.drawBarcode("c:\UPC-E.tiff");

Setting BMP format to output UPC-E in C# UPC-E Generation Libarary

upce.Format = ImageFormat.Bmp;

upce.drawBarcode("c:\UPC-E.bmp");

 

C#.NET UPC-E Image Rotation Setting

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

Linear upce = new Linear();

upce.Type = BarcodeType.UPCE;

upce.Data = "616161";

upce.Rotate = Rotate.Rotate180;

 

C#.NET UPC-E Image Resolution Setting

C# .NET UPC-E image resolution setting allows setting the resolution for the created image in C# programming:

Linear upce = new Linear();

upce.Type = BarcodeType.UPCE;

upce.Data = "123321";

upce.Resolution = 200;

 

C#.NET UPC-E Image Color Setting

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

Linear upce = new Linear();

upce.Type = BarcodeType.UPCE;

upce.Data = "456456";

upce.BackColor = Color.Red;

upce.ForeColor = Color.Blue;

upce.TextColor = Color.Yellow;

 

C#.NET Code 128 Bar Alignment Setting

Besides image format, image resolution, image rotation and image color, Code 128 Generator for C# image setting properties can set bar alignment.

Linear upce = new Linear();

upce.Type = BarcodeType.UPCE;

upce.Data = "123456";

upce.BarcodeWidth=200;

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