Blazor Barcode Example - Code 128B
Allowed input characters: The Code 128B barcode supports all numeric values (0-9), uppercase and lowercase alphabetic characters (A-Z, a-z), punctuation marks, and special characters (ASCII values 32 through 127).
Properties
This sample visualizes a Code 128B barcode, which encodes information using numbers, uppercase letters, lowercase letters, and special characters. Code 128B is the most commonly used variant for general-purpose applications.
This sample demonstrates how to create a Code 128B barcode with alphanumeric characters. The Type property can be set to Code128B.
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.