88
mode
:
(
Optional
parameter,
Object
type
:
String)
Specifies
the
color
mode.
(in
firmware
Ver.1.2
and
later)
Return value
Exception
Example
Setting
Description
MODE_MONO
Monochrome (two-tone)
MODE_GRAY16
Gray scale (16-tone)
undefined
(When not specified)
Monochrome (two-tone)
Return value
Object type
ePOS-Print Builder Object
ePOS Builder
Exception
Object type
Parameter " ... " is invalid
Error
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
var canvas = document.getElementById('canvas');
if (canvas.getContext) {
var context = canvas.getContext('2d');
builder.addImage(context, 0, 0, canvas.width, canvas.height);
}
}
//-->
</script>
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
var builder = new epson.ePOSBuilder();
builder.addPageBegin();
builder.addPageArea(0, 0, 300, 300);
builder.addPagePosition(0, 299);
builder.addImage(context, 0, 0, 300, 300);
builder.addPageEnd();
To print an image 300 dots wide and 300 dots high in page mode:
Содержание TM-T88V-i
Страница 10: ...10 ...
Страница 14: ...14 ePOS Print Canvas API Monochrome or Grayscale Monochrome ...
Страница 160: ...160 ...
Страница 216: ...216 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...
Страница 218: ...218 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm ...
Страница 222: ...222 Forced transmission mode Supported Recovery from an error Supported Reset Supported Command Supported 80mm 58mm ...
Страница 258: ...258 ...