←Select platform

Inflate(LeadRect,int,int) Method

Summary

Creates and returns an inflated copy of the specified LeadRect structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.

Syntax

C#
VB
Java
C++
public static LeadRect Inflate( 
   LeadRect rect, 
   int x, 
   int y 
) 
Public Overloads Shared Function Inflate( _ 
   ByVal rect As Leadtools.LeadRect, _ 
   ByVal x As Integer, _ 
   ByVal y As Integer _ 
) As Leadtools.LeadRect 
public static LeadRect inflateRect(LeadRect rect, int width, int height) 
public: 
static Leadtools.LeadRect Inflate(  
   Leadtools.LeadRect rect, 
   int x, 
   int y 
)  

Parameters

rect
The LeadRect to be copied. This rectangle is not modified.

x
The amount to inflate the copy of the rectangle along the x-axis.

y
The amount to inflate the copy of the rectangle along the y-axis.

Return Value

The inflated LeadRect structure.

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 50 by 50 rectangle is inflated by 50 in the x-axis, the resulting rectangle will be 150 units long (the original 50, plus the 50 in the minus direction, and plus the 50 in the plus direction). The rectangle's geometric center is maintained.

If either size.Width or size.Height is negative, the LeadRect 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