INCLAN Graphics: plot clip: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Synopsis == | == Synopsis == | ||
'''clip '' | '''clip ''x''<sub>1</sub> ''y''<sub>1</sub> ''x''<sub>2</sub> ''y''<sub>2</sub>''' | ||
'''clip off''' | '''clip off''' | ||
Line 9: | Line 9: | ||
The '''clip''' command draws draws a rectangle with corners (''x''<sub>1</sub>,''y''<sub>1</sub>), (''x''<sub>1</sub>,''y''<sub>2</sub>), (''x''<sub>2</sub>,''y''<sub>1</sub>) and (''x''<sub>2</sub>,''y''<sub>2</sub>) sets the current clipping path to its border. Subsequent drawing commands will only draw within this rectangular area. | The '''clip''' command draws draws a rectangle with corners (''x''<sub>1</sub>,''y''<sub>1</sub>), (''x''<sub>1</sub>,''y''<sub>2</sub>), (''x''<sub>2</sub>,''y''<sub>1</sub>) and (''x''<sub>2</sub>,''y''<sub>2</sub>) sets the current clipping path to its border. Subsequent drawing commands will only draw within this rectangular area. | ||
In the form "clip off", the command resets the clipping path. After this command, graphics will no longer be confined | In the form "clip off", the command resets the clipping path. After this command, graphics will no longer be confined to the rectangular area specified in a previous '''clip''' command. | ||
to the rectangular area specified in a previous clip command. |
Revision as of 11:04, 13 August 2009
Synopsis
clip x1 y1 x2 y2
clip off
Description
The clip command draws draws a rectangle with corners (x1,y1), (x1,y2), (x2,y1) and (x2,y2) sets the current clipping path to its border. Subsequent drawing commands will only draw within this rectangular area.
In the form "clip off", the command resets the clipping path. After this command, graphics will no longer be confined to the rectangular area specified in a previous clip command.