inflate Method

Summary

Inflates this LeadRectD by the specified amount.

Syntax
TypeScript
JavaScript
LeadRectD.prototype.inflate = function( 
   width, 
   height 
) 
inflate( 
   width: number, 
   height: number 
): void; 

Parameters

width

The amount to inflate this LeadRectD horizontally.

height

The amount to inflate this LeadRectD vertically.

Remarks

This method inflates the rectangle itself, not a copy of it. The inflation along an axis is in two directions (negative direction and positive 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 plus the 50 in the negative direction, and the 50 in the positive 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

Help Version 23.0.2024.2.29
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.