Search
Rect.fromLTRB Method
See Also
 





Creates a Rect object with the specified edge locations.

Namespace: MindFusion.Drawing
Package: Rect.js

 Syntax

JavaScript  Copy Code

function fromLTRB (l, t, r, b)

 Parameters

l

Number. The x-coordinate of the upper-left corner of this Rect.

t

Number. The y-coordinate of the upper-left corner of this Rect.

r

Number. The x-coordinate of the lower-right corner of this Rect.

b

Number. The y-coordinate of the lower-right corner of this Rect.

 Return Value

Rect. A rectangle with the specified coordinates.

 See Also