encodeHighLevel
Performs message encoding of a DataMatrix message
Return
the encoded message (the char values range from 0 to 255)
Parameters
msg
the message
fun encodeHighLevel(msg: String, priorityCharset: KiteCharset?, fnc1: Int, shape: SymbolShapeHint): String
Performs message encoding of a DataMatrix message
Return
the encoded message (the char values range from 0 to 255)
Parameters
msg
the message
priorityCharset
The preferred KiteCharset. When the value of the argument is null, the algorithm chooses charsets that leads to a minimal representation. Otherwise the algorithm will use the priority charset to encode any character in the input that can be encoded by it if the charset is among the supported charsets.
fnc1
denotes the character in the input that represents the FNC1 character or -1 if this is not a GS1 bar code. If the value is not -1 then a FNC1 is also prepended.
shape
requested shape.