←Select platform

InflateRect Method

Summary

Returns the rectangle that results from expanding the specified rectangle by the specified width and height, in all directions.

Syntax

C#
VB
Java
C++
public static Leadtools.LeadRectD InflateRect(  
   Leadtools.LeadRectD rect, 
   double width, 
   double height 
) 
Public Shared Function InflateRect( _ 
   ByVal rect As Leadtools.LeadRectD, _ 
   ByVal width As Double, _ 
   ByVal height As Double _ 
) As Leadtools.LeadRectD 
public static LeadRectD inflateRect(LeadRectD rect, double width, double height) 
public: 
static Leadtools.LeadRectD InflateRect(  
   Leadtools.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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools Assembly
Click or drag to resize