Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

Chapter 4 -Attributes 59 0 Cerror line_width_specification_mode(mode) Cspecmode mode; /* pixels or percent*/ line width specification mode allows the line width to be specified in pixels or as a percentageof voc space according to the value of mode The enumerated type Cspecmode contains values that correspond to line width specification modes. typedef enum { . ABSOLUTE, SCALED Cspecmode; If the line width specification mode is changed from ABSOLUTE to SCALED, the change in the line width will probably be dramatic. The default line width specification mode is SCALED. If multiple view surfaces are active, the line width is scaled separately for each view surface.

Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. Line Width 0 Cerror line_width(index) Cfloat index; /* line width*/ line_ width determines the width of the lines composing poly lines, circular arcs, etc. If the line width specification mode is SCALED, index is expressed in percent of voc space and if the x and y dimensions are different, the width is calculated on the basis of the range of the x coordinate of VDC space. If the parameter setting would result in a line less than one pixel wide, the line width is displayed as one pixel wide. The default line width is 0.0 (SCALED).

Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBTBUNDL [30] ASP is BUNDLED. EBDWIDTH [34] Width must be nonnegative. Line Color Cerror line_color(index) Cint index; /* line color*/ line_color determines the color of the lines. index selects an entty in the color lookup table. The default value of index is 1. An error is detected if index is not between O and 255. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. 0 EBTBUNDL [30] ASP is BUNDLED. ECINDXLZ [35] Color index is less than zero. Version C of 17 March 1986