clearPrinterBufferArea method Null safety

void clearPrinterBufferArea(
  1. int x,
  2. int y,
  3. int width,
  4. int height
)

清除打印机缓冲区部分区域的数据(区域内数据变为0,不参与打印)

x 起点X坐标 y 起点Y坐标 width 宽度 height 高度

Implementation

void clearPrinterBufferArea(int x, int y, int width, int height) {
  addString("ERASE $x,$y,$width,$height\r\n");
}