c++ - Printing image in receipts printer using C -


i have hengstler c56 thermal receipt printer. have been trying long time print logo printer. not able figure out how it's failing.

the image trying print of *.bmp type , 50x50. printer api written in c , printer accepts unsigned char byte array write buffer.

any ideas done?

record image #1:

fwrite("\x1d\x26\x01\x01\x08\x00" "\x00\x66\x66\x00\x00\x42\x3c\x00",        1, 14, printer_stream); 

print image #1 double width , double height:

fwrite("\x1d\x27\x01\x03"        1, 4, printer_stream); 

i tried make data nice

  bit 7  6  5  4  3  2  1  0     .. .. .. .. .. .. .. ..   00     .. ## ## .. .. ## ## ..   66     .. ## ## .. .. ## ## ..   66     .. .. .. .. .. .. .. ..   00     .. .. .. .. .. .. .. ..   00     .. ## .. .. .. .. ## ..   42     .. .. ## ## ## ## .. ..   3c     .. .. .. .. .. .. .. ..   00 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -