A fill area is a polygon that can be hollow or painted with a color,
pattern, or hatch style. You define a fill area by specifying the
vertices of the polygon that encloses it, and calling the Fill area (GFA)
output function. You can set the following fill area attributes:
- Fill area color index (Set fill area color index (GSFACI))
- Fill area interior style (Set fill area interior style (GSFAIS))
- Fill area style index (Set fill area style index (GSFASI))
You choose the fill area color from among the predefined colors your
display device supports, or from color representations you define in the
Set color representation (GSCR) function. When you choose an interior
style, you decide whether the area is to be outlined (hollow style),
filled solidly, or painted with a pattern or hatch style. When you choose
a style index, you are choosing among the available device-dependent
patterns or from the range of six hatch styles provided by GDDM-GKS:
The following example draws an arrow, fills it with solid color, and adds
it to the previous example. The points of the three vertices are put into
arrays, and the Fill area (GFA) function is called.
X array = (26.0,24.0,24.0,22.0,25.0,28.0,26.0,26.0)
Y array = (63.0,63.0,53.0,53.0,50.0,53.0,53.0,63.0)
SET FILL AREA INTERIOR STYLE (1)
FILL AREA (8, X array, Y array)
This sequence produces the following output:
|