The LJ Device

Device Keywords Accepted by the LJ Device

CLOSE_FILE , DEPTH , FILENAME , FLOYD , INCHES , LANDSCAPE , ORDERED , PIXELS , PORTRAIT , RESOLUTION , SET_CHARACTER_SIZE , THRESHOLD , XOFFSET , XSIZE , YOFFSET , YSIZE

The LJ250 and LJ252 are color printers sold by Digital Equipment Corporation (DEC). To direct graphics output to a picture description file compatible with these printers, issue the command:

SET_PLOT, 'LJ'

This causes IDL to use the LJ driver for producing graphical output. To actually print the generated graphics, send the file to the printer using the normal printing facilities supplied by the operating system. Once the LJ driver is enabled via SET_PLOT, the DEVICE procedure is used to control its actions, as described below. The default settings for the LJ driver are given in Default LJ Driver Settings . Use the HELP, /DEVICE command to view the current font, file, and other options currently set for LJ output.

  • Default LJ Driver Settings

Feature

Value

File

idl.lj

Mode

Portrait

Dither method

Floyd-Steinberg

Resolution

180 dpi

Number of planes

1 (monochrome)

Horizontal offset

1/2 in.

Vertical offset

1 in.

Width

7 in.

Height

5 in.

LJ Driver Strengths

The LJ250 produces color graphics at a low cost. It is capable of producing good quality monochrome output, and is also good at color vector graphics and simple color imaging using a small number of predefined solid colors.

LJ Driver Limitations

The LJ250 is intended to be used as a low cost printer for business color graphics. Although it can be used to print color images, it is limited in its ability to produce satisfactory images of the sort commonly encountered in science and engineering. These limitations make it a poor choice for such work.

If a color is specified that the printer cannot produce, it substitutes the closest color it can. However, the results of such substitutions can give unexpected results. The fixed set of possible colors means that the LOADCT procedure is of limited use with the LJ250. It also means that it is difficult to produce satisfactory grayscale images.

LJ Suggestions

The following suggestions are intended to help you get the most out of the LJ250, taking its limitations into account:

Use the table in the programmers manual with this display to select the colors to use. Note that the RGB values in the programmers manual are scaled from 1 to 100, while IDL scales such values from 0 to 255. Therefore, multiply the values obtained from the manual by 2.55 to properly scale them for use within IDL.