RECTANGLE(3G)
NAME
rectangle − defines a rectangular region to be filled and/or edged.
SYNOPSIS
C SYNTAX
void rectangle(fildes,x1,y1,x2,y2);
int fildes;
float x1,y1,x2,y2;
void dcrectangle(fildes,dcx1,dcy1,dcx2,dcy2);
int fildes,dcx1,dcy1,dcx2,dcy2;
FORTRAN77 SYNTAX
subroutine rectangle(fildes,x1,y1,x2,y2)
integer*4 fildes
real x1,y1,x2,y2
subroutine dcrectangle(fildes,dcx1,dcy1,dcx2,dcy2)
integer*4 fildes,dcx1,dcy1,dcx2,dcy2
PASCAL SYNTAX
procedure rectangle(fildes:integer;x1,y1,x2,y2:real);
procedure dcrectangle(fildes,dcx1,dcy2,dcx2,dcy2:integer);
HP-UX COMPATIBILITY
Level: HP-UX/STANDARD
Origin: ANSI Computer Graphics Interface
DESCRIPTION
INPUT PARAMETERS
fildes
is an integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
x1,y1
is the first corner of the rectangle in World Coordinates.
x2,y2
is the second corner of the rectangle in World Coordinates.
dcx1,dcy1
is the first corner of the rectangle in Device Coordinates.
dcx2,dcy2
is the second corner of the rectangle in Device Coordinates.
DISCUSSION
A boundary of a rectangular region is defined by defining the opposite corners of the rectangle. If the transform mode has been set to 3d, the z value used is that of the current position.
It is filled and/or outlined according to the current interior style. rectangle uses the current fill color and perimeter attributes. As with all output primitives it is affected by the current drawing mode and write enable.
No clipping nor transformations are performed on Device Coordinate procedures.
Device Coordinate Current Pen Position and World Device Coordinate Current Pen Position are not related. If you are mixing the two coordinate systems, always begin the use of either system with a move to a known location before you proceed with your work.
SEE ALSO
drawing_mode(3g), fill_color(3g), perimeter_color(3g), perimeter_type(3g), perimeter_repeat_length(3g), polygon(3g), write_enable(3g).
Hewlett-Packard — last mod. May 11, 2021