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.
-
Although color is specified via the usual RGB triples using the TVLCT procedure, the LJ250 is only capable of generating a fixed set of colors. The number of possible colors depends on the resolution in use. When producing 180 dpi graphics, only the colors given in the table below are possible. In 90 dpi mode, 256 colors are available.
-
LJ250 Colors Available at 180 dpi
Color
|
Red Value
|
Green Value
|
Blue Value
|
Black
|
10
|
10
|
10
|
Yellow
|
227
|
212
|
33
|
Magenta
|
135
|
13
|
64
|
Cyan
|
5
|
56
|
163
|
Red
|
135
|
20
|
36
|
Green
|
8
|
66
|
56
|
Blue
|
10
|
10
|
74
|
White
|
229
|
224
|
217
|
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.
-
The number of simultaneous colors possible on an output page is limited. Although images are specified in 8-bit bytes, the number of significant bits used ranges from 1 to 4 (as specified via the DEPTH keyword to the DEVICE procedure), allowing from 2 to 16 colors. Coupled with the above limitation on the colors that are possible, it is difficult to produce high quality image output.
LJ Suggestions
The following suggestions are intended to help you get the most out of the LJ250, taking its limitations into account:
-
Use monochrome output when possible. This results in considerably smaller output files, and provides most of the abilities the LJ250 handles well. When producing monochrome output, the LJ250 driver dithers images. This can often produce more satisfying gray scale output than possible using the printer in color mode.
-
LJ250 Colors Available at 180 dpi
gives the RGB values to use when specifying colors at 180 dpi. To make more colors available, use 90 dpi resolution. The RGB values for the possible colors at 90 dpi are given in Table 7-6 of the
LJ250/LJ252 Companion Color Printer Programmer Reference Manual
. You can cause the printer to display the complete 256 color palette as follows: With the power off, press and hold the READY and DEC/PCL switches while momentarily pressing the power switch. Wait approximately 2 seconds and release the READY and DEC/PCL switches. The printer will take a few minutes to print all 256 colors. The complete display fits on a single page.
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.
-
Unlike most devices, IDL does not initialize the LJ250 color map to a gray scale ramp because the printer cannot produce a satisfactory gray scale image. Instead, the default palettes given in Table 7-5 of the
LJ250/LJ252 Companion Color Printer Programmer Reference Manual
are used. If you modify the color map, the LJLCT procedure can be used to reset the color table to these defaults. LJLCT examines the !D.N_COLORS system variable to determine the number of output planes in use, and then loads the appropriate default color map.
-
When producing images, stick to images with small amounts of detail and large sections of uniform color. Complicated images do not reproduce well on this printer.