Description
Returns the color in the palette that has the specified RGB value. An exception will be thrown if no color in the palette has the specified 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
A Color object representing the color with the specified RGB value.Examples
C#
vb.net