Select your printer model

Parameters are refined by the selected printer.

addDownloadImage


Adds the display of the image registered in addRegisterDownloadImage to the command buffer.

Syntax

 
public void addDownloadImage(int key1, int key2, int dotX, int dotY, int width, int height) throws Epos2Exception

Parameter

key1

Specifies keycode 1 indicated in addRegisterDownloadImage.

Value

Description

Integer from 0 to 255

Keycode 1

key2

Specifies keycode 2 indicated in addRegisterDownloadImage.

Value

Description

Integer from 0 to 255

Keycode 2

dotX

Specifies the x-coordinate of the image display position, with the top left of the customer display as the origin.

Value

Description

Integer from 0 to 799

Effective specification range during landscape orientation

Integer from 0 to 479

Effective specification range during portrait orientation

dotY

Specifies the y-coordinate of the image display position, with the top left of the customer display as the origin.

Value

Description

Integer from 0 to 479

Effective specification range during landscape orientation

Integer from 0 to 799

Effective specification range during portrait orientation

width

Specifies the width display size (in dots) of the image.

Value

Description

Integer from 0 to 1440

Width display size (in dots) of the image

height

Specifies the height display size (in dots) of the image.

Value

Description

Integer from 0 to 1440

Height display size (in dots) of the image

Exception

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

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Sufficient memory required for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • Can be used when the layout is specified in addCreateScreenCustom.
  • To display in the size of the original image, specify 0 in both the width and height parameters.
  • The image is not displayed if it does not fit into the display area.
  • The image specified by this API is displayed in front of the text or image being displayed during the execution.
  • When using a transmission image, use data in the png format.
 

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