80
addPageRectangle
Adds rectangle drawing in page mode to the command buffer. Draws a rectangle in page mode.
Syntax
public void addPageRectangle
(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.
Use this API function by inserting it between addPageBegin (p.70) and addPageEnd (p.71).
Set value Description
Builder.LINE_THIN Solid line: Thin
Builder.LINE_MEDIUM Solid line: Medium
Builder.LINE_THICK Solid line: Thick
Builder.LINE_THIN_DOUBLE Double line: Thin
Builder.LINE_MEDIUM_DOUBLE Double line: Medium
Builder.LINE_THICK_DOUBLE Double line: Thick
Builder.PARAM_DEFAULT Solid line: Thin
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.