IGxRect.DeflateS

Syntax

DeflateS(Size: IGxSize);

Parameters

Size. The size, by which decrease is executed.

Description

The DeflateS method decreases the integer rectangle by the specified size.

Example

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

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

See also:

IGxRect