IGxSizeF.Reduce

Syntax

Reduce(DX: Double; DY: Double);

Parameters

DX. Change by width.

DY. Change by height.

Description

The Reduce method decreases size by the specified width and height values.

Example

Sub UserProc;
Var
    Size: IGxSizeF;
Begin
    Size := New GxSizeF.Create(Math.RandBetween(060), Math.RandBetween(060));
    Size.Reduce(10.510.5);
    Debug.WriteLine("New width: " + Size.Width.ToString + ". New height: " + Size.Height.ToString);
End Sub UserProc;

After executing the example a real size with random width and height is created. Then the size will be decreased. The obtained width and height of the size is displayed in the development environment console.

See also:

IGxSizeF