Gets the nearest color to the specified Color structure.
Assembly: System.Drawing (in System.Drawing.dll)
Creates an arbitrary color with ARGB coordinates (255, 165, 63, 136).
Creates a solid brush and sets its color to the specified color.
Fills an ellipse using the arbitrary color.
Creates a second color and sets its value to the nearest system ARGB color.
Fills a second ellipse with this color.
The result is two ellipses: the first drawn with the arbitrary specified color and the second drawn with the system color nearest the specified color.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.