BarcodeRenderData Class
Contains the geometric and textual data required to render a barcode.
public class BarcodeRenderData
- Inheritance:
- object object
Constructors
BarcodeRenderData()
Initializes an instance of the class.
public BarcodeRenderData()
Properties
Background
The background brush.
public IBrush Background { get; init; }
Property Value
- IBrush:
The default value is Avalonia.Media.Brushes.White.
Decorations
The collection of decorations (shapes or text) to render.
public IList<BarcodeDecorationBase> Decorations { get; init; }
Property Value
Foreground
The foreground brush.
public IBrush Foreground { get; init; }
Property Value
- IBrush:
The default value is Avalonia.Media.Brushes.Black.
ModuleShapeKind
The shape to use for rendering barcode modules.
public BarcodeShapeKind ModuleShapeKind { get; init; }
Property Value
- BarcodeShapeKind:
The default value is Default.
Modules
The collection of modules (bars or cells) to render.
PrimaryAccent
The primary accent brush used for customization, such as the outer border of finder patterns in QR Codes.
public IBrush? PrimaryAccent { get; init; }
Property Value
- IBrush
Remarks
When not specified, the Foreground brush is used as a fallback.
SecondaryAccent
The secondary accent brush used for customization, such as the inner square of finder patterns in QR Codes.
public IBrush? SecondaryAccent { get; init; }
Property Value
- IBrush
Remarks
When not specified, the Foreground brush is used as a fallback.
Size
The size of the rendered barcode, including surrounding quiet zone.
public Size Size { get; init; }
Property Value
- Size
ValidationResult
The validation result of the barcode value, or null if validation has not been performed.
public BarcodeValidationResult? ValidationResult { get; init; }
Property Value
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()