C#. EAN-13 Generator Image Setting Tutorial
sample source code to generate linear EAN-13 in png, jpeg, etc. image formats in C# .NET
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.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
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.
|