Skip to main content

ExtendRect

Enlarges the rectangle, specified by R.

Unit

dxLines

procedure ExtendRect(var R: TRect; const P: TPoint);

If a point, specified by P, is outside the rectangle, rectangle coordinates are changed to P coordinates. The following figures illustrate this:

If a point is inside the rectangle, it is not enlarged.

Note

To use this function, you should include:

Lines‘ in the uses section of a unit (for Delphi) or

‘#include Lines.hpp‘ in the header file (for C++ Builder)

See Also