Printing a bitmap on a TSC printer
问题 I try to print image on tsc tdp-225 printer using the android device via OTG. This is example from documentation for printing simple bitmap image on tsc printer . This is my implementation . And this is what the printer has printed Maybe someone has already encountered this problem. Printing a monochromatic bitmap using PUTBMP also does not work. 回答1: fun String.hexStringToByteArray(): ByteArray { val hexStr = this.replace("-", "") var result = ByteArray(hexStr.length / 2, {0}) for(i in 0