LEADTOOLS JavaScript (Leadtools)
LEAD Technologies, Inc

InflateRect Method

The rectangle to inflate.
The amount to inflate this rect horizontally.
The amount to inflate this rect vertically.
Returns a LeadRectD resulting from inflating the specified rectangle by the specified amount.
Syntax
 function Leadtools.LeadRectD.inflateRect( 
   rect ,
   width ,
   height 
)

Parameters

ParameterTypeDescription
rectLeadRectDThe rectangle to inflate.
widthdoubleThe amount to inflate this rect horizontally.
heightdoubleThe amount to inflate this rect vertically.
Remarks

The inflation along an axis is in two directions (negative direction and positive direction). For example, if a 150 by 150 rectangle is inflated by 50 in the x-axis, the resulting rectangle will be 250 units long (the original 150, the 50 in the negative direction, and the 50 in the positive direction) maintaining the rectangle's geometric center. If either width or height is negative, the rectangle is deflated in the corresponding direction.

See Also

Reference

LeadRectD Object
LeadRectD Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.