IGxRectF.Deflate

Syntax

Deflate(DX: Double; DY: Double);

Parameters

DX. Change by width.

DY. Change by height.

Description

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

Example

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

After executing the example a real 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:

IGxRectF