Fillpolygon Method - Citizen CL-S700 Programming Manual

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

Advertisement

2.3.20 fillPolygon method

Syntax
int fillPolygon (int[] x, int[] y, int pattern)
Parameters
Parameter [IN/OUT] Description
x
[IN]
y
[IN]
pattern
[IN]
Description
Draws a closed polygon defined by arrays of x and y coordinates, with the specified shaded pattern.
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.fillPolygon(x, y, LabelConst.CLS_SHADED_PTN_3);
// Draw a parallelogram
Setting range
X points
0000 - 9999
* The origin is at bottom-left.(0, 0)
Y points
Shaded pattern
CLS_SHADED_PTN_0: Shaded pattern 000
CLS_SHADED_PTN_1: Shaded pattern 001
CLS_SHADED_PTN_2: Shaded pattern 002
CLS_SHADED_PTN_3: Shaded pattern 003
CLS_SHADED_PTN_4: Shaded pattern 004
CLS_SHADED_PTN_5: Shaded pattern 005
CLS_SHADED_PTN_6: Shaded pattern 006
CLS_SHADED_PTN_7: Shaded pattern 007
CLS_SHADED_PTN_8: Shaded pattern 008
CLS_SHADED_PTN_9: Shaded pattern 009
CLS_SHADED_PTN_10: Shaded pattern 010
CLS_SHADED_PTN_11: Shaded pattern 011
84
CITIZEN Android Label Print SDK — Programming Manual
"2.1 Return
value" for the error

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents