mtmsuhail / ESC-POS-USB-NET

This project is a simple .NET (C#) Implementation of the Epson ESC/POS Printing using USB Device Driver.
MIT License
202 stars 86 forks source link

how to Write different printer esc/pos command using #30

Open Firnazali opened 3 years ago

Firnazali commented 3 years ago

Epson manual ASCII ESC a n Hex 1B 61 n Decimal 27 97 n

ESC a Align position

n Justification 0,48 Left justification 1,49 Centering 2,50 Right justification

Your Code public byte[] Left() { return new byte[] { 27, 'a'.ToByte(), 0 }; }

Explain whats is 27 , a and 0 we must include both code here