Overview | Methods | This Package | All Packages
Sets a pixel to the specified color.
Syntax
public final void setPixel( Point pt )
public final void setPixel( Point pt, Color color )
public final void setPixel( Point pt, Color color, RasterOp op )
public final void setPixel( int x, int y )
public final void setPixel( int x, int y, Color color )
public final void setPixel( int x, int y, Color color, RasterOp op )
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