![Citizen CL-E300 Скачать руководство пользователя страница 73](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002073.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
73
2.3.10 drawDataMatrix method
Syntax
int drawDataMatrix (String data, int encoding, int rotation, int exp, int ECLevel, int x, int y)
Parameters
Parameter [IN/OUT] Description
Setting range
data
[IN]
String data
-Numeric: Up to 3,116 characters
-Alphanumeric: Up to 2,335 characters
* The characters available with the specified
encoding.
encoding
[IN]
Character encoding
See #9 in "
."
rotation
[IN]
Direction of rotation
CLS_RT_NORMAL: No rotation
CLS_RT_RIGHT90: Rotate CW 90
CLS_RT_ROTATE180: Rotate CW 180
CLS_RT_LEFT90: Rotate CCW 90
exp
[IN]
Magnification
1-15
ECLevel
[IN]
Error correction level
CLS_DATAMATRIX_EC_LEVEL_200
:
200
x
[IN]
X-coordinate
0000-9999
* The origin is at bottom-left.(0, 0)
y
[IN]
Y
-coordinate
Description
Draws the DataMatrix barcode with specifying options such as character encoding, rotation,
magnification, EC level and coordinates.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See "
" for the error
codes.
Example
design.drawDataMatrix("0123456789",
LabelConst.CLS_ENC_CDPG_US_ASCII,
LabelConst.CLS_RT_NORMAL, 15,
LabelConst.CLS_DATAMATRIX_EC_LEVEL_200, 0, 0);