Comando de impressao direta ESC padrão epson

Delphi

30/07/2017

alguém já usou esse comando para imprimir graficamente em uma
impressora de cupom ou matricial tipo lx300 ?
.
Abaixo a documentacao do comando:
.
ESC * ! n1 n2 b1 ... bn
.
[Function] 24-bit graphics.
[Format] ASCII ESC * ! n1 n2 b1 ... b2
Hexadecimal 1B 2A 21 n1 n2 b1 ... b2
Decimal 27 42 33 n1 n2 b1 ... b2
.
[Description] This command downloads a 24-bit bit image with n1+n2*256 columns and b1...bn bytes to
compose the image. Each column contains 3 bytes, as shown in the figure below.
.
This illustration shows a 24-bit graphic containing 8 bit-columns with 3 bytes height each (24
bits). It shows how bytes are interpreted by the printer when this command is used. A full
print line with ‘N’ columns will need N*3 bytes. If the image to print has less than ‘N’ graphic
columns, a LF command must be sent to perform line printing. Text and graphic may be mixed
in the same line.

Porém não consegui decifrar como "montar" o comando no delphi

algo assim:

Linha_de_impressao := #27#42#33 + "o restante do comando"

alguem que já usou pode postar algum exemplo?
Alberto

Alberto

Curtidas 0

Respostas

Hélio Devmedia

Hélio Devmedia

30/07/2017

Beto, porque impressora de cupom ou matricial, são diferentes e processam comandos de forma diferente?

Além disso, se estamos falando de impressora não fiscal térmica, você tem que ver se o modelo suporta esse comando.
GOSTEI 0
POSTAR