Sign in Join
FPDoc Onlineexperiment

SetViewPort procedure

In unit Graph

Set the graphical drawing window.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.