C#. UPC-A Generator Image Setting Tutorial

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


C# UPC-A Introduction

UPC-A, also known as Universal Product Code version A , UPC Code, UPC Symbol, GTIN-12, GS1-12, UCC-12, is the most common and well-known barcode symbology in the United States.

C# UPC-A Generator supports adjusting the UPC-A image settings to generate high quality UPC-A images with various platforms in C# development. C# UPC-A image setting includes image color, image rotation, image format, image resolution and bar alignment properties. Besides, C# UPC-A allows other property settings, such as C# UPC-A size setting, C# UPC-A data encoding, which are just for your more professional programming.

OnBarcode C# Barcode Generator is designed to generate, create UPC-A and other linear & 2d barcodes in Microsoft Word. Here are some more tutorials for C# UPC-A 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 UPC-A by Adjusting the Image Format in C#.NET

C# UPC-A generator is compatible with the image format setting which can supports five types of image format. They are PNG, BMP, JPEG, GIF and TIFF. You may implement the image format property to your C# .NET projects:

Linear upca = new Linear();

upca.Type = BarcodeType.UPCA;

upca.Data = "11111111111";

Generating UPC-A in PNG Format

Adjusting PNG format to generate UPC-A images in C#.NET Class & console application:

upca.Format = ImageFormat.Png;


Creating UPC-A with JPEG Format

Setting JEPG format to output UPC-A images in C# ASP.NET web projects:

upca.Format = ImageFormat.Jpeg;


Drawing UPC-A in Gif Format

Customizing GIF format to generate UPC-A images in C#.NET Windows Forms programming:

upca.Format = ImageFormat.Gif;


Creating UPC-A in Tiff Format

Changing TIFF format to draw UPC-A images in SQL Server Reporting Service (SSRS) & Crystal Reports:

upca.Format = ImageFormat.Tiff;


Creating UPC-A in BMP Format

Setting BMP format to create UPC-A images in C# class.:

upca.Format = ImageFormat.Bmp;



Rotating UPC-A Image for C#.NET Programming

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

Linear upca = new Linear();

upca.Type = BarcodeType.UPCA;

upca.Data = "12121212121"

upca.Rotate = Rotate.Rotate180;


C#.NET UPC-A Image Resolution Setting

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

Linear upca = new Linear();

upca.Type = BarcodeType.UPCA;

upca.Data = "45678978945";

upca.Resolution = 100;


C#.NET UPC-A Image Color Setting

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

Linear upca = new Linear();

upca.Type = BarcodeType.UPCA;

upca.Data = "32165498714";

upca.BackColor = Color.Black;

upca.ForeColor = Color.White;

upca.TextColor = Color.Yellow;


C#.NET UPC-A Bar Alignment Setting

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

Linear upca = new Linear();

upca.Type = BarcodeType.UPCA;

upca.Data = "12345678912";


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