Using Zebra EPL2 Command do Print a PCX Image
Posted on 2005-04-14
I am trying to send an image to the Zebra TLP 2844 in binary format. It uses the EPL2 language, which has the following command.
*********** TYPED FROM PROGRAMMING MANUAL
GW - Direct Graphic Write
Description: Use this command to load binary graphic data directly into the Image Buffer memory for immediate printing. The printer does not store graphic data sent directly to the image buffer.
The graphic data is lost when the image has finished printing, power is removed or the printer is reset, etc. etc.
p1 = Horizontal start position (X) in dots.
p2 = Vertical start position (Y) in dots.
p3 = Width of graphic in bytes. Eight (8) dots = One (1) byte of data
p4 = Length of graphic in dots (or print lines).
DATA = Raw binary data without graphic file formatting. Data must be in bytes. Multiply the width in bytes (p3) by the number of print lines (p4) for the total amount of graphic data. The printer automatically calculates the exact size of the data block based upon this formula.
*************** END OF MANUAL
I alread have the method that i use to send strings directly to my LPT1 Port, but i have no idea of how could i send this image.
Could anybody help me please?