Important: The information in this document is obsolete and should not be used for new development.
EraseRect
To erase a rectangle, use theEraseRectprocedure.
PROCEDURE EraseRect (r:\xDDRect);
r- The rectangle to erase.
DESCRIPTION
Using thepatCopypattern mode, theEraseRectprocedure draws the interior of the rectangle that you specify in therparameter with the background pattern for the current graphics port. This effectively erases the rectangle specified in therparameter. For example, you can useEraseRectto erase the port rectangle for a window before redrawing into the window.This procedure leaves the location of the graphics pen unchanged.
SPECIAL CONSIDERATIONS
TheEraseRectprocedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
Listing 6-2 on page 6-10 in the chapter "Offscreen Graphics Worlds" in this book illustrates how to useEraseRectto initialize an offscreen pixel map. ThepatCopypattern mode is described in "Boolean Transfer Modes With 1-Bit Pixels" beginning on page 3-7.