DeflateS(Size: IGxSizeF);
Size. Size, by which it is necessary to decrease.
The DeflateS method decreases the real rectangle by the specified size.
Sub UserProc;
Var
Rect: IGxRectF;
Size: IGxSizeF;
Begin
Rect := New GxRectF.Create(0, 0, Math.RandBetween(0, 60), Math.RandBetween(0, 60));
Size := New GxSizeF.Create(10, 10);
Rect.DeflateS(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 decreased by the specified size. The obtained rectangle width and height are displayed in the development environment console.
See also: