keepaspect Subroutine

Purpose

Libraries

C Syntax

FORTRAN Syntax

SUBROUTINE KEEPAS(x, y)INTEGER*4 x, y

Description

The keepaspect subroutine specifies the
aspect ratio of a
window. It is called at the beginning of a graphics program, but only takes effect when the winopen subroutine is called. The resulting window maintains the aspect ratio specified in the keepaspect subroutine, even if the window changes size.

For example, keepaspect(1,1) always results in a square window. The keepaspect subroutine can also be called in conjunction with the winconstraints subroutine to modify the enforced aspect ratio after the window is created.

With the keepaspect subroutine, the programmer can prevent the user from resizing a window to an aspect ratio that is different from the specified ratio.