Drawpolygon Method - Citizen CL-S700 Programming Manual

Android label print sdk
Hide thumbs Also See for CL-S700:
Table of Contents

Advertisement

2.3.19 drawPolygon method

Syntax
int drawPolygon (int[] x, int[] y)
Parameters
Parameter
x
y
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
codes.
Example
int[] x = new int[] {100, 200, 250, 150};
int[] y = new int[] {100, 100, 200, 200};
design.drawPolygon(x, y);
[IN/OUT] Description
[IN]
X points
[IN]
Y points
// Draw a parallelogram
CITIZEN Android Label Print SDK — Programming Manual
Setting range
0000 - 9999
* The origin is at bottom-left.(0, 0)
83
"2.1 Return
value" for the error

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents