hzhang@vax1.tcd.ie (11/20/90)
How can I dump EGA or VGA image to matrix printer in C or assembly language ?
zhou@brazil.psych.purdue.edu (Albert Zhou) (11/21/90)
There is no universal way of doing this, depending on what kind of printer you have. Read the printer manual, and it will tell you how to send control codes to the printer in graphic mode. As for the image on your screen, you can simply use GetPixel(x,y) to get each pixel color (if you have a color printer, otherwise, make non-zero color black, and zero white).
sab@engr.uark.edu (Steven A. Breuer) (11/22/90)
In article <7287.2748565e@vax1.tcd.ie>, hzhang@vax1.tcd.ie writes: > How can I dump EGA or VGA image to matrix printer in C or assembly language ? The book by Ben Ezzell - "Graphics Programming in Turbo C 2.0" - talks about how to print a graphics image on dot matrix and laser printers. It includes a grey scale feature. Steve Breuer sab@engr.uark.edu
henry@zoo.toronto.edu (Henry Spencer) (11/22/90)
In article <7287.2748565e@vax1.tcd.ie> hzhang@vax1.tcd.ie writes: >How can I dump EGA or VGA image to matrix printer in C or assembly language ? Try asking comp.sys.ibm.pc.programmer instead. This is a PC question, not a C question. -- "I don't *want* to be normal!" | Henry Spencer at U of Toronto Zoology "Not to worry." | henry@zoo.toronto.edu utzoo!henry