Deflates rectangle by moving its sides toward its center.

syntaxSyntax:
DlxRect.Deflate(x, y)
DlxRect.Deflate(l, b, r, t)

Parameters

Parameter Description
x Specifies the number of units to deflate the left and right sides of rectangle.
y Specifies the number of units to deflate the top and bottom of rectangle.
l Specifies the number of units to deflate the left side of rectangle.
b Specifies the number of units to deflate the bottom of rectangle.
r Specifies the number of units to deflate the right side of rectangle.
t Specifies the number of units to deflate the top of rectangle.

Return Value

If the operation ends correctly, it returns true otherwise it returns false.

Example

  Copy codeCopy code
var r = new DlxRect(10, 20, 80, 100);
r.Deflate(5, 2);
DlxApp.Printf("r.left=%.2f, r.bottom=%.2f, r.right=%.2f, r.top=%.2f", r.left, r.bottom, r.right, r.top);

See also