System.Types.InflateRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InflateRect(var R: TRectF; const DX, DY: Single);
procedure InflateRect(var R: TRect; const DX, DY: Integer);

C++

extern DELPHI_PACKAGE void __fastcall InflateRect(TRectF &R, const float DX, const float DY)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Types.pas
System.Types.hpp
System.Types System.Types

Description

Enlarges a rectangle by a specific amount.

InflateRect inflates the rectangle's Width by subtracting DX from the Left side and adding DX to the Right side.

InflateRect inflates the rectangle's Height by subtracting DY from the Top side and adding DY to the Bottom side.

See Also

Code Examples