←Select platform

Normalize(LeadRect) Method

Summary
Gets the normalized version of a rectangle so that both the height and width are positive.
Syntax
C#
C++/CLI
Java
Python
public static LeadRect Normalize( 
   LeadRect rect 
) 
public static LeadRect normalize( 
   LeadRect rect 
); 
public: 
static LeadRect Normalize(  
   LeadRect rect 
)  
def Normalize(self,rect): 

Parameters

rect
LeadRect

Return Value

LeadRect

Remarks

This method compares the top and bottom values, and swaps them if the top is greater than the bottom. Similarly, it swaps the left and right values if the left is greater than the right. This method is useful when dealing with different mapping modes and inverted rectangles.

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.