Select your printer model

Parameters are refined by the selected printer.

addRegisterDownloadImage


Adds the registration of the image data to the command buffer.

The specified image data can be registered in the download graphics area of customer display, and can be called by addDownloadImage.

Syntax

 
- (int) addRegisterDownloadImage:(NSData*)data key1:(long)key1 key2:(long)key2;

Parameter

data

Specifies the binary data in the png format or jpg format.

key1

Specifies keycode 1.

Value

Description

Integer from 48 to 57, 65 to 90, and 97 to 122

Keycode 1

key2

Specifies keycode 2.

Value

Description

Integer from 48 to 57, 65 to 90, and 97 to 122

Keycode 2

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Sufficient memory required for processing could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • This API cannot be used simultaneously with other APIs.
    After executing this API, do not execute any other API until the callback is returned.
  • Execute a sendData API after each execution of this API to register images one by one.
  • If EPOS2_SUCCESS is not returned in the return value by the sendData execution results after the execution of this API, restart the printer.
    Depending on the system environment, it may take some time for the recovery process.
  • If the power supply to the customer display is cut off, the registered image is erased.
  • As the data size of the image to be registered increases, the processing time becomes longer. (Max. 320 seconds)
  • If the data size of the image to be registered is large, and the communication environment is poor, the image may not be registered in this API.
    If the image cannot be registered in this API, use a dedicated Utility software.
    For details on the dedicated Utility software, refer to the Technical Reference Guide of each customer display.
  • If an image is registered in the specified keycode, it is overwritten and registered.
  • Image data expressed in the pixel format of YCbCr422 or YCbCr420 can be used.
  • The image size should be about 100 KB although the upper limit of the image size is 1.5 MB.
  • Total size of images that can be registered is 1.5 MB.
    This API converts the image format and pixel count so that the customer displays can process the images and then register them. The conversion processing may increase the size of images, so ensure that there is sufficient free space in the download graphics area to accommodate the total size of the images to be registered.
    No error is returned when registration was not successful due to insufficient free space in the download graphics area.
  • When using a transmission image, use data in the png format.
  • Please use an image that matches the size of the image area in the customer display.
    Using an image larger than the size of the image area will cause the image to be trimmed to fit the size of the image area.
 

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 iOS

Jump to the top