Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.setPixel

Sets a pixel to the specified color.

Syntax

public final void setPixel( Point pt**)**

public final void setPixel( Pointpt, Colorcolor**)**

public final void setPixel( Pointpt, Colorcolor, RasterOpop**)**

public final void setPixel( intx, inty**)**

public final void setPixel( intx, inty, Colorcolor**)**

public final void setPixel( intx, inty, Colorcolor, RasterOpop )

Parameters

pt

A Point object that specifies the pixel to set.

color

A Color object that describes the color to which to set the pixel.

op

A RasterOp object that describes how to render the pixel.

x

The x-coordinate of the pixel to set.

y

The y-coordinate of the pixel to set.

Remarks

If your call to this method specifies no color, the method uses the current text color set on this object.

See Also getPixel