42 SunCGI Reference Manual ending points of the arc. An error is generated (and the ellipse is not drawn) if 0 the points (sx, sy, and ex, ey) are not on the perimeter of the ellipse. Elliptical arcs are drawn in a counterclockwise manner. This convention is used to deter- mine the difference between the arc formed by the obtuse angle determined by cl .x, cl .y, sx, sy, and ex, ey and the acute angle specified by these same points. Therefore switching the values of sx, sy and ex, ey will produce complementary arcs. If either majx or miny are zero, a line is drawn. If both majx and miny are zero, a point is drawn. Polyline attributes are used to determine the appearance of elliptical arcs.
Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EARCPNEL (65] A~ points do not lie on ellipse. Elliptical Arc Close Cerror elliptical_arc_close(cl, sx, sy, ex, ey, majx, miny, close) Ccoor *cl;/* center*/ Cint sx, sy; /* starting point of arc*/ Cint ex, ey: I* ending point of arc*/ Cint majx, miny; /* endpoints of major and minor axes*/ Cclosetype close; /* PIE or CHORD *I elliptical_ arc_ close draws an elliptical arc specified by sx, sy, ex, ey and majx, miny. The arc is closed with either the PIE or CHORD algorithm. The Q same restrictions on sx, sy, ex, and ey are applied to elliptical_arc_close as to elliptical_arc.
However, elliptical_arc_close uses the fill area and perimeter attributes, whereas elliptical_arc uses the line attributes. If either majx or miny are zero, a line is drawn. If both majx and miny are zero, a point is drawn. In neither of these cases will any region be filled. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. EARCPNEL [65] Arc points do not lie on ellipse. 3.2. Raster Primitives Raster primitives include text, cell arrays, pixel arrays, and bitblts (bit block transfer). Bitblts are pixel arrays (bitmaps) which can be drawn using the various drawing modes.
The current drawing mode determines how bitblt primitives are affected by information which is already on the screen. Raster primitives differ from geometrical primitives because their dimensions are not necessarily expressed in VDC space. Therefore, you must be careful to consider whether position arguments are expressed in VDC space or screen coordinates. Text Cerror text(cl, tstring) Ccoor *cl; /* starting point of text (in VDC space) */ Cchar *tstring; /*text*/ text displays the text contained in tstring at point cl (expressed in VDC space). The appearance of text is controlled by the text attributes described in Section 0 V mion C of 17 March 1986