Home > Commands A-M > Commands G

GRAPHICS


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Loads a program into memory that allows the operating system 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.


Syntax

GRAPHICS [type] [,[drive:][path]filename] [/R] [/B] [/C] [/F] [/LCD] [/P=n] [/PRINTBOX:[STD | LCD]]


Parameters
drive: ( path filename v4.0 Win95 NT3.5)
Specifies the location and name of the printer profile that contains information about all supported printers. If this parameter is omitted, the operating system looks for a file called GRAPHICS.PRO in the current directory and in the directory that contains the GRAPHICS.COM file.
type (v2.0 Win95 NT3.5)
Specifies the type of printer. The list shows each valid value for this parameter and gives a brief description of its meaning:

Switches
/B (v2.0 Win95 NT3.5)
Prints the background in color. This switch is valid for COLOR4 and COLOR8 printers.
/C v2.0 through v6.0.
Prints the image so that it is centered on the paper working with an image resolution of 640 x 200.
/F v3.20 through v3.30.
Prints a 320 x 200 image by rotating it 90 degrees and printing it sideways.
/LCD (v3.30 Win95 NT3.5)
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.
/P=n (v2.0)
Sets the printer port used when Shift+PrtSc and (1, 2, or 3) combination pressed. Defaults to 1.
/PRINTBOX:STD | ( /PRINTBOX:LCD v4.0 Win95 NT3.5)
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.
/R (v2.0 Win95 NT3.5)
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.

Related

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


Notes
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 profile.

If you try to use only the GRAPHICS command to load a new profile that is larger than the currently loaded profile, the operating system displays the message:

    Unable to reload with profile supplied

Examples

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

    GRAPHICS

After you display the information you want to print, press SHIFT+PRINT SCREEN. The operating system scans the information displayed on the screen and sends it to the printer.


Errorlevels

none.


Availability
External Resident
DOS
v2.0 v2.01 v2.05 v2.10 v2.11 v2.11R v2.12 v2.2 v2.25 v3.0 v3.20 v3.05 v3.1 v3.21 v3.25 v3.30 v3.3A v3.3R v3.3T v3.31 v3.40 v4.0 v4.01 v4.01A v5.0 v5.0A v5.00.02 v5.001A v5.01 v5.02 v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10
Windows
Win95 Win98
Windows NT
NT3.5 NT4 NT2000