135
Chapter 4 ePOS-Print API
4
brightness property
Brightness correction value. (in firmware Ver.1.2 and later)
Object type
Number
Description
A gamma value in the range 0.1-10.0 is specified for the brightness correction value.
The default value is 1.0.
Example
<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.brightness = 2.2;
builder.addImage(context, 0, 0, canvas.width, canvas.height);
}
}
//-->
</script>
To set brightness as 2.2:
Содержание 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 ...