Drawline Method - Citizen CL-S700 Programming Manual

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

Advertisement

2.3.14 drawLine method

Syntax
int drawLine (int x1, int y1, int x2, int y2, int thickness)
Parameters
Parameter
x1
y1
x2
y2
thickness
Description
Draws a line of the specified width.
Start and stop positions will be located at the center of the line. Each coordinate must be within the
range of 0000-9999. Moreover the whole line image (rectangule) including the line thickness must
be within the range of 0000-9999 as well. Returns CLS_E_ILLEGAL(1101) otherwise.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See
codes.
Example
// FormatAttribute:OR
printer.setFormatAttribute(1);
// Bar
design.drawLine(20, 30, 20, 300, 10);
// Horizontal line
design.drawLine(16, 34, 200, 34, 10);
[IN/OUT] Description
[IN]
Start position
( X-coordinate )
[IN]
Start position
(Y -coordinate )
[IN]
End position
( X-coordinate )
[IN]
End position
(Y -coordinate )
[IN]
Line width (Reference point is
center)
CITIZEN Android Label Print SDK — Programming Manual
Setting range
0000-9999
* The origin is at bottom-left.(0, 0)
0000-9999
78
"2.1 Return
value" for the error

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents