NEC CP/M-86 System Reference Manual page 158

Advanced personal computer
Table of Contents

Advertisement

GSX-86: Graphics for the
APe
9-26
FILLED AREA
This operation fills a polygon specified by the input array with the current fill color.
The correct color, fill interior style (Hollow, Solid, Pattern or Hatch) and fill style
index must be in effect before doing the fill.
If the device cannot do area fill, it must at least outline the polygon in the current fill
color. The device driver must insure that the fill area is closed by connecting the first
point to the last point.
Input
Output
GELLARRAY
contrI(l )
contrI(2)
ptsin
contrI(3)
Opcode
=
9
Number of vertices in polygon
Array of coordinates of polygon in device
units
ptsin( 1) -- X-coordinate of first point
ptsin(2) -- Y -coordinate of first point
ptsin(3) -- X-coordinate of second point
ptsin( 4) -- Y -coordinate of second point
ptsin(2n -1)
ptsin(2n)
o
X-coordinate of last point
Y-coordinate of last point
The Cell Array operation causes the device to draw a rectangular array which is
defined by the input parameter X, Y coordinates and the color index array.
The extents of the cell are defined by the lower left-hand and the upper right-hand X,
Y coordinates. Within the rectangle defined by those points, the color index array
specifies colors for individual components of the cell.
Each row of the color index array should be expanded to fill the entire width of the
rectangle specified if necessary, via pixel replication. Each row of the color index
array should also be replicated the appropriate number of times to fill the entire
height of the rectangular area.
If the device cannot do cell arrays it must at least outline the area in the current line
color.

Advertisement

Table of Contents
loading

Table of Contents