Changes

Jump to navigation Jump to search

gc:clipRect

66 bytes added, 16:05, 10 June 2012
Line 28: Line 28:  
* '''reset'''        sets the clipping rectangle to include the entire window. The remaining parameters is ignored and can be left out.
 
* '''reset'''        sets the clipping rectangle to include the entire window. The remaining parameters is ignored and can be left out.
 
* '''set'''            sets the clipping rectangle to the x, y coordinates with the specified width and height. The remaining parameters default to the system window location and size.
 
* '''set'''            sets the clipping rectangle to the x, y coordinates with the specified width and height. The remaining parameters default to the system window location and size.
* '''intersect'''  sets the clipping rectangle to the intersection of the current clipping rectangle with the rectangle specified in the routine parameters.
+
* '''intersect'''  sets the clipping rectangle to the intersection of the current clipping rectangle with the rectangle specified in the routine parameters. <u>It has been Removed in platform.apilevel = 2.0 (OS 3.2)</u>
 
* '''null'''          sets the clipping rectangle to empty. All subsequent graphics commands will be ignored.
 
* '''null'''          sets the clipping rectangle to empty. All subsequent graphics commands will be ignored.
 
Typically the “set” operation is called before drawing, say, a text string. It is important to call the “reset” operation after drawing the last clipped graphic so that you don’t leave a lingering clipping rectangle as a side effect.
 
Typically the “set” operation is called before drawing, say, a text string. It is important to call the “reset” operation after drawing the last clipped graphic so that you don’t leave a lingering clipping rectangle as a side effect.

Navigation menu