Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 175
mode property, epos.mode = epos.MODE_GRAY16
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 175 highlights
Chapter 5 ePOS-Print Canvas API mode property It sets the color mode. Object type String Description It specifies the color mode. Value MODE_MONO (Default) MODE_GRAY16 Description Monochrome (2-tone) Multiple tones (16-tone) Example Prints with multiple tones. 5 175
175
Chapter 5
ePOS-Print Canvas API
5
mode property
It sets the color mode.
Object type
String
Description
It specifies the color mode.
Example
Value
Description
MODE_MONO (Default)
Monochrome (2-tone)
MODE_GRAY16
Multiple tones (16-tone)
Prints with multiple tones.
<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.mode = epos.MODE_GRAY16;
epos.print(canvas);
//-->
</script>