Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gsfrec(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

gsfrec

Purpose

     Draws a filled rectangle.

C Syntax

     int gsfrec_ (x1, y1, x2, y2)

     int *x1, *y1, *x2, *y2;

FORTRAN Syntax

     INTEGER function gsfrec (x1, y1, x2, y2)

     INTEGER x1, y1, x2, y2

Pascal Syntax

     FUNCTION gsfrec_ (

     VAR x1, y1, x2, y2: INTEGER
     ): INTEGER [PUBLIC|;

Description

     The gsfrec subroutine fills  the rectangular area defined
     by  the lower  leftmost  and  upper rightmost  coordinate
     parameters, with the color determined by the last call to
     the gsfatt subroutine.

     The relevant attributes are:

     o   Color map
     o   Plane mask
     o   Fill color index
     o   Fill pattern index
     o   Logical operation.

     Parameters

     x1, y1    Define the lower left corner of the rectangular
               area to fill.

     x2, y2    Define the  upper right  corner of  the rectan-
               gular area to fill.

     The edges  of the  rectangle are treated  as part  of the
     area to be filled.

     The fill pattern  does not meet the border  of the filled
     area on printers and plotters.

Return Value

     GS_SUCC   Successful.
     GS_CORD   Invalid coordinate.
     GS_INAC   Virtual terminal inactive.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026