←Select platform

Inflate(int,int) Method

Summary
Inflates a LeadRect structure by the specified amount.
Syntax
C#
C++/CLI
Java
Python
public void Inflate( 
   int width, 
   int height 
) 
public void inflate( 
   int intValue,  
   int intValue2 
); 
public: 
void Inflate(  
   int width, 
   int height 
)  
def Inflate(self,width,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

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.