Blazor Barcode Example - Code 128
This sample visualizes a barcode image that presents alphanumeric combinations. A Code 128 barcode consists of a start character, data digits, modulo 103 check digits, and a stop character.
This sample shows how to create a Code 128 barcode with alphanumeric characters. The Code128
property can be used to set the barcode type as Type
.
You can customize the barcode's Value
, allowing you to modify the barcode content. Adjust its Width
, Height
, Background Color
, and Fore Color
to control its size and appearance.
The Text Visibility
option lets you choose whether to display the accompanying text. Margin
properties such as left, right, top, and bottom define the spacing around the barcode. Text properties allow for fine-tuning text placement and alignment, enabling you to set its Position
(e.g., top or bottom) and Alignment
(e.g., center, left, or right).
The Download
button allows users to save the barcode as an image.