Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 177
color property, epos.color = epos.COLOR_2
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 177 highlights
Chapter 5 ePOS-Print Canvas API color property It sets printing color. Object type String Description It specifies printing color. Value COLOR_NONE COLOR_1 COLOR_2 COLOR_3 COLOR_4 No printing 1st color 2nd color 3rd color 4th color Description Example Prints with the 2nd color. 5 177
177
Chapter 5
ePOS-Print Canvas API
5
color property
It sets printing color.
Object type
String
Description
It specifies printing color.
Example
Value
Description
COLOR_NONE
No printing
COLOR_1
1st color
COLOR_2
2nd color
COLOR_3
3rd color
COLOR_4
4th color
Prints with the 2nd color.
<script type="text/javascript" src="epos-print-4.x.x.js"></script>
<script type="text/javascript">
<!--
var canvas = document.getElementById('myCanvas');
var epos = new epson.CanvasPrint(address);
epos.color = epos.COLOR_2;
epos.print(canvas);
//-->
</script>