Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.setClip

Sets the clipping region for this Graphics object to the specified rectangle.

Syntax

public final void setClip( Rectanglerect**)**

public final void setClip( intx, int y, int width, int height**)**

public final void setClip( Regionregion**)**

Parameters

rect

A Rectangle object that specifies the clipping region's coordinates.

x

The x-coordinate of the clipping region.

y

The y-coordinate of the clipping region.

width

The width of the clipping region.

height

The height of the clipping region.

region

A Region object that specifies the clipping region.

See Also   getClip