Blazor Barcode Example - Data Matrix
This sample displays encoded numerals or text as an optical label using solid adjacent borders in an “L” shape and two other borders consisting of alternating dark and light cells or modules. Within these borders are rows and columns of cells that encode information.
This example shows how to display encoded text or numerical values as a label using the SfDataMatrixGenerator
component.
You can customize the Data Matrix 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.
The data matrix encoding type can be set using the Encoding
property of the Barcode component and the data matrix size can be defined using the Size
property of the component.
The Download
button allows users to save the barcode as an image.