117
Chapter 4 ePOS-Print API
4
addPageRectangle method
Adds rectangle drawing in page mode to the command buffer. Draws a rectangle in page mode.
Syntax
addPageRectangle
(x1, y1, x2, y2, style);
Parameter
x
1:
(
Required
parameter,
Object
type
:
Number)
Specifies
the
horizontal
start
position
of
the
line
(in
dots).
Specifies
an
integer
from
0
to
65535.
y
1:
(
Required
parameter,
Object
type
:
Number)
Specifies
the
vertical
start
position
of
the
line
(in
dots).
Specifies
an
integer
from
0
to
65535.
x2
:
(
Required
parameter,
Object
type
:
Number)
Specifies
the
horizontal
end
position
of
the
line
(in
dots).
Specifies
an
integer
from
0
to
65535.
y2
:
(
Required
parameter,
Object
type
:
Number)
ècSpecifies
the
vertical
end
position
of
the
line
(in
dots).
Specifies
an
integer
from
0
to
65535.
style
:
(
Optional
parameter,
Object
type
:
String)
Specifies
the
line
type.
Return value
Exception
Use
this
API
function
by
inserting
it
between
addPageBegin
)
and
PageEnd
).
Constant (style)
Description
LINE_THIN
Solid line: Thin
LINE_MEDIUM
Solid line: Medium
LINE_THICK
Solid line: Thick
LINE_THIN_DOUBLE
Double line: Thin
LINE_MEDIUM_DOUBLE
Double line: Medium
LINE_THICK_DOUBLE
Double line: Thick
undefined (When not specified)
Solid line: Thin
Return value
Object type
ePOS-Print Builder Object
ePOS Builder
Exception
Object type
Parameter " ... " is invalid
Error
Summary of Contents for TM-T88V-i
Page 10: ...10 ...
Page 14: ...14 ePOS Print Canvas API Monochrome or Grayscale Monochrome ...
Page 160: ...160 ...
Page 258: ...258 ...