Select your printer model

Parameters are refined by the selected printer.

addDownloadImage method


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

Syntax

 
addDownloadImage (key1, key2, dotX, dotY, width, height);

Parameter

key1

Value

Description

Integer value from 0 to 255

Specifies keycode 1 indicated in addRegisterDownloadImage method.

key2

Value

Description

Integer value from 0 to 255

Specifies keycode 2 indicated in addRegisterDownloadImage method.

dotX

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

Value

Description

Integer value from 0 to 799

Effective specification range during landscape orientation

Integer value 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 value from 0 to 479

Effective specification range during landscape orientation

Integer value from 0 to 799

Effective specification range during portrait orientation

width

Value

Description

Integer value from 0 to 1440

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

height

Value

Description

Integer value from 0 to 1440

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

Return value

Return value

Object type

Display object

Display

Exception

Return value

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • Can be used when the layout is specified in addCreateScreenCustom method.
  • 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 of the API.
  • 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 JavaScript

Jump to the top