Command: graphics, graph-ps, graphpin, graph-hp
GRAPHICS allows PrtScr to print graphics screens. (CGA/EGA/VGA/MCGA,
on PostScript, ESC/P Epson 8/24pin and HP PCL printers).
Graphics is a batch file that supports the following printers by
using three different files (you can use the 6 names):
PS / POSTSCRIPT uses GRAPH-PS and supports:
LASERJET [II], QUIETJET[PLU]
PCL / HPPCCL - uses GRAPH-HP and supports:
HPDEFAULT, DESKJET, RUGGEDWRITER [WIDE], THINKJET
EPSON / ESC/P uses GRAPH-PIN and supports:
many impact / ribbon printers work with "EPSON"
Unsupported types are:
IBM PC color ribbon printer (color1, color4, color8)
IBM convertible thermal printer (thermal)
IBM graphics printer (graphics[wide])
(also for IBM proprinter and IBM quietwriter)
(comment: of course most newer versions of all brands too)
As the original help for graphics is absolutel confusing I rewrote
this help and splitted it. Let's hope that I made no mistake.
Syntax and correspondig options:
Syntax for using GRAPH-PS (PS or POSTSCRIPT):
Graphics PS [/B] [I] [/C] [/R] [/E] [n] [/?] or:
Graphics POSTSCRIPT [/B] [I] [/C] [/R] [/E] [n] [/?]
Options for PS or POSTSCRIPT:
/B recognize non-black CGA color 0
/I inverse printing (for dark images)
/C comptatibility mode (HP Laserjet)
/E economy mode (only 50% density)
/R use random dither, not ordered one
/n Use LPTn (value: 1..3, default 1)
/? Show this help text, no load
After loading the driver you can print screenshots using
"shift PrintScreen"
even in graphics modes. This GRAPHICS is for PostScript grayscale
printers.
PS / POSTSCRIPT compatible are:
LASERJET [II], QUIETJET[PLU]
Syntax for using GRAPH-HP (PCL or HPPCL):
graphics PCL [/B] [I] [/C] [/R] [/E] [/n] [/?] or:
graphics HPPCL [/B] [I] [/C] [/R] [/E] [/n] [/?]
Options for PCL or HPPCL:
/B recognize non-black CGA color 0
/I inverse printing (for dark images)
/C compatibility mode (300 dpi)
/R use random dither, not ordered one
/E economy mode (only 50 % density)
/n use LPTn (value: 1..3, default 1)
/? Show this help text, no load
After loading the driver you can print screenshots using
"shift Print Screen"
even in CGA, EGA, VGA, MCA graphics modes. THIS GRAPHICS is for
HP PCL 600 dpi printers.
PCL / HPPCCL compatible are:
HPDEFAULT, DESKJET, RUGGEDWRITER [WIDE], THINKJET
Syntax for using GRAPHPIN (EPSON or ESC/P):
GRAPHICS EPSON [/B] [I] [/C] [/9] [/X] [/R] [/E] [n] [/?] or:
GRAPHICS ESC/P [/B] [I] [/C] [/9] [/X] [/R] [/E] [n] [/?]
Options for EPSON or ESC/P:
/B recognize non-black CGA color 0
/I inverse printing (for dark images)
/C compatibility mode (120x60 dpi)
/9 9-pin mode (120x72, with /C 60x72)
/X extend block width to page width
/R use random dither, not ordered one
/E economy mode (only 50% density)
/n Use LPTn (value: 1..3, default 1)
/? Show this help text, do not load.
After loading the driver you can print screenshots using
"shift Print Screen"
even in graphics modes. This GRAPHICS is for Epson (e.g. 180 dpi)
printer.
EPSON / ESC/P compatible are:
many impact / ribbon printers work with "EPSON"
Options:
- See section Syntax-
Comments:
PostScript version (PS or POSTSCRIPT):
GRAPH-PS produces PostScript output for laser printers, assuming that
the laser printer can make some sense of 256 gray level images itself.
If you press print screen again while print data is generated, the
part of the screen that is not already processed will be printed in
white. Canvas size is 9.9 x 7.43 inch, should fit A4 and letter paper.
HP PCL version (PCL or HPPCCL):
GRAPH-HP is for 600dpi and 300dpi printing on HP PCL 3 compatible
printers, like HP Ink-jets. This by default uses EconoFast (at 300dpi),
and depletion (can be selected at compile time). You can select either
"random" or "ordered" dither as described below. Output looks somewhat
different, however, as "regular pattern avoidance" code is different
in HP PCL and Epson modes. Canvas size of 7.2 x 9.6 inch should fit
both 8.25 x 11.7 inch A4 and 8.5 x 11 inch letter size paper.
No color printing or RET (up to 4 intensity levels per color / black
channel) is supported currently. Tell me if you want colors!
Epson version (EPSON or ESC/P):
GRAPHPIN is for 180dpi and 120x60dpi printing on Epson compatible dot
matrix printers. If you do not select the /R option, dithering patterns
will be based on a bit-mirrored counter, while the /R option enables
"random" dither using a linear congruential pseudo random number
generator, using both low and high byte of the random number to print
a black pixel with probability equal to the darkness of the
corresponding screen pixel.
It is recommend that you copy the file that fits YOUR printer to
GRAPHICS.COM for better overview.
Run the GRAPH*.COM that fits your printer - It will stay resident in
the background until you reboot. You can use the 'shift PrtScr' key
while GRAPH... is resident to print hardcopies (screenshots) of your
graphical screen contents in all standard CGA, EGA and VGA modes.
No support for high resolution modes / VESA / Hercules yet. The print
canvas should fit both A4 and letter paper. The screen is printed in
landscape mode: The bottom of the screen is at the left of the paper.
Make sure that you run only versions that match your type of printer.
Otherwise, the print screen key will cause lots of nonsense to be
printed: You can abort the printing (not in PostScript) by pressing
'shift print screen' again. In the PostScript versions, this trick
will only cause the rest of the printout to stay white, but this will
not save you from printing nonsense on non-PostScript printers.
Luckily, many 24-pin printers and even Epson ink jet color printers
are compatible to Epson. When in doubt, you can always turn off the
printer and/or reboot the PC before too much paper is wasted.
Accidentally sending PostScript to printers that cannot handle it
looks less weird than sending Epson code to other printers
(PostScript only uses plain text commands).
If you do not understand this tech-speak, look at epson.png: The left
image is "ordered", the right image is "random". For space reasons,
epson.png only shows about 100x100 pixels of an MCGA picture. The
full printed screenshots will use a canvas independent of the screen
resolution: 1320x1760 (padded to ...x1776) black and white pixels
(less in 120x72 dpi of course, 1330x1776 with OLDRES compile option).
You can use my pin-read utility for Linux to convert printer data
(only 180x180 dpi currently) into images, I provide it in the "extra"
subdirectory of the sources. If you press print screen again while
printing is in progress, printing will abort at the next available
position (a few 100 per screenshot) and some message like "aborted"
will be printed to tell you about it.
Current canvas size is 7.6 (120x60) or 7 7/9 (60x72, 120x72, 180x180)
by 9 7/9 inch. It should fit both 8.25 x 11.7 A4 and 8.5 x 11 letter.
With OLDRES, 120x72 dpi images are 6.2 x 8.2 inch landscape mode,
and 180x180 dpi and PostScript images are 7.43 x 9.9 inch landscape
mode. This was to make sure that 120x60 dpi (24 pin printers in
compatibility mode) still fit the page.
Examples:
graphics EPSON /B /9 OR:
graphics PCL /c /1 OR:
graphics POSTSCRIPT /c /e /2
After loading the driver you can print screenshots using "Shift
PrintScreen" even in graphics mode. Use the correct printer driver!
See also:
print
Copyright © 2003 Eric Auer, help version 2022 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.