SetViewPort

Set the graphical drawing window

Declaration

Source position: graphh.inc line 747

  procedure SetViewPort(X1: SmallInt; Y1: SmallInt; X2: SmallInt; 
                       Y2: SmallInt; Clip: Boolean);

Description

Sets the current graphical viewport (window) to the rectangle defined by the top-left corner (X1,Y1) and the bottom-right corner (X2,Y2). If Clip is true, anything drawn outside the viewport (window) will be clipped (i.e. not drawn). Coordinates specified after this call are relative to the top-left corner of the viewport.

Errors

None.

See also

Name Description
GetViewSettings Return current viewport