134
halftone property
Halftone processing method. (in firmware Ver.1.2 and later)
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-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.halftone = epos.HALFTONE_ERROR_DIFFUSION;
builder.addImage(context, 0, 0, canvas.width, canvas.height);
}
}
//-->
</script>
To set the halftone type as error diffusion:
Summary of Contents for TM-T88V-i
Page 10: ...10 ...
Page 14: ...14 ePOS Print Canvas API Monochrome or Grayscale Monochrome ...
Page 160: ...160 ...
Page 258: ...258 ...