Blazor Barcode Example - Code 128
Allowed input characters: The Code 128 barcode supports all numeric values (0-9), uppercase and lowercase alphabetic characters (A-Z, a-z), and special characters (ASCII values 32 through 127).
Properties
This sample visualizes a Code 128 barcode, which presents alphanumeric combinations in a high-density format. A Code 128 barcode consists of a start character, data digits, modulo 103 check digit, and a stop character, making it suitable for various commercial applications.
This sample demonstrates how to create a Code 128 barcode with alphanumeric characters. The Type property can be set to Code128.
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.