Select your printer model

Parameters are refined by the selected printer.

addPageLine


Adds a page mode line draw command to the command buffer.

Draws a line in the page mode.

Syntax

 
public void addPageLine(int x1, int y1, int x2, int y2, int lineStyle) throws Epos2Exception

Parameter

x1

Specifies the horizontal position to start drawing (in dots).

Value

Description

Integer from 0 to 65535

Horizontal position to start drawing (in dots)

y1

Specifies the vertical position to start drawing (in dots).

Value

Description

Integer from 0 to 65535

Vertical position to start drawing (in dots)

x2

Specifies the horizontal position to end drawing (in dots).

Value

Description

Integer from 0 to 65535

Horizontal position to end drawing (in dots)

y2

Specifies the vertical position to end drawing (in dots).

Value

Description

Integer from 0 to 65535

Vertical position to end drawing (in dots)

lineStyle

Specifies the ruled line type.

Value

Description

Printer.LINE_THIN

Solid line: Fine

Printer.LINE_MEDIUM

Solid line: Middle

Printer.LINE_THICK

Solid line: Thick

Printer.LINE_THIN_DOUBLE

Double line: Fine

Printer.LINE_MEDIUM_DOUBLE

Double line: Middle

Printer.LINE_THICK_DOUBLE

Double line: Thick

Printer.PARAM_DEFAULT

Specifies the default (Solid line: Fine).

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • This API does not work in the standard mode.
  • A diagonal line cannot be drawn.
  • Use this API between the addPageBegin and addPageEnd APIs.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for Android

Jump to the top