Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 132
brightness property
![]() |
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 132 highlights
brightness property Brightness correction value. 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 To set brightness as 2.2: 132
![](/manual_guide/products/epson-p60ii-eposprint-api-user-s-manual-tmi-firmware-41-a0c01f3/132.png)
132
brightness property
Brightness correction value.
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-4.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: