help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

SetViewPort

Set the graphical drawing window

Declaration

Source position: graphh.inc line 708

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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505