![Citizen CL-E300 Скачать руководство пользователя страница 71](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002071.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
71
2.3.8 drawMaxiCode method
Syntax
int drawMaxiCode (String[] data, int rotation, int x, int y)
Parameters
Parameter
[IN/OUT] Description
Setting range
data
[IN]
String data
ASCII code character string array
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
x
[IN]
X-coordinate
0000
-
9999
* The origin is at bottom-left.(0, 0)
y
[IN]
Y
-coordinate
Description
Draws the UPS MaxiCode barcode with specifying options such as rotation and coordinates.
The following information are required in the data parameter in order as below:
1) 5-digit - Zip code
2) 4-digit -+4 Zip code
3) 3-digit
–
Country Code
4) 3-digit - Class of Service
5) Up to 84 digits other information
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See "
" for the error
codes.
Example
String[] data = new String[] {"90501", "6282", "840", "001", "1Z00004951"};
design.drawMaxiCode(data, LabelConst.CLS_RT_NORMAL, 100, 0);