| United States-English |
|
|
|
![]() |
HP-UX Starbase Device Drivers Manual - Vol2: HP 9000 Series 700 Computers > Chapter 5 Computer Graphics Metafile To Open and Initialize for Output |
|
The following examples open and initialize the hpcgm driver and put the metafile into a file named ex.cgm: The gopen procedure has four parameters: path, kind, driver, and mode.
There are a number of driver options that may be manipulated with the gescape function. See the “Parameters for gescape ” section in this driver for the defaults and options. While the hpcgm driver produces a metafile with color selection mode direct (RGB). It also maintains an internal color map to convert indexes to RGB. This map has 256 entries and is initialized to the default values shown below. Table 5-1 Default Color Table
Selection of TOP mode (see CGMESC_TOP_MODE gescape later in this driver) changes the value of the default color table. Table 5-2 Top Mode Default Color Table
* Index numbers 8 through 255 repeat the colors listed in index 0-7. When INIT is used in the shade_mode procedure call, the color map initialization is based on the value of the mode parameter.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||