LEADTOOLS (Leadtools assembly)

Inflate Method (LeadRectHelper)

Show in webframe







The rectangle object.
The amount to inflate this LeadRect horizontally and vertically.
Inflates a LeadRect by the specified amount.
Syntax
public static LeadRect Inflate( 
   LeadRect rect,
   LeadSize size
)
'Declaration
 
Public Shared Function Inflate( _
   ByVal rect As LeadRect, _
   ByVal size As LeadSize _
) As LeadRect
'Usage
 
Dim rect As LeadRect
Dim size As LeadSize
Dim value As LeadRect
 
value = LeadRectHelper.Inflate(rect, size)
public static LeadRect Inflate( 
   LeadRect rect,
   LeadSize size
)

            

            
 function Leadtools.LeadRectHelper.Inflate( 
   rect ,
   size 
)
public:
static LeadRect Inflate( 
   LeadRect rect,
   LeadSize size
) 

Parameters

rect
The rectangle object.
size
The amount to inflate this LeadRect horizontally and vertically.

Return Value

The result rectangle.
Remarks

This method inflates the rectangle itself, not a copy of it. The inflation along an axis is in two directions (minus direction and plus 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 minus direction, and the 50 in the plus direction) maintaining the rectangle's geometric center. If either width or height is negative, the rectangle is deflated in the corresponding direction.

Requirements

Target Platforms

See Also

Reference

LeadRectHelper Class
LeadRectHelper Members

 

 


Products | Support | Contact Us | Copyright Notices

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