Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 131
halftone property, Description, Example
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 131 highlights
Chapter 4 ePOS-Print API halftone property Halftone processing method. Object type String Description The halftone processing method to be applied to monochrome (two-tone) printing is specified. The default value is HALFTONE_DITHER. Constant HALFTONE_DITHER (default) HALFTONE_ERROR_DIFFUSION HALFTONE_THRESHOLD Description Dithering, suitable for printing graphics only. Error diffusion, suitable for printing text and graphics together. Threshold, suitable for printing text only. Example To set the halftone type as error diffusion: 131
131
Chapter 4
ePOS-Print API
4
halftone property
Halftone processing method.
Object type
String
Description
The halftone processing method to be applied to monochrome (two-tone) printing is specified.
The default value is HALFTONE_DITHER.
Example
Constant
Description
HALFTONE_DITHER (default)
Dithering, suitable for printing graphics only.
HALFTONE_ERROR_DIFFUSION
Error diffusion, suitable for printing text and graphics together.
HALFTONE_THRESHOLD
Threshold, suitable for printing text only.
<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.halftone = epos.HALFTONE_ERROR_DIFFUSION;
builder.addImage(context, 0, 0, canvas.width, canvas.height);
}
}
//-->
</script>
To set the halftone type as error diffusion: