InflateS(Size: IGxSize);
Size. The size, by which increase should be executed.
The InflateS method increases the integer rectangle by the specified size.
Sub UserProc;
Var
Rect: IGxRect;
Size: IGxSize;
Begin
Rect := New GxRect.Create(0, 0, Math.RandBetweenI(0, 60), Math.RandBetweenI(0, 60));
Size := New GxSize.Create(10, 10);
Rect.InflateS(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 increased by the created size. The obtained rectangle width and height are displayed in the development environment console.
See also: