LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Inflate(Int32,Int32) Method
See Also 
Leadtools Namespace > LeadRect Structure > Inflate Method : Inflate(Int32,Int32) Method



width
The amount to inflate this LeadRect horizontally.
height
The amount to inflate this LeadRect vertically.
width
The amount to inflate this LeadRect horizontally.
height
The amount to inflate this LeadRect vertically.
Inflates a LeadRect structure by the specified amount. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Inflate( _
   ByVal width As Integer, _
   ByVal height As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As LeadRect
Dim width As Integer
Dim height As Integer
 
instance.Inflate(width, height)
C# 
public void Inflate( 
   int width,
   int height
)
C++/CLI 
public:
void Inflate( 
   int width,
   int height
) 

Parameters

width
The amount to inflate this LeadRect horizontally.
height
The amount to inflate this LeadRect vertically.

Remarks

This method inflates this rectangle, 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 structure is deflated in the corresponding direction.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also