59
Chapter 4 API Reference
4
addLogo
Adds NV logo printing to the command buffer.
Prints a logo registered in the NV memory of the printer.
Syntax
public void addLogo(int key1, int key2)
throws EposException
Parameter
key1 : Specifies the key code 1 of an NV logo. Specifies an integer from 0 to 255.
key2 : Specifies the key code 2 of an NV logo. Specifies an integer from 0 to 255.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Register a logo in advance into the printer using the following utilities:
• TM-T88V Utility
• TM Flash Logo Setup Utility
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addLogo(48, 48);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
To print a NV logo with the key code parameters specified as 48, 48: