49
Chapter 4 API Reference
4
addTextSmooth
Adds the smoothing setting to the command buffer.
Syntax
public void addTextSmooth(int smooth)
throws EposException
Parameter
smooth : Specifies whether to enable smoothing.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Set value Description
Builder.TRUE Specifies smoothing.
Builder.FALSE (default) Cancels smoothing
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To enable smoothing:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextSmooth(Builder.TRUE);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}