## Graphics.GetNearestColor method

Gets the nearest color to the specified Color structure.

```csharp
public Color GetNearestColor(Color color)
```

| Parameter | Type | Description |
| --- | --- | --- |
| color | Color | Color 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

* struct [Color](../../color/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)


