InflateRect
Increase the rectangle in size, keeping it centered
Declaration
Source position: types.pp line 340
function InflateRect(var Rect: TRect; dx: Integer; dy: Integer)
: Boolean;
Description
InflateRect inflates the rectangle horizontally with dx pixels on each side, and vertically with dy pixels, thus keeping its center point on the same location. It returns true if the operation was successfully, False if it was not (only possible if the address of Rect is Nil).
See also
Name | Description |
---|---|
CenterPoint | Return the center point of a rectangle |
IntersectRect | Return the intersection of 2 rectangles |
IsRectEmpty | Check whether a rectangle is empty |
IsRectEmpty | Check whether a rectangle is empty |
OffsetRect | Offset the rectangle |
PtinRect | Check whether a point is inside a rectangle. |
Size | Return the size of the rectangle |