Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

keepaspect(3G)  —  Silicon Graphics

NAME

keepaspect − specifies the aspect ratio of a graphics window

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 window.  Call it at the beginning of a graphics program.  It takes effect when winopen is called.  The resulting graphics window maintains the aspect ratio specified in keepaspect, even if it changes size.  For example, keepaspect(1, 1) always results in a square graphics window.  You can also call keepaspect in conjunction with winconstraints to modify the enforced aspect ratio after the window has been created. 

If winopen is not called, or it the system is not running the window manager, keepaspect is ignored. 

SEE ALSO

fudge, winconstraints, winopen Using mex, Chapter 2, Programming with mex

NOTE

This routine is available only in immediate mode. 

Version 3.6  —  December 20, 1987

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