C#. GS1 128 Generator Image Setting Tutorial

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


 

C# GS1 128 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# GS1 128 is a GS1 128 generator for C#.NET, which can draw GS1 128 images without distortion for ASP.NET barcode generator web control, .NET Winforms barcode generator control and Reporting service barcode generation component. GS1 128 images can be set with image formats, image resolution, image rotation and bar alignment. For example, image rotation supports changing among 0, 90, 180, 270 degrees.

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


 

C#.NET GS1 128 Image Format Setting

C# GS1 128 is an easy and simple GS1 128 generation component, which supports 5 image formats during generating GS1 128 in C# programming:

Linear ean128 = new Linear();

ean128.Type = BarcodeType.EAN128;

ean128.Data = "(00)1234567";

Generating GS1 128 in PNG Format

You may set the PNG format to generate GS1 128 images in C#.NET Class & console application:

ean128.Format = ImageFormat.Png;

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

Creating GS1 128 in JPEG Format

You may set the JEPG format to generate GS1 128 images in C# ASP.NET web projects:

ean128.Format = ImageFormat.Jpeg;

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

Drawing GS1 128 in Gif Format

You may set the GIF format to generate GS1 128 images in C#.NET Windows Forms programming:

ean128.Format = ImageFormat.Gif;

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

Creating GS1 128 in Tiff Format

You may set the TIFF format to generate GS1 128 images in SQL Server Reporting Service (SSRS) & Crystal Reports:

ean128.Format = ImageFormat.Tiff;

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

Creating GS1 128 in BMP Format

You may set the BMP format to generate GS1 128 images in C# class.:

ean128.Format = ImageFormat.Bmp;

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

 

C#.NET GS1 128 Image Rotation Setting

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

Linear ean128 = new Linear();

ean128.Type = BarcodeType.EAN128;

ean128.Data = "(1233)3321";

ean128.Rotate = Rotate.Rotate180;

 

C#.NET GS1 128 Image Resolution Setting

C# .NET GS1 128 image resolution setting allows setting the resolution for the created image in C# programming:

Linear ean128 = new Linear();

ean128.Type = BarcodeType.EAN128;

ean128.Data = "(222)345678";

ean128.Resolution = 110;

 

C#.NET GS1 128 Image Color Setting

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

Linear ean128 = new Linear();

ean128.Type = BarcodeType.EAN128;

ean128.Data = "(789)85686025";

ean128.BackColor = Color.Red;

ean128.ForeColor = Color.Blue;

ean128.TextColor = Color.Black;

 

C#.NET GS1 128 Bar Alignment Setting

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

Linear ean128 = new Linear();

ean128.Type = BarcodeType.EAN128;

ean128.Data = "(111)11111";

ean128.BarcodeWidth=400;

ean128.BarAlignment = AlignmentHori.Right;

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.