![Citizen CL-E300 Скачать руководство пользователя страница 83](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002083.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
83
2.3.19 drawPolygon method
Syntax
int drawPolygon (int[] x, int[] y)
Parameters
Parameter
[IN/OUT] Description
Setting range
x
[IN]
X points
0000 - 9999
* The origin is at bottom-left.(0, 0)
y
[IN]
Y points
Description
Draws a closed polygon defined by arrays of x and y coordinates. Each pair of (x, y) coordinates
defines a point. The number of elements must match. Returns CLS_E_ILLEGAL(1101) otherwise.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See "
" for the error
codes.
Example
int[] x = new int[] {100, 200, 250, 150};
int[] y = new int[] {100, 100, 200, 200};
design.drawPolygon(x, y);
// Draw a parallelogram