keepaspect(3G) keepaspect(3G)
keepaspect - specifies the aspect ratio of a graphics window
void keepaspect(x, y)
long x, y;
x expects the horizontal proportion of the aspect ratio. The value must
be between 1 and 32767 (0x7fff), inclusive.
y expects the vertical proportion of the aspect ratio. The value must
be between 1 and 32767 (0x7fff), inclusive.
keepaspect specifies the aspect ratio of a graphics window. Call it at
the beginning of a graphics program. It takes effect when you call
winopen. 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.
fudge, winconstraints, winopen
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|