Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

EraseRect

Fill a defined rectangular area using the current BackFill hook.

Declaration

Source position: agraphics.pas line 2302

procedure EraseRect(

  rp: pRastPort;

  xMin: LongInt;

  yMin: LongInt;

  xMax: LongInt;

  yMax: LongInt

);

Arguments

rp

  

A 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.

Description

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 ^.BackFill Hook is used. The following relation must be true: (xmax >= xmin) and (ymax >= ymin)


Documentation generated on: 2021-07-30