BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Mature barcode creating SDK
  • Support .NET 2.0/3.0/4.0
  • 100% developed in C#.NET
  • Dynamic barcodes support
  • User-defined controls provided
How to Generate EAN-13 images in C#
EAN-13 Generator for Visual C#.NET is a professional barcode generating SDK, using C#.NET DesignView Barcode Control to make development faster and easier. Working perfectly with Microsoft Visual Studio, all editions of VS, including VS2005/2008/2010(Professional, Express & Standard) are supported to be used.
EAN-13 Generator for C#.NET also supports to encode supplemental 2 or 5 digit data add-on. It is simple to control EAN-13 barcode horizontal alignment. All generated EAN-13 barcode can be saved to various image files or C#.NET Graphics, Stream & Bitmap objects with specified resolution, orientation, etc. This integration guide tells the way to customize EAN-13 barcode image within C#.NET projects & applications; others please see:
EAN-13 Image Related Properties

Supplementary Barcode

Users may easily generate supplementary EAN-2 or EAN-5 barcodes that can be simply added for EAN-13 barcode with Symbology and Supplement Code related properties provided by Barcode Generator for .NET Ultimate.

Barcode Resolution

Users may easily change barcode resolution in DPI that can be used for both high-resolution output and low-resolution output printers with Resolution property provided by Barcode Generator for .NET Ultimate.

Barcode Rotation

Users may easily change barcode rotation angle into 0, 90, 180 and 270 degrees that can be recognized by all scanners with Rotate property provided by Barcode Generator for .NET Ultimate.

Image Formats

Users may easily save barcode images into various image formats for different purpose, like Png, Jpeg/Jpg, Gif, Tiff, Bmp, with ImageFormat property provided by Barcode Generator for .NET Ultimate.

C#.NET Graphic Objects

Users may easily save barcode images into .NET graphic objects, Graphics, Stream and Bitmap objects, with DrawBarcode property provided by Barcode Generator for .NET Ultimate.
Customize EAN-13 Barcode Images in C#.NET
If you want to customize EAN-13 image in C#.NET, be sure that you have installed:
Customize EAN-13 Barcode Images in .NET Project Using C# Class
Copy those following code onto your C#.NET projects:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.EAN13;
barcode.Code = "01234567890";
barcode.drawBarcode2ImageFile("c:/ean-13-csharp.gif");
Create Supplementay Barcode for EAN-13
SupplementCod default value in Barcode Generator for .NET Ultimate is "".

SupplementHeight default value in Barcode Generator for .NET Ultimate is 0.8f.

SupplementSpace default value in Barcode Generator for .NET Ultimate is 15 pixel.

Copy those following code to change your human-readable text:
barcode.Symbology = Symbology.EAN13_2;
barcode.SupplementCode = "12895";
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;
Change EAN-13 Resolution in DPI
Resolution default value in Barcode Generator for .NET Ultimate is 72 dpi.

Copy those following code to change your resolution:
barcode.Resolution = 104;
Change EAN-13 Image Rotation
Resolution default value in Barcode Generator for .NET Ultimate is Rotate.Rotate0.

Copy those following code to change your image rotation angle:
barcode.Rotate = Rotate.Rotate180;
Adjust EAN-13 Barcode Quiet Margin
BottomMargin, TopMargin , LeftMargin and RightMargin default value in Barcode Generator for .NET Ultimate is 0 respectively.

Copy those following code to change your quiet margin size:
barcode.BottomMargin = 7;
barcode.TopMargin = 7;
barcode.LeftMargin = 5;
barcode.RightMargin = 5;
Show EAN-13 Barcode Human-Readable Text
DisplayText default value in Barcode Generator for .NET Ultimate is true.

TextFont default value in Barcode Generator for .NET Ultimate is new Font("Arial", Font.PLAIN, 11).

TextMargin default value in Barcode Generator for .NET Ultimate is 6 pixel.

Copy those following code to change your human-readable text:
barcode.DisplayText = true;
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold);
barcode.TextMargin = 10;
Save EAN-13 in Multiple Image Formats
Format default value in Barcode Generator for .NET Ultimate is gif.

Copy those following code to change your image format:
barcode.Format = ImageFormat.Png;
barcode.drawBarcode2ImageFile("c:/ean-13-csharp.Png");
Users may change image format into gif, png, tiff, jpeg, png; or save it as C#.NET graphic objects:
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);