Table of Contents

Enum BarcodeFormat

Namespace
Egami.Barcodes
Assembly
Egami.Barcodes.dll

A barcode symbology, or a set of them: Format and Format hold one, and Formats any combination.

[Flags]
public enum BarcodeFormat

Fields

All = Matrix | Linear

Every symbology.

Aztec = 8

Aztec Code (ISO/IEC 24778); no quiet zone, as its finder is in the middle.

Code128 = 16

Code 128 and GS1-128 (ISO/IEC 15417), linear; quiet zone 10 modules.

Code39 = 32

Code 39 (ISO/IEC 16388), linear; quiet zone 10 modules.

DataMatrix = 2

Data Matrix ECC 200 (ISO/IEC 16022); quiet zone 1 module.

Ean13 = 128

EAN-13 (ISO/IEC 15420), linear; quiet zone 11 modules.

Ean8 = 256

EAN-8 (ISO/IEC 15420), linear; quiet zone 7 modules.

Itf = 64

Interleaved 2 of 5 and ITF-14 (ISO/IEC 16390), linear; quiet zone 10 modules.

Linear = Code128 | Code39 | Itf | Ean13 | Ean8 | UpcA | UpcE

The linear symbologies.

Matrix = Qr | DataMatrix | Pdf417 | Aztec

The 2D symbologies.

None = 0

No symbology.

Pdf417 = 4

PDF417 (ISO/IEC 15438); quiet zone 2 modules.

Qr = 1

QR Code (ISO/IEC 18004); quiet zone 4 modules.

UpcA = 512

UPC-A (ISO/IEC 15420), linear; quiet zone 9 modules.

UpcE = 1024

UPC-E (ISO/IEC 15420), linear; quiet zone 9 modules.

Examples

// Modules from another encoder become a barcode with the quiet zone of their standard: 4 modules for QR.
Barcode qr = Barcode.FromModules(BarcodeFormat.Qr, modules);
Console.WriteLine($"{qr.Format}: {qr.Modules.Width} modules plus {qr.QuietZone} on each side");