Class DataMatrixOptions
How DataMatrix(string, DataMatrixOptions?) makes a symbol.
public sealed record DataMatrixOptions : IEquatable<DataMatrixOptions>
- Inheritance
-
DataMatrixOptions
- Implements
- Inherited Members
Examples
// Square by default; the encodation modes are switched for the fewest codewords.
Barcode part = Barcode.DataMatrix("PN 4711-0815 / LOT 2026-10");
// A narrow label: rectangular sizes, the DMRE ones too.
Barcode narrow = Barcode.DataMatrix("PN 4711-0815 / LOT 2026-10", new DataMatrixOptions
{
Shape = DataMatrixShape.Rectangle,
AllowDmre = true,
});
// GS1 Data Matrix, as on medicine packs.
Barcode pack = Barcode.DataMatrix(Gs1.Parse("(01)09501101530003(17)261231(10)AB12(21)XYZ"));
Properties
AllowDmre
Gets a value indicating whether the rectangular sizes of ISO/IEC 21471 (DMRE, 8 x 48 to 26 x 64) may be used too; off by default, since older readers do not read them.
public bool AllowDmre { get; init; }
Property Value
Default
Gets the defaults: square symbols.
public static DataMatrixOptions Default { get; }
Property Value
Shape
Gets the sizes the symbol may take; Square by default.
public DataMatrixShape Shape { get; init; }