EAN/JAN 13

The EAN13 barcode, represented by the Ean13 class, encodes a twelve-digit GTIN-8 number. The EAN13 Supplement 2 and EAN13 Supplement 5 add two or five digits to an EAN8 barcode. The following three examples illustrate.

EAN 13

The Ean13 barcode encodes a GTIN-13 number consisting of twelve data digits and one check digit.

Ean13 barcode = new Ean13("123456789012");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);        
Dim barcode As Ean13 = New Ean13("123456789012")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)

EAN 13 Supplement 2

The two-digit Supplement 2 barcode (Ean13Supplement2 class) adds a two-digit barcode after the main EAN13 barcode.

Ean13Supplement2 barcode = new Ean13Supplement2("123456789012","12");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);       
Dim barcode As Ean13Supplement2 = New Ean13Supplement2("123456789012","12")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)

EAN 13 Supplement 5

A five-digit Supplement 5 barcode (Ean13Supplement5 class) adds a five-digit barcode after the main EAN13 barcode.

Ean13Supplement5 barcode = new Ean13Supplement5("123456789012","12345");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);        
Dim barcode As Ean13Supplement5 = New Ean13Supplement5("123456789012","12345")
barcode.Draw(pngFilePath", 300, ImageFormat.Png)

In this topic