用网上的一个gprinter.jar开发蓝牙与收银机的对接打印,出现如下错误:x + width must be <= bitmap.width()
zs这一系列的错误都源自于矩阵的检测:
/**
* Shared code to check for illegal arguments passed to getPixels()
* or setPixels()
*
* @param x left edge of the area of pixels to access
* @param y top edge of the area of pixels to access
* @param width width of the area of pixels to access
* @param height height of the area of pixels to access
* @param offset offset into pixels[] array
* @param stride number of elements in pixels[] between each logical row
* @param pixels array to hold the area of pixels being accessed