[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Graph' (#rtl)

SetViewPort

Set the graphical drawing window

Declaration

Source position: graphh.inc line 741

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

GetViewSettings

  

Return current viewport


Documentation generated on: Mar 17 2017