A method of printing logo picture on Epson Bill Printer

Source: Internet
Author: User

I've used an ESC command to get into the bitmap mode to print the logo picture, but it's a lousy print.

Today found a way to print pictures to print out the effect is better, the process is the first BMP picture file uploaded to the printer device, and then send a series of custom instructions can be printed out logo, here is a Epson printer to give examples

1. Install printer driver

Because the driver has uploaded BMP pictures to the printer function, installed drivers to select the printer right key properties you can see the following figure

Click the Logo button to open the Logo upload program

First click on the Open file in this interface. Choose a BMP format picture, if the hint does not support, then please go to this URL to convert BMP format

Convert BMP Format Online

This interface is the Upload tab, key code Select Custom, and then we fill in a custom code 48,49, why do we need to fill in the key code?

Because you can upload multiple BMP pictures, send print when this key code is particularly critical, and finally click Upload Device, when prompted to enter the Logo PrintOut tab success

In this interface to see a Get Key Code button, click on this button to get all the uploaded pictures of the key code, get to select a key code then click on the Print button to print 2. Instructions sent

When I click on the Print button, this program sends a print picture instruction to the printer, if the program wants to call must know what instructions to send it,

So i downloaded a serial command listening tool, listening to the following content


Finally learned that the key is this line of instructions to print the picture, which is the key is 30,31 because this is hexadecimal, if the 30,31 converted to decimal is 48,49

So 30,31 is key code.

1 b 1D 4C 06 00 30 45 30 31 01 01

Finally, you can print the logo by writing a byte array like this in code.

Comm. Write (new byte[] {0x1b, 0x40, 0x1d, 0x28, 0x4c, 0x06, 0x00, 0x30, 0x45, 0x30, 0x31, 0x01, 0x01});

This print defaults to left alignment, and if you want to print a picture centered, fill in the blank at the left of the picture

Finally, attach a picture of the effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.