我在页面模式下打印图像数据遇到了困难。我已经能够在标准模式下打印图像数据,如下所示:
data[] = { ESC ,
'*' ,
0 , // 8-dot single density mode
width , // nl: image width
0 } // nh: image width
for each 8 x image_width block of pixels in a monochrome image
for each 8 x 1 (vertical) strip of pixels in the block
append pixel (0 or 1) data to the array, data[]
write data to COM port
我(不成功的)尝试以页面模式打印是以上述方式的变体,并按照以下步骤进行:
select page mode by writing the chars, ESC and 'L' to the COM port
write pixel data as described above
print by writing the characters ESC and FF
我做错了什么?我需要指定打印区域或类似的东西吗?
顺便说一下,我正在编程一个爱普生TM-T88III打印机。