IGxRectF.InflateS

Syntax

InflateS(Size: IGxSizeF);

Parameters

Size. The size, by which it is necessary to increase.

Description

The InflateS method increases the integer rectangle by the specified size.

Example

Sub UserProc;
Var
    Rect: IGxRectF;
    Size: IGxSizeF;
Begin
    Rect := New GxRectF.Create(00, Math.RandBetween(060), Math.RandBetween(060));
    Size := New GxSizeF.Create(1010);
    Rect.InflateS(Size);
    Debug.WriteLine("New width: " + Rect.Width.ToString + ". New height: " + Rect.Height.ToString);
End Sub UserProc;

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

See also:

IGxRectF