Rectangle.intersect

Overview | Methods | Fields | ThisPackage | All Packages

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.