BizCode Barcode Generator for Winforms
The most robust & powerful barcode component for Microsoft .NET Windows Forms
Quick Overviews
  • Professional barcode control
  • Flexible controls provided
  • Support WinForms projects
  • Linear & 2D barcodes support
  • Winforms Data-binding support
How to Generate EAN-13 images in .NET WinForms
EAN-13 Generator for Winforms is a powerful barcode creating class library, allowing advanced EAN-13 barcode generating and printing capabilities to be added into your Windows Forms applications. It supports to work with Microsoft Visual Studio and supports to integrate into Visual Studio 2005/2008/2010.
EAN-13 Generator for Winforms also supports to create and insert EAN-2 and EAN-5 barcodes for EAN-13 as supplementary barcodes. Users may create and draw high-quality EAN-13 barcode with a set of advanced barcode generating and printing controls. Here is a detailed tutorial about EAN-13 image setting Windows Forms applications; other tutorials, please link to:
EAN-13 Image Related Properties

Barcode Unit

With Barcode Generator for Winforms, users are allowed to measure EAN-13 barcode module size with pixel, cm, or inch using BarcodUnit.

Supplementary Barcode

With Barcode Generator for Winforms, users are allowed to add supplementary 2 & 5 digits for EAN-13 barcode using Supplement relatedproperty, including Symbology, SupplementCode, etc.

Barcode Resolution

With Barcode Generator for Winforms, users are allowed to customize the resolution of their EAN-13 barcode images in any way they want using Resolution property.

Barcode Rotation

With Barcode Generator for Winforms, users are allowed to set EAN-13 barcode images into 0, 90, 180 and 270 degrees using Rotate property.

Image Formats

With Barcode Generator for Winforms, users are allowed to save & output generated EAN-13 barcode images into Png, Jpeg/Jpg, Gif, Tiff, Bmp, etc using ImageFormat property.

.NET Winforms Graphic Objects

With Barcode Generator for Winforms, users are allowed to save generated EAN-13 barcode images into .NET Graphics, Stream and Bitmap objectsin accordance with users' needs.
Customize EAN-13 Barcode Images in Winforms
Ensure have installed those programs before you customize EAN-13 image in .NET Winforms:
Customize EAN-13 Barcode Images in Windows Forms Using BarcodeControl
  1. Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WinLinearBarcode control into the Forms;
  3. You will see a barcode image generated;
  4. Right click you mouse to activate barcode setting panel and choose Symbology to EAN13
  5. Select Resolution, Rotate, BarcodeUnit, ImageFormat respectively to customize your UPC-A barcodes.
Customize EAN-13 Barcode Images in Winforms Using C#, VB.NET Class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();

// Add EAN-2 barcode for EAN-13
barcode.Symbology = Symbology.EAN13_2;
barcode.Code = "0123456789012";
barcode.SupplementCode = "12";
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;

// Measure EAN-13 barcode module size with pixel, cm, or inch
barcode.BarcodeUnit = BarcodeUnit.PIXEL;

// Change EAN-13 resolution in DPI
barcode.Resolution = 104;

// Rotate EAN-13 barcode image
barcode.Rotate = Rotate.Rotate180;

// Save EAN-13 in multiple image formats
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/ean-13-csharp.gif");

// Save EAN-13 barcode in Winforms objects
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()

// Add EAN-2 barcode for EAN-13
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13_2
barcode.Code = "0123456789012"
barcode.SupplementCode = "12"
barcode.SupplementHeight = 0.4
barcode.SupplementSpace = 20

// Measure EAN-13 barcode module size with pixel, cm, or inch
barcode.BarcodeUnit = BarcodeUnit.PIXEL

// Change EAN-13 resolution in DPI
barcode.Resolution = 104

// Rotate EAN-13 barcode image
barcode.Rotate = Rotate.Rotate180

// Save EAN-13 in multiple image formats
barcode.Format = ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/ean-13-vb-net.gif")

// Save EAN-13 barcode in Winforms objects
Public Sub drawBarcode2Stream(ByVal fileStream As System.IO.Stream)
Public Sub drawBarcodeOnGraphics(ByVal graphics As
System.Drawing.Graphics)
Public Function drawBarcodeAsBytes() As Byte()
Public Function drawBarcodeOnBitmap() As System.Drawing.Bitmap