Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.invert

Inverts the pixels in the specified rectangle.

Syntax

public final void invert( Rectangle rect )

public final void invert( int x**, int** y**, int** width**, int** height )

public final void invert( Region region )

Parameters

rect

A Rectangle object that specifies the rectangle to invert.

x

The x-coordinate of the rectangle to invert.

y

The y-coordinate the rectangle to invert.

width

The width of rectangle.

height

The height of rectangle.

region

A Region object that specifies the region to invert.

Remarks

The invert method performs the inversion by performing a logical NOT operation on every pixel in the specified rectangle's interior.