Graphics.getNearestColor

Overview | Methods | This Package | All Packages

Graphics.getNearestColor

Retrieves the closest solid color that the hardware will use for the specified color.

Syntax

public final Color getNearestColor( Color color )

Parameters

color

A Color object that specifies the color you want to use.

Return Value

Returns a Color object that describes the color that will be used.