Graphics.ClearRect

From Real Software Documentation

Jump to: navigation, search
Method
Graphics.ClearRect ( X as Integer, Y as Integer, Width as Integer, Height as Integer )

Clears the rectangle described by the parameters passed by filling it with the background color of the parent window.


Example

This example draws a rectangle. The second line shows how to clear it.

g.DrawRect(130,10,100,100) //draws the square
g.ClearRect(130,10,100,100) //erases the square
Personal tools