Graphics.intersectWithClip

Overview | Methods | This Package | All Packages

Graphics.intersectWithClip

Sets the clipping region for this object to include the area of this object's clipping region that intersects with a specified rectangle or region.

Syntax

public final void intersectWithClip( Rectangle rect )

public final void intersectWithClip( int x1, int y1, int width, int height )

public final void intersectWithClip( Region region )

Parameters

rect

A Rectangle object that specifies the rectangular area to intersect with this object's clipping region.

x

The x-coordinate of the rectangle to intersect with the clipping region.

y

The y-coordinate of the rectangle to intersect with the clipping region.

width

The width of the rectangle to intersect with the clipping region.

height

The height of the rectangle to intersect with the clipping region.

region

A Region object that specifies the region to intersect with this object's clipping region.