Barcode in C# > Linear > EAN 128 FAQ
Generate Barcode Image Using C#.NET - EAN 128 Barcode FAQ in C#
EAN-128 Barcode Generator Library SDK in C#.NET Projects is a mature and professional barcode component to draw, stream and generate EAN-128 barcode as image in C#.NET program. This barcode DLL is completely managed code written in C# with strong-named and time-stamped signatures in .NET Framework 2.0, 3.0, 3.5 and 4.0. Free demo barcode DLL package and user manual of generating barcode images using C# is provided.
This article gives detail settings of EAN-128 in C#.NET projects using C# class method from the following aspects:
Generate EAN-128 with Barcode Control DLL Using C# - EAN-128 Data Encoding EAN 128 Linear Barcode Valid Data
EAN 128 C#.NET Sample Code: ean128. Symbol = BarcodeSymbol.EAN128; ean128.BarcodeData = "Terrek-ean128"; EAN 128 Text Option
The human-readable text of EAN 128 is flexible to be enabled or disabled in the EAN 128 symbols; the default is enabling the EAN 128 text. The text styles are easy to be changed from default.
EAN 128 C#.NET Sample Code: ean128.DisplayData = true; ean128.TextStyle = new Font("Arial", 9f, FontStyle.Regular); ean128.TextColor = Color.Black; ean128.TextSpace = 6; Generate EAN-128 with Barcode Library DLL Using C# - EAN 128 Special Settings EAN 128 Application Identifier
GS1-128/EAN-128 is a barcode within GS1 system using Application Identifiers (AIs) in the data string. There are two methods to encode AI in EAN 128: one is using parentheses directly around AI data, the other is to apply Tilde function and uses "~ai" plus number to encode AI data. For example: ~ai2 = 2 digits, ~ai3 = 3 digits, ~ai4 = 4 digits.
EAN 128 C#.NET Sample Code: ean128.BarcodeData = "(02324)3887593(234)234"; ean128.BarcodeData ="ai5023243887593ai3234234"; Generate EAN-128 with Barcode Library DLL Using C# - EAN 128 Size Adjustment EAN 128/GS1-128 Bar Size
The X and Y dimension size for GS1-128. In barcode generator & control SDK, they are BarWidth and BarHeight. The whole barcode image is changed according to the adjustment of bar width and bar height.
EAN 128 C#.NET Sample Code: ean128.BarWidth = 1; ean128.BarHeight =60; EAN 128 Image Size
If the breakdown parameters are unknown, you can set the width and height of the barcode image directly. Once you enabled the image resize function, you only need to provide the size of entire barcode image. This intelligent EAN 128 will draw the barcode with reasonable parameters.
EAN 128 C#.NET Sample Code: ean128.ImageWidth = 100; ean128.ImageHeight = 100; EAN 128 Margin Size
Increasing the width of margins around the symbol is one way to enhance the readability of the EAN 128 barcode image. The control library set the left, right, top, and bottom margins separately with float values. The default value is 0.
EAN 128 C#.NET Sample Code: ean128. MarginL = 6; ean128. MarginR = 6; ean128. MarginT = 6; ean128. MarginB = 6; Generate EAN-128 with Barcode Library DLL Using C# - EAN 128 Image Customization EAN 128 Image Format
EAN 128 generated in C#.NET project with barcode control DLL library can be displayed as Gif, Tiff, Bmp, Png, Jpeg and other image formats. Programmers may change the format using BarcodeFormat property.
EAN 128 C#.NET Sample Code: ean128.BarcodeFormat = System.Drawing.Imaging.ImageFormat.Jpeg; ean128.drawBarcode("C:\\EAN128.png"); EAN 128 Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by EAN 128 generator could be managed with DPI.
EAN 128 C#.NET Sample Code: ean128.DotsPerInch = 156; EAN 128 Image Placement
EAN 128 position may be influenced by two factors, one is barcode alignment, and the other is rotation. Programmers may set the position by Rotation and BarAlign respectively.
EAN 128 C#.NET Sample Code: ean128.BarAlign = BarAlign.Left; ean128.Rotation = Rotation.Degree90; EAN 128 Image Color
It is easy to change barcode colors with barcode control library DLL using C#.NET class. Both background color and foreground color are easy to be changed by manipulating ImageColor and BarColor respectively.
EAN 128 C#.NET Sample Code: ean128. ImageColor = Color.Blue; ean128. BarColor = Color.Black; Generate EAN-128 with Barcode Library DLL Using C# - EAN 128 Solution Development
Using C#.NET to create EAN 128 barcode images, developers are entitled to create, draw EAN 128 barcode images in various development environments. And the following projects can be adopted to fulfill your .NET projects.
|
Copyright © Terrek.com 2014.All rights reserved.
Code 39 .NET | Code 128 ASP.NET | PDF417 C#.NET | Data Matrix VB.NET | QRCode Java | UPC-A Crystal | Linear Barcodes SSRS | 2D Barcodes RDLC |