Blazor Barcode Example - EAN-13
Allowed input characters: The EAN-13 barcode supports all numeric digits(0-9) and requires 13 characters text length.
Properties
This sample visualizes an EAN-13 barcode, which represents 13-digit Global Trade Identification Numbers. The 13 digits comprise the GS1 company prefix, manufacturer code, product code, and a check digit, making it the standard for global product identification.
This sample demonstrates how to create an EAN-13 barcode. The Type property can be set to Ean13.
Customize the barcode with the following options:
- Content: Modify the
Valueproperty to change the barcode content - Size: Adjust
WidthandHeightto control dimensions - Colors: Set
Background ColorandFore Color - Text Display: Use
Text Visibilityto show or hide text - Spacing: Configure
Marginproperties (left, right, top, bottom) - Text Alignment: Set
Position(top or bottom) andAlignment(center, left, or right)
Use the Download button to save the barcode as an image.