Blazor Barcode Example - UPC-A
Allowed input characters: The UPC-A barcode supports all numeric digits(0-9) and requires 11 characters text length.
Properties
This sample visualizes a UPC-A barcode, which represents a consumer goods identification number. A UPC-A barcode consists of four distinct areas: the number system, manufacturer code, product code, and check digit.
This sample demonstrates how to create a UPC-A barcode. The Type property can be set to UpcA. By default, EnableCheckSum is set to true, but it can be disabled by assigning false.
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.