|
I hope that this is soonly enough.
There are a number of ways to do this. Back in the day when I was last programming for printers you would look at the printer manual and get all the escape characters that were needed and then write a routine that broke your image down in to N by M graphic blocks and sent that data to the printer as a long set of escape sequances. This method still works but is rather outdated.
Nowadays printers tend to use something like postscript as a go between. Rather than having to know all the hardware details for the printer, you just need to know the postscript and send that to the print driver and it should be able to process the image and print it out. If you are printing something like a graph then I highly suggest learning about postscript as you can have much much more control over how your data gets printed.
What platform are you on (since this will be done in different ways on different systems)?
|