Do you have a question? Post it now! No Registration Necessary
- Posted on
- ESC/P2 and graphic mode
February 20, 2004, 1:43 pm
rate this thread
Re: ESC/P2 and graphic mode
If you only have a number of graphics to print, then storing them in
memory already in the correct format for the printer is the easiest. I
have found that writing a simple program to convert a 2 colour BMP
file to work quite well.
If you need to dynamically generate the graphics, then if you have
enought memory for a complete "page", then generate the image
first in a block of memory. You can either make your plotting routine
to this block generate the graphics data directly in a suitable
format for the printer, or in a easier X,Y orientation, and the
convert a 8 or 9 pixel row at a time to the ESC/P2 format when you
write to the printer.
If you do not have enough memory for a whole page, then you will
have to do it in blocks. If you need to go this far, then I recommend
you look at the opensource GIMP printer driver project at sourceforge.
R: ESC/P2 and graphic mode
I need to dynamically generate the graphics;
i think to make a monocrome bitmap with the graphic that i need to print.
In my system i have no memory problems.
My problem is found detailed information to send data in the correct format
for the printer (EPSON LQ300+);
i think to use ESP/P2 commands, but i have no experience with them.
Thank's in advance
- » Atmel STK500 beginner Flash mem verification problem
- — Next thread in » Embedded Programming