Tritium UI

TritiumBarcodeView

Draw a scannable barcode or QR symbol from a string and export it as a PNG.

TritiumBarcodeView

Key features

  • Encode retail, postal, logistics, and payment symbols, including Code 128, Code 39, EAN/UPC, ITF, Codabar, Code 93, MSI, Plessey, PDF417, Data Matrix, Aztec, QR, and the GS1 DataBar family.
  • Generate specialized symbols such as Micro QR, rMQR, MaxiCode, Intelligent Mail, POSTNET, PLANET, Royal Mail, KIX, Mailmark, Australia/Japan/Korea Post, PharmaCode, DotCode, Telepen, Code 11, Code One, Aztec Runes, HIBC, and VIN.
  • Produce payment and European profiles including EPC QR, Swiss QR-bill, UPN QR, Code 32, PZN8, Identcode, Leitcode, DPD, and ITF-14.
  • Turn on GS1-128 (FNC1) for Code 128, and infer GS1 formatting when the value already looks like an element string.
  • Set the symbol and its value together so the preview does not blank out on an intermediate invalid pair.
  • Choose foreground and background colors for the symbol.
  • Export a PNG file at the size you request.
  • Call UseTritiumBarcode() once at startup before you show a scanner or generator.

Platforms

Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).

Main API

  • Value . The text or payload encoded into the symbol.
  • Symbology . Which barcode or QR family to draw.
  • Gs1Format . Encode Code 128 as GS1-128 with a leading FNC1.
  • BarcodeForeground . Module color; BarcodeBackground sets the quiet-zone color.

Basic example

Declare this namespace on the page.

xmlns:barcode="clr-namespace:Tritium.Maui.Barcode;assembly=Tritium.Maui.Barcode"
<barcode:TritiumBarcodeView
    Value="TRITIUM-DEMO"
    Symbology="QrCode"
    Gs1Format="False" />

Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.

Ask Tritium

How-to help and product fit for FleetPro, Tritium UI, and Tritium Reporting.

Ask how to use a feature, or tell us your company, platforms, team size, and use case. Pricing and upgrades go to sales.

Product fit
Contact sales

Search the FAQ