Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_SetViewport Procedure
◄Summary► ◄Details► ◄Example► ◄Back►
Arguments
x1, y1 Upper-left corner of viewport to be set
x2, y2 Lower-right corner of viewport to be set
Description
The _SetViewport procedure redefines the graphics viewport. It
defines a clipping region just as the _SetClipRgn procedure does.
The viewport origin is set to the upper-left corner of the clipping
region. Physical coordinates (x1,y1) and (x2,y2) are the diagonally
opposed corners of the rectangular clipping region.
After a viewport is set, any window transformation done with
_SetWindow applies only to the viewport, not to the entire screen.
_GrStatus Returns
_GrNotInProperMode, _GrParameterAltered