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. |
public Color GetColor(int red, int green, int blue) |
Public Function GetColor(ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer) As Color |
The red component of the desired color. Must be between 0 and 255. |
the green component of the desired color. Must be between 0 and 255. |
the blue component of the desired color. Must be between 0 and 255. |
A object representing the color with the specified RGB value. |
|