Description
Returns the color in the palette closest to the specified RGB value. The closest match is defined as the color in the palette that has the minimum difference between the specified RGB value and its RGB value.
C#
vb.net
Parameters
red
The red component of the desired color. Must be between 0 and 255.green
The green component of the desired color. Must be between 0 and 255.blue
The blue component of the desired color. Must be between 0 and 255.Returns
The closest color in the palette to the specified RGB valueExamples
C#
vb.net