addPageLine
Adds line drawing in page mode to the command buffer. Draws a line in page mode.
Diagonal lines cannot be drawn.
Use this API function by inserting it between
Syntax
public void addPageLine
(int x1, int y1, int x2, int y2, int style)
throws EposException
Parameter
x1:
Specifies the horizontal start position of the line (in dots).
Specifies an integer from 0 to 65535.
y1:
Specifies the vertical start position of the line (in dots).
Specifies an integer from 0 to 65535.
x2 :
Specifies the horizontal end position of the line (in dots).
Specifies an integer from 0 to 65535.
y2 :
Specifies the vertical end position of the line (in dots).
Specifies an integer from 0 to 65535.
style :
Specifies the line type.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
78
Set value
Builder.LINE_THIN
Builder.LINE_MEDIUM
Builder.LINE_THICK
Builder.LINE_THIN_DOUBLE
Builder.LINE_MEDIUM_DOUBLE
Builder.LINE_THICK_DOUBLE
Builder.PARAM_DEFAULT
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
addPageBegin (p.70)
Solid line: Thin
Solid line: Medium
Solid line: Thick
Double line: Thin
Double line: Medium
Double line: Thick
Solid line: Thin
Description
and
addPageEnd
(p.71).
Description