181
Chapter 5 ePOS-Print Canvas API
5
color property
It sets printing color.
Object type
String
Description
It specifies printing color.
Example
Value
Decription
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-3.x.x.js"></script>
<script type="text/javascript">
<!--
var address = 'http://192.168.192.168/cgi-bin/epos/service.cgi?devid=local_printer';
var canvas = document.getElementById('myCanvas');
var epos = new epson.CanvasPrint(address);
epos.color = epos.COLOR_2;
epos.print(canvas);
//-->
</script>
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 ...