Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.fill

Fills a specified area of the display with the current  or specified brush.

Syntax

public final void fill(Rectanglerc**)**

public final void fill(intx, inty, intwidth, intheight**)**

public final void fill(Rectanglerc, Brushbrush**)**

public final void fill( intx, int y, intwidth, intheight, Brushbrush**)**

public final void fill(Rectanglerc, Brushbr, RasterOpop**)**

public final void fill( int x**, int** y**, int** width**, int** height**, Brush** brush**, RasterOp** op )

public final void fill( Region region )

public final void fill( Region region**, Brush** brush )

Parameters

rc

A Rectangle object that specifies the area to fill.

x

The x-coordinate of the rectangle to fill.

y

The y-coordinate of the rectangle to fill.

width

The width of the rectangle to fill.

height

The height of the rectangle to fill.

brush

A Brush object that specifies the brush to use to fill the area.

op

A RasterOp object that describes how to fill the specified area.

region

A Region object that specifies the area to fill.

See Also   floodFill