EAN/JAN-8
The EAN-8 barcode encodes an eight-digit GTIN-8 number. The EAN-8 Supplement 2 and EAN-8 Supplement 5 add two or five digits to an EAN8 barcode. The following examples illustrate creating an EAN-8, EAN-8 Supplement 2, and an EAN-8 Supplement 5 barcode.
EAN-8
The EAN-8 barcode encodes a GTIN-8 number consisting of seven data digits and one check digit. DynamicBarcode Creator represents this barcode using the Ean8 class. The following example illustrates.
Ean8 barcode = new Ean8("12345670");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);
Dim barcode As Ean8 = New Ean8("12345670")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)
EAN-8 Supplement 2
The two-digit Supplement 2 barcode adds a two-digit barcode after the main EAN-8 barcode. The Ean8Supplement2 class represents the EAN-8 Supplement 2 barcode.
Ean8Supplement2 barcode = new Ean8Supplement2("12345670","12");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);
Dim barcode As Ean8Supplement2 = New Ean8Supplement2("12345670","12")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)
EAN-8 Supplement 5
The five-digit Supplement 5 barcode adds a five-digit barcode after the main EAN-8 barcode. The Ean8Supplement5 class represents the EAN-8 Supplement 5 barcode.
Ean8Supplement5 barcode = new Ean8Supplement5("12345670","12345");
barcode.Draw(pngFilePath, 300, ImageFormat.Png);
Dim barcode As Ean8Supplement5 = New Ean8Supplement5("12345670","12345")
barcode.Draw(pngFilePath, 300, ImageFormat.Png)