Encodes a string using Aztec format.
[Visual Basic .NET] Public Sub Encode(ByVal Message As String, _ ByVal Mode As Integer, _ ByVal CorrectionLevel As Integer, _ ByVal PreferredFormat As Integer, _ ByVal HandleTilde As Boolean, _ ByVal StructuredAppend As Boolean) |
[C#] public void Encode(string Message, int Mode, int CorrectionLevel, int 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.