Table of Contents

Class DataMatrix

Namespace
MiPdf.Barcodes
Assembly
MiPdf.dll

Data Matrix ECC 200 (ISO/IEC 16022). Text is encoded in ASCII mode (digit pairs compressed), binary/UTF-8 content in Base 256 mode. GS1 Data Matrix is supported via CreateGs1(string, DataMatrixShape).

public sealed class DataMatrix : MatrixBarcode
Inheritance
DataMatrix
Inherited Members

Methods

Create(byte[], DataMatrixShape)

Encodes binary data.

public static DataMatrix Create(byte[] data, DataMatrixShape shape = DataMatrixShape.Square)

Parameters

data byte[]
shape DataMatrixShape

Returns

DataMatrix

Create(string, DataMatrixShape)

Encodes text (UTF-8 for non-Latin-1 characters is applied automatically via Base 256 mode).

public static DataMatrix Create(string text, DataMatrixShape shape = DataMatrixShape.Square)

Parameters

text string
shape DataMatrixShape

Returns

DataMatrix

CreateGs1(string, DataMatrixShape)

Creates a GS1 Data Matrix from element strings in the form "(01)09501101530003(17)250101(10)ABC". FNC1 separators after variable-length fields are inserted automatically.

public static DataMatrix CreateGs1(string elementStrings, DataMatrixShape shape = DataMatrixShape.Square)

Parameters

elementStrings string
shape DataMatrixShape

Returns

DataMatrix