ESC/POS thermal printer, how to center a bitmap image in Android?
问题 I'm writing a simple app in Android to print through a ESC/POS thermal printer. I've just a problem. The app generate a QR Code (with zxing library), convert it in a bitmap and send it to the printer. The printer print it, but I'm not able to center it. Instead with text I have no positioning issue. This is the code to print the text and the QR. byte[] INIT = {27, 64}; byte[] FEED_LINE = {10}; byte[] SELECT_FONT_A = {27, 33, 0}; byte[] FONT_B = {0x1B, 0x4D, 0x01}; byte[] ALLINEA_SX = {0x1B,