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

Error Printer Image #59

Open desenvolvefacil opened 1 year ago

desenvolvefacil commented 1 year ago

It does not print an image, an error occurs and a completely wrong impression comes out.

saper-2 commented 5 months ago

I had problem with printing images too. You need to change in this line the number 576 to your printer head dots . https://github.com/mtmsuhail/ESC-POS-USB-NET/blob/ff50466659fdbba2208c50b109c2511888560da4/ESC-POS-USB-NET/Epson%20Commands/Image.cs#L16

For e.g. I got Chinese (clone?) MPT-II , which have 48mm active print area (ribbon 57/58mm) and 384dots (203dpi), so I had to change this to 384.

I had created PR #70 that combine other PR and add ability to set printhead width.