mode property
It sets the color mode.
Object type
String
Description
It specifies the color mode.
Value
MODE_MONO (Default)
MODE_GRAY16
Example
Prints with multiple tones.
<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.mode = epos.MODE_GRAY16;
epos.print(canvas);
//-->
</script>
Decription
Monochrome (2-tone)
Multiple tones (16-tone)
Chapter 5 ePOS-Print Canvas API
5
179