I am trying to print a QR code for a thermal printer. String I print them without problems converting to byte array but when passing a bitmap converted to array of bytes I get all the rare characters and letters.
I have read that it may be because before you have to print a bytes [] to indicate that you are going to print an image. byte[] SELECT_BIT_IMAGE_MODE = {0x1B, 0x2A, 33, (byte) 255, 3};
but this does not work.
Any ideas? I have the image in bitmap and in bytes []. Also try to convert the bitmap to string and print it as print text but the result is similar but only letters without rare characters.
for example for bold print: 'printer.Print (context, setFontBold); but to imágener I do not know.
Thanks. '