Docs » Autodocs » graphics.library » EraseRect
EraseRect -- Fill a defined rectangular area using the current BackFill hook. (V36)
EraseRect( rp, xmin, ymin, xmax, ymax) a1 d0:16 d1:16 d2:16 d3:16 void EraseRect(struct RastPort *, SHORT, SHORT, SHORT, SHORT);
Fill the rectangular region specified by the parameters with the BackFill hook. If non-layered, the rectangular region specified by the parameters is cleared. If layered the Layer->BackFill Hook is used.
rp - pointer to a RastPort structure xmin - x coordinate of the upper left corner of the region to fill. ymin - y coordinate of the upper left corner of the region to fill. xmax - x coordinate of the lower right corner of the region to fill. ymax - y coordinate of the lower right corner of the region to fill.
The following relation MUST be true: (xmax >= xmin) and (ymax >= ymin)
<graphics/rastport.h>, <graphics/clip.h>
|