GSFATT(3g,L) AIX Technical Reference GSFATT(3g,L)
-------------------------------------------------------------------------------
gsfatt
PURPOSE
Sets the fill attributes.
C SYNTAX
int gsfatt_ (color, pattern, reserved)
int *color, *pattern, *reserved;
FORTRAN SYNTAX
INTEGER function gsfatt (color, pattern, reserved)
INTEGER color, pattern, reserved
PASCAL SYNTAX
FUNCTION gsfatt_ (
VAR color, pattern, reserved: INTEGER
): INTEGER [PUBLIC];
DESCRIPTION
The gsfatt subroutine defines the attributes for the class of fill functions,
which includes gsfci, gsfell, gsfrec, and gsfply.
Parameters
color Refers to an entry in the color map. If color is -1, the attribute is
unchanged. The default color after initialization is 7, white.
pattern Contains a value from the following list:
Value Display Printer or Plotter
-1 No change No change
0 Solid Solid
1 Horizontal lines Narrow right diagonal lines
2 Vertical lines Medium right diagonal lines
3 135-degree lines Wide right diagonal lines
4 45-degree lines Narrow diagonal cross-hatched
5 Cross-hatched (horizontal Medium diagonal cross-hatched
and vertical lines)
6 Cross-hatched (45- and Wide diagonal cross-hatched
135-degree lines)
Processed November 7, 1990 GSFATT(3g,L) 1
GSFATT(3g,L) AIX Technical Reference GSFATT(3g,L)
The default pattern is solid (0).
Some printers and plotters support additional fill patterns that can
be selected with a pattern index greater than 6. If the device you
are using does not support additional fill patterns and you specify a
pattern index greater than 6, then the gsfatt subroutine returns the
value GS_SYLI.
reserved Represents a parameter that gsfatt ignores.
RETURN VALUE
GS_SUCC Successful.
GS_COLI Invalid color index.
GS_SYLI Invalid style index.
Processed November 7, 1990 GSFATT(3g,L) 2