keepaspect() — Silicon Graphics
NAME
keepaspect - specifies the aspect ratio of a graphics port
SPECIFICATION
C
keepaspect(x, y)
long x, y;
FORTRAN
subroutine keepas(x, y)
integer*4 x, y
Pascal
procedure keepaspect(x, y: longint);
DESCRIPTION
keepaspect specifies the aspect ratio of a graphics port. It is called at the beginning of a graphics program that will be run with the window manager. It takes effect when getport is called. The resulting graphics port will maintain the aspect ratio specified in keepaspect, even if its size is changed. For example, keepaspect(1, 1) always results in a square graphics port. keepaspect may also be called in conjuction with winconstraints to modify the enforced aspect ratio after the port has been created. If getport is not called or if the system is not running the window manager, keepaspect is ignored.
SEE ALSO
getport, fudge, winconstraints
“Multiple Exposure: The IRIS Window Manager” in the IRIS User’s Guide
NOTE
This command can be used only in immediate mode.
Version 2.4 — May 08, 1986