←Select platform

Inflate Method (LeadRectHelper)

Summary

Inflates a LeadRect by the specified amount.

Syntax

C#
VB
WinRT C#
C++
Public Shared Function Inflate( _ 
   ByVal rect As Leadtools.LeadRect, _ 
   ByVal size As Leadtools.LeadSize _ 
) As Leadtools.LeadRect 
 function Leadtools.LeadRectHelper.Inflate(  
   rect , 
   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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly