IGxRect.Deflate

Syntax

Deflate(DX: Integer; DY: Integer);

Parameters

DX. Change by width.

DY. Change by height.

Description

The Deflate method decreases integer rectangle size by the specified width and height values.

Example

Sub UserProc;
Var
    Rect: IGxRect;
Begin
    Rect := New GxRect.Create(00, Math.RandBetweenI(060), Math.RandBetweenI(060));
    Rect.Deflate(1010);
    Debug.WriteLine("New width: " + Rect.Width.ToString + ". New height: " + Rect.Height.ToString);
End Sub UserProc;

After executing the example a rectangle with random size is created. Then the rectangle's size is decreased. The obtained rectangle width and height are displayed in the development environment console.

See also:

IGxRect