Android Question Anyone feed up the logo on Bluetooth printers with B4A and ESC/POS?

infow

Member
Licensed User
Longtime User
In DPP 250 we have this instructions it seems 1 bit .bmp format:

(GS *) Defining a Downloaded Bit Image (logo) Code [1Dh] + [2Ah] + n1 + n2 + D1 + … + Dn
Description The command defines a bit image that contains number of dots, defined by n1 and n2.
Image is stored and after the printers is switched off.
The so defined bit image is printed with command GS /.
n1 Between 0 and 127. It defines the horizontal size of the downloaded image.
n2 Between 0 and 248. It defines the vertical size of the downloaded image.
Di The data for the bit image. This data consist of n1*n2 bytes, from left to right and from top to bottom, but n1 bytes in each horizontal line (n1*8 dots) and n2 lines. Each bit defines a dot, 1 corresponds to black. Total number of bytes cannot be bigger than 16 kB. The command defines a bit image that contains number of dots, defined by n1 and n2. Image is stored and after the printers is switched off. Selececting value 0 for n1 and/or n2 deactivates (deletes) the logo. By default there is no logo image in the printer. The so defined bit image is printed with command GS /

I get something like it, but can´t make work:

x=16: y=5
PRINT #1, CHR$(&H1D);"*";CHR$(x);CHR$(y);
For i=1 To x*y*8
READ a$: d=VAL("&H"+a$)
PRINT #1, CHR$(d);
Next i
PRINT #1, CHR$(&H1D);"/";CHR$(0);CHR$(&HA);¬ Normal
 

infow

Member
Licensed User
Longtime User
Changing to AsyncStream change all sample structure, I´m not getting how correctly apply...
 
Upvote 0
Top