Addimage - Epson TM-T88V User Manual

Epos-print sdk for android
Hide thumbs Also See for TM-T88V:
Table of Contents

Advertisement

addImage

Adds raster image printing to the command buffer.
Prints the graphic in the android.graphics.Bitmap class.
Of the graphics in the android.graphics.Bitmap class, makes the specified range into binary with the dither
processing, and converts it into raster image data. 1 pixel of the image corresponds to 1 dot of the printer. If
transparent shading is included, it is regarded as white.
To print a raster image at high speed, specify Builder.ALIGN_LEFT for the
and specify a multiple of 8 not exceeding the printer's paper width for the width parameter of this
API.
Syntax
public void addImage(Bitmap data, int x, int y
Parameter
 data :
Specifies an instance of the android.graphics.Bitmap class.
 x :
Specifies the horizontal start position in the print area. Specifies an integer from 0 to
65534.
 y :
Specifies the vertical start position in the print area. Specifies an integer from 0 to 65534.
 width :
Specifies the width of the print area. Specifies an integer from 1 to 65535.
 height :
Specifies the height of the print area. Specifies an integer from 1 to 65535.
 color :
Specifies the color.
Builder.COLOR_NONE
Builder.COLOR_1
Builder.COLOR_2
Builder.COLOR_3
Builder.COLOR_4
Builder.PARAM_DEFAULT
If the area specified by the x/y parameters and the width/height parameters extends beyond the
image size specified by the data parameter, an EposException with ERR_PARAM contained in its
error status occurs.
, int width, int height, int color)
throws EposException
Set value
Characters are not printed.
First color
Second color
Third color
Fourth color
First color
Chapter 4 API Reference
addTextAlign
(p.43),
Description
4
57

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm-t70Tm-p60Tm-u220

Table of Contents