----------------------- MS-DOS v6.22 Help: Graphics ------------------------
<Notes> <Examples>                                               <Index>


Loads a program into memory that allows MS-DOS to print the information
displayed on your screen. Use the GRAPHICS command only if you are using a
color or graphics adapter.

The GRAPHICS command supports the CGA, EGA, and VGA graphics display modes.


    GRAPHICS [type] [[drive:][path]filename] [/R] [/B] [/LCD]


    Specifies the type of printer. The following list shows each valid value
    for this parameter and gives a brief description of its meaning:

        An IBM Personal Computer Color Printer with black ribbon

        An IBM Personal Computer Color Printer with RGB (red, green, blue,
        and black) ribbon

        An IBM Personal Computer Color Printer with CMY (cyan, magenta,
        yellow, and black) ribbon

        Any Hewlett-Packard PCL printer

        A Hewlett-Packard DeskJet printer

        An IBM Personal Graphics Printer, IBM Proprinter, or IBM Quietwriter

        An IBM Personal Graphics Printer with an 11-inch-wide carriage

        A Hewlett-Packard LaserJet printer

        A Hewlett-Packard LaserJet II printer

        A Hewlett-Packard PaintJet printer

        A Hewlett-Packard QuietJet printer

        A Hewlett-Packard QuietJet Plus printer

        A Hewlett-Packard RuggedWriter printer

        A Hewlett-Packard RuggedWriterwide printer

        An IBM PC-convertible Thermal Printer

        A Hewlett-Packard ThinkJet printer

    Specifies the location and name of the printer profile that contains
    information about all supported printers. If this parameter is omitted,
    MS-DOS looks for a file called GRAPHICS.PRO in the current directory and
    in the directory that contains the GRAPHICS.COM file.


    Prints the image as it appears on the screen (white characters on a
    black background) rather than reversed (black characters on a white
    background). The latter occurs by default.

    Prints the background in color. This switch is valid for COLOR4 and
    COLOR8 printers.

    Prints an image by using the liquid crystal display (LCD) aspect ratio
    instead of the CGA aspect ratio. The effect of this switch is the same
    as that of /PRINTBOX:LCD.

    Selects the print-box size. Check the first operand of the PRINTBOX
    statement in your GRAPHICS.PRO file. If that operand is STD, specify the
    /PRINTBOX:STD switch. If that operand is LCD, specify the /PRINTBOX:LCD
    switch. You can abbreviate PRINTBOX as PB.

Related Command

For information about printing text files, see the <PRINT> command.


<Syntax> <Examples>


Printing the contents of the screen

To print the contents of the screen, press the SHIFT+PRINT SCREEN key
combination. If the computer is in 320 x 148 x 200 color graphics mode and
if the printer type is color1 or graphics, the GRAPHICS command prints the
screen contents with as many as four shades of gray. If the computer is in
640 x 148 x 200 color graphics mode, GRAPHICS prints the screen contents
sideways on the paper (landscape orientation). You cannot use the
SHIFT+PRINT SCREEN key combination to print the contents of a screen to a
PostScript printer.

Effect on memory

The GRAPHICS command decreases the amount of available conventional memory.

Loading a new profile

If you have already loaded a printer profile and you want to load another
one by using the GRAPHICS command, the new profile must be smaller than the
one already loaded.

To load a new profile that is larger than the one currently loaded, you must
restart your system and then use the GRAPHICS command to load the new

If you try to use only the GRAPHICS command to load a new profile that is
larger than the currently loaded profile, MS-DOS displays the following

    Unable to reload with profile supplied


<Syntax> <Notes>


To prepare to print a graphics screen on your printer, type the following


After you display the information you want to print, press SHIFT+PRINT
SCREEN. MS-DOS scans the information displayed on the screen and sends it to
the printer.


<Top of page>
Last update: December 07, 2002 14:45 by
Content © 1997 Microsoft Corporation
All else © 2000-2005