Microsoft SDK for Java

Rectangle.intersect

Retrieves a Rectangle object that represents the intersecting area of two specified rectangles.

Syntax

public static Rectangle intersect( Rectangle lpRect1, Rectangle lpRect2 )

Parameters

lpRect1

A Rectangle object that specifies the rectangle to be compared to lpRect2.

lpRect2

A Rectangle object that specifies the rectangle to be compared to lpRect1.

Return Value

Returns a Rectangle object that represents the intersecting area of lpRect1 and lpRect2.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.