Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Chapter 4 - Attributes 67 0 typedef enum SOLID, DOTTED, DASHED, DASHED_DOTTED, DASH_DOT_DOTTED, LONG DASHED Clintype; The default perimeter style is SOLID. Notice that there is no ending style for per- imeter. The endstyle is controlled by the line_endstyle function. As mentioned previously, control of the drawing of the borders of solid objects is under the control of the perimeter attribute functions, not the line attribute func- tions. However, the two sets of functions take the same values. The perimeter attributes are essentially the same as the line attributes except that they affect the borders of solid attributes.

The appearance of a perimeter can be similar to a line especially if interior style is set to HOLLOW. Perimeter attribute functions have no effect if the perimeter visibility is set to OFF. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBTBUNDL [30] ASF is BUNDLED. Q Perimeter Width Cerror perimeter_width(width) Cfloat width; /* perimeter width*/ perimeter _width determines the width of the perimeters of solid objects. index can be expressed in percent of VDC space or pixels.

If the perimeter width specification mode is set to SCALED and the x and y dimensions are different, the perimeter width is calculated on the basis of the range of the x coordinate of VDC space. If the parameter setting would result in a perimeter less than one pixel wide, the perimeter width is displayed as one pixel wide. The default per- imeter width is 0.0 (SCALED). Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBTBUNDL [30] ASF is BUNDLED. EBDWIDTH [34] Width must be nonnegative.

Perimeter Width Specification Mode Cerror perimeter_width_specification_mode(mode) Cspecmode mode; /* pixels or percent*/ perimeter_width_specification_mode allows the perimeter_ width to be specified in pixels or as a percentage of VDC space according to the value of mode (which can either be ABSOLUTE or SCALED). If the perimeter width specification mode is changed from ABSOLUTE to SCALED, the change in the line width will probably be dramatic. The default perimeter width specification mode is SCALED. 0 Version C of 17 March 1986