Graphic commands examples, And 3, Bytes of the first bit-column, than the 1 – Bematech KC-4112 Rev.1.1 User Manual

Page 24: Bit graphics

Advertising
background image

User’s Manual

24

MSB (bit 7)

LSB (bit 0)

Graphic commands examples

For this 24-bit graphic pattern we have eight
bit-columns, each with a height of 3 bytes
(24 bits). The printer must, after the command
is stated, receive the 1

st

, 2

nd

and 3

rd

bytes of

the first bit-column, than the 1

st

, 2

nd

and 3

rd

bytes of the second bit-column and so on, until
the last

The command sequence to print this graphic pattern would be (numbers in decimal):

ESC * ! 8 0 1 1 1 2 2 2 4 4 4 8 8 8 16 16 16 32 32 32 64 64 64 128 128 128

Where you have 8 + 0 * 256 = 8 bit-columns to be filled, each with 3 bytes that will give us a

total of 24 bytes to be sent (excluding the command sequence).

1

st

byte

2

nd

byte

3

rd

byte

1

st

bit-column

8

th

bit-column

24-bit graphics

For this 8-bit graphic pattern we have eight bit-
columns, each with a height of 1 byte (8 bits).
The printer must, after the command is stated,
receive the byte for the first bit-column, than the
byte for the second bit-column and so on, until
the last bit-column is filled. The resolution is
lower but needs less bytes to be sent

The command sequence to print this graphic pattern would be (numbers in decimal):

ESC K 8 0 1 2 4 8 16 32 64 128

Where you have 8 + 0 * 256 = 8 bit-columns to be filled, each with 1 byte that will give us a

total of 8 bytes to be sent (excluding the command sequence).

1

st

bit-column

8

th

bit-column

MSB (bit 7)

LSB (bit 0)

1 byte

8-bit graphics

Figure 12

Figure 13

Advertising