Converting to monochrome bitmap for printer
Posted: 2019-04-16T19:35:21-07:00
I’m having some difficulty converting images to a monochrome bitmap to send to a thermal printer I’m using (Microflash 4te).
The programming manual reads as follows for the format (emphasis mine):
The programming manual reads as follows for the format (emphasis mine):
I read up on using the MONO output, but I can’t seem to get it to print anything other than noise. This is what I’m trying (the width of the head is 832 bits across, BTW)Prints the next (n1*256 + n2) dotlines as bit-mapped graphics. n1n2 form a 16-bit binary number set, the most significant byte first. Used to print user-generated bitmap graphics across the width of the printhead. After receipt of this command, the printer dumps the binary data directly to the printhead. As customary with bitmap data, a 1 bit indicates a dot is on, 0 bit indicates the dot is off. Graphics printed using this command must be the exact width of the head in bits. Bit 7 of the first byte of data received prints at the left-most dot on the head as you view the printhead with the paper feeding away from you. The printer remains in bit-mapped graphics mode until the total amount of bytes necessary to fill n1n2 lines of print are received by the printer.
Code: Select all
convert 57155379_10157252806532146_3624336417909374976_n.jpg -resize 832x -monochrome MONO:image.mono