Enum DataMatrixShape
Which sizes a Data Matrix symbol may take.
public enum DataMatrixShape
Fields
Any = 2The smallest square or rectangular symbol.
Rectangle = 1Rectangular symbols, 8 x 18 to 16 x 48 (and the DMRE sizes when AllowDmre is set), for narrow spaces.
Square = 0Square symbols, 10 x 10 to 144 x 144; every reader reads them.
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"));