Encodes a string using Aztec format.
void AztecEncode( LPCTSTR Message, WORD Mode, WORD CorrectionLevel, WORD PreferredFormat, BOOL HandleTilde, BOOL StructuredAppend); |
Parameters
Message
String to be encoded using Aztec format.
Mode
Indicates which encoding mode is used, this parameter can be one of the following values.
Value |
Comment |
0 |
Auto mode for optimized encoding |
1 |
Binary mode |
CorrectionLevel
Indicates the percentage of errors which can be recovered, the recommended value is 23.
PreferredFormat
Indicates which format is used, the values of all formats are listed here.
HandleTilde
Indicates whether to process the tilde character "~" or not, the detailed description is:
o"~dNNN" is used to represent the ASCII character with the value of NNN.
StructuredAppend
Indicates whether the structured append is allowed or not, if this parameter is set to TRUE, first use AztecSetStructuredAppend() function to specify which symbol this is in a sequence and the total number of symbols in the sequence.