Encoder for Data Matrix bar code. More...
#include <bpsdatamatrix.h>
Public Types | |
enum | Mode { ModeRegular = 0 , ModeGS1 = 1 , ModeReader = 2 } |
Mode. More... | |
enum | Shape { ShapeAny = 0 , ShapeSquare = 1 , ShapeRect = 2 } |
Code shapes. More... | |
Public Member Functions | |
BpsDataMatrix () | |
Default constructor. | |
QVector< QVector< bool > > | encode (const QString &aText, Shape aShape, Mode aMode) |
Encode a text into a matrix. More... | |
Encoder for Data Matrix bar code.
Encoding happens according to ISO/IEC 16022 bar code symbology specifications for Data Matrix. Only ECC 200 type is supported which uses Reed-Solomon error correction. GS1 QR Code is supported where a FNC1 mode is added as first data element. ASCII GS (hex 1D) may be used as terminator for variable application data fields.
enum BpsDataMatrix::Mode |
enum BpsDataMatrix::Shape |
Encode a text into a matrix.
aText | The text to encode. In case the text is too large for the given shapes, a empty matrix is returned. |
aShape | The shapes to use. |
aMode | The mode to use. |