Image

VerifoneControls. Image

Image to be displayed on a tablet

Constructor

new Image(id, url, x, y, optionsopt)

Description:
  • Instantiate an Image object

Source:
See:
Parameters:
Name Type Attributes Default Description
id number

ID of the image object

url string

URL of the image. To provide the image data directly set the url argument to null, set theimageData property to the base64 encoded contents of the image, and set the format property to the file extension of the image (e.g. jpg or png)

x number 0

X position to draw the image

y number 0

Y position to draw the image

options object <optional>

Additional configuration options

Properties
Name Type Attributes Description
format string <optional>

jpg or png

imageData string <optional>

base64 encoded image data

width number <optional>

Width of image in pixels

height number <optional>

height of image in pixels

border object <optional>

Border styles

Extends

  • DisplayWidget

Methods

(async) data()

Description:
  • Fetch the image data and base64 encode it

Source: