LEADTOOLS (Leadtools assembly)

InflateRect Method

Show in webframe







The rectangle to modify
Specifies the amount to increase the rectangle's Left and Right properties.
Specifies the amount to increase the rectangle's Top and Bottom properties.
Returns the rectangle that results from expanding the specified rectangle by the specified width and height, in all directions.
Syntax
public static LeadRectD InflateRect( 
   LeadRectD rect,
   double width,
   double height
)
'Declaration
 
Public Shared Function InflateRect( _
   ByVal rect As LeadRectD, _
   ByVal width As Double, _
   ByVal height As Double _
) As LeadRectD
'Usage
 
Dim rect As LeadRectD
Dim width As Double
Dim height As Double
Dim value As LeadRectD
 
value = LeadRectD.InflateRect(rect, width, height)
public static LeadRectD InflateRect( 
   LeadRectD rect,
   double width,
   double height
)

            

            
 function Leadtools.LeadRectD.InflateRect( 
   rect ,
   width ,
   height 
)
public:
static LeadRectD InflateRect( 
   LeadRectD rect,
   double width,
   double height
) 

Parameters

rect
The rectangle to modify
width
Specifies the amount to increase the rectangle's Left and Right properties.
height
Specifies the amount to increase the rectangle's Top and Bottom properties.
Remarks

The Width of the resulting rectangle is increased by twice the width value, because both the left and right sides of the rectangle are inflated. Likewise, the Height of the resulting rectangle is increased by twice the height value.

Requirements

Target Platforms

See Also

Reference

LeadRectD Structure
LeadRectD Members

 

 


Products | Support | Contact Us | Copyright Notices

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