Graphics.getPixel

Overview | Methods | This Package | All Packages

Graphics.getPixel

Retrieves the color of the specified pixel.

Syntax

public final Color getPixel( Point pt )

public final Color getPixel( int x, int y )

Parameters

pt

A Point object that specifies the pixel to retrieve.

x

The x-coordinate of the pixel to get.

y

The y-coordinate of the pixel to get.

Return Value

Returns a Color object that describes the color of the pixel.

See Also   setPixel