DRIT.Barcode

DRIT.Barcode

Pure-managed .NET barcode generation and recognition. Create and read a broad range of 1D, 2D, GS1, postal, and specialist barcodes, with raster and true vector output through DRIT.Drawing.

When DRIT.Barcode fits

Use DRIT.Barcode for labels, tickets, inventory and logistics workflows, document capture, retail identifiers, packaging, and services that need to generate barcodes or decode supported formats from images.

Capabilities

  • Generation: 60+ symbologies across linear, GS1 DataBar, matrix, postal, and specialist categories.
  • Recognition: quality presets, multi-region search, inverted-image support, checksum validation, and GS1/HIBC text formatting.
  • GS1: Application Identifier parsing, FNC1 handling, GS1-128, GS1 DataMatrix, GS1 QR, and composite formats.
  • Visual output: colors, captions, borders, padding, rotation, resolution, X-dimension, bar height, and sizing.

Symbology groups

  • 1D: Code 39/93/128, EAN/UPC, Codabar, ITF, 2-of-5 variants, ISBN, and ISSN.
  • 2D: QR, DataMatrix, PDF417 family, Aztec, MaxiCode, Han Xin, DotCode, and composite formats.
  • Postal and specialist: Australia Post, POSTNET, PLANET, OneCode, RM4SCC, KIX, Mailmark, Swiss QR Bill, and HIBC.

Platform and package

Targets net8.0 and runs on Windows, Linux, and macOS. Rendering uses DRIT.Drawing; PDF output uses DRIT.Pdf.

Quick start

dotnet add package DRIT.Barcode --version 26.9.1329

using var gen = new BarcodeGenerator(EncodeTypes.Code128, "DRIT.Barcode");
gen.Parameters.Barcode.XDimension.Pixels = 2f;
gen.Parameters.Barcode.BarHeight.Pixels = 80f;
gen.Save("barcode.png", BarCodeImageFormat.Png);

Next steps

Recognition note: the 60+ figure describes the broader generation catalog. The README documents a common recognition subset, so encode/decode coverage should be evaluated separately for your symbologies.