Graphics.GetNearestColor

Graphics.GetNearestColor method

Gets the nearest color to the specified Color structure.

public Color GetNearestColor(Color color)
ParameterTypeDescription
colorColorColor structure for which to find a match.

Return Value

A Color structure that represents the nearest color to the one specified with the color parameter.

See Also